]> git.ipfire.org Git - thirdparty/lldpd.git/commit - src/daemon/interfaces-linux.c
interfaces: harmonize arguments of detection functions
authorVincent Bernat <bernat@luffy.cx>
Sat, 22 Dec 2012 19:25:23 +0000 (20:25 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 22 Dec 2012 19:25:59 +0000 (20:25 +0100)
commitc557a63b6a17a71cf1deabba5755776f0a33257d
treea1d43d41fa996d29eb391204b7902d1c45aa0e1b
parent3e2e693ca5caab1b31bf9a315ab3758b5a2b2143
interfaces: harmonize arguments of detection functions

Some detection functions were requiring a name, other an index. We
always use a `struct netlink_interface`. The only drawback is that
those functions can only be called in the context where this structure
exists, i.e when discovering interfaces. In the case of bonding, we
used one function to detect if the interface was active. We replace
this by an unconditional replacement of the source MAC address by 0.
src/daemon/interfaces-linux.c