]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
priv: no need to access bridge files unless "oldies"
authorVincent Bernat <vincent@bernat.im>
Tue, 25 Aug 2015 12:20:39 +0000 (14:20 +0200)
committerVincent Bernat <vincent@bernat.im>
Thu, 27 Aug 2015 12:20:39 +0000 (14:20 +0200)
However, bonding stuff is still needed because we get the permanence MAC
address this way.

src/daemon/priv-linux.c

index efc2cc54d4cc2621b83429c5941f0560cb81ecb4..b919ba1bab07ce4eb4ec3eac1fd756a527a93c6c 100644 (file)
@@ -78,9 +78,11 @@ asroot_open()
                "/proc/sys/net/ipv4/ip_forward",
                "/proc/net/bonding/[^.][^/]*",
                "/proc/self/net/bonding/[^.][^/]*",
+#ifdef ENABLE_OLDIES
                SYSFS_CLASS_NET "[^.][^/]*/brforward",
                SYSFS_CLASS_NET "[^.][^/]*/brport",
                SYSFS_CLASS_NET "[^.][^/]*/brif/[^.][^/]*/port_no",
+#endif
                SYSFS_CLASS_DMI "product_version",
                SYSFS_CLASS_DMI "product_serial",
                SYSFS_CLASS_DMI "product_name",