diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-10-30 16:53:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-10-30 18:57:41 +0100 |
commit | ec541c569bd19bbb81791139371111a9a7f1a3d8 (patch) | |
tree | ef953d23599747cfe1f6ea36c4e993b195d79d27 /rules.d | |
parent | test: add one missing cleanup (diff) | |
download | systemd-ec541c569bd19bbb81791139371111a9a7f1a3d8.tar.xz systemd-ec541c569bd19bbb81791139371111a9a7f1a3d8.zip |
hwdb,rules: mark host-to-host network devices as only requiring link local addressing
This is a generalization of this logic:
https://github.com/NetworkManager/NetworkManager/blob/main/data/90-nm-thunderbolt.rules
It applies not just to thunderbolt, but to any kind of device, even
matched by vendor/product, via hwdb.
I added two entries for Prolific PC-to-PC devices (of which I have one
lying around).
Diffstat (limited to 'rules.d')
-rw-r--r-- | rules.d/82-net-auto-link-local.rules | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rules.d/82-net-auto-link-local.rules b/rules.d/82-net-auto-link-local.rules new file mode 100644 index 0000000000..88ac7bc1be --- /dev/null +++ b/rules.d/82-net-auto-link-local.rules @@ -0,0 +1,15 @@ +# do not edit this file, it will be overwritten on update + +ACTION=="remove", GOTO="net_link_local_end" +SUBSYSTEM!="net", GOTO="net_link_local_end" + +# Network interfaces for which only Link-Local communication (i.e. IPv4LL, …) +# makes sense, because they almost certainy will point to another host, not an +# internet router. + +# (Note: matches against VID/PID go into 82-net-auto-link-local.hwdb instead) + +# Thunderbolt host-to-host connections +DRIVERS=="thunderbolt-net", ENV{ID_NET_AUTO_LINK_LOCAL_ONLY}="1" + +LABEL="net_link_local_end" |