Repository navigation
all: add support for thunderbolt networking - #97
Conversation
|
NM CI: Please confirm test execution over this PR. Comment .ok\W+to\W+test. to confirm and/or .add\W+to\W+whitelist. to add the PR author in whitelist for future. |
thom311
left a comment
There was a problem hiding this comment.
Overall looks good to me. Simpler than expected.
| # For all thunderbolt network devices, we want to enable link-local configuration | ||
| SUBSYSTEM=="net", ENV{ID_NET_DRIVER}=="thunderbolt-net", ENV{NM_AUTO_DEFAULT_LINK_ONLY}="1" | ||
|
|
||
| LABEL="nm_thunderbolt_end" |
There was a problem hiding this comment.
the file must also be marked as EXTRA_DIST in Makefile.am and marked for installation. Similar, in data/meson.build.
| nm_connection_add_setting (connection, setting); | ||
|
|
||
| /* Check if we should create a Link-Local only connection */ | ||
| dev = nm_platform_link_get_udev_device (nm_device_get_platform (NM_DEVICE (self)), nm_device_get_ifindex (self)); |
There was a problem hiding this comment.
I think this should be nm_device_get_ip_ifindex (self).
|
|
||
| setting = nm_setting_ip6_config_new (); | ||
| g_object_set (setting, | ||
| NM_SETTING_IP_CONFIG_METHOD, NM_SETTING_IP6_CONFIG_METHOD_LINK_LOCAL, |
There was a problem hiding this comment.
indentation should be with spaces.
|
ah, maybe |
+1 Looks good to me, with changes suggested by Thomas. |
3f7a556 to
2ba1d9b
Compare
|
I hope I got the whitespaces correct. I tested it locally with F27 <-> Windows and successfully got a link-local address that was ping-able from windows. |
Load the thunderbolt-net module if we see a host-to-host connection and configure the resulting ethernet connection automatically to be a link-local only one. The latter is done by setting a new udev property "NM_AUTO_DEFAULT_LINK_LOCAL_ONLY" which is picked up when we configure the connection for the device. NetworkManager#97
First attempt to implement thunderbolt networking. Comments welcome.
Load the thunderbolt-net module if we see a host-to-host connection
and configure the resulting ethernet connection automatically to be
a link-local only one.