]> git.ipfire.org Git - thirdparty/lldpd.git/commit - src/lldpd.c
Set h_ifindex correctly.
authorVincent Bernat <bernat@luffy.cx>
Tue, 9 Jun 2009 05:42:32 +0000 (07:42 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 9 Jun 2009 05:42:32 +0000 (07:42 +0200)
commit44002d6615d6c8bd3390333b51c89dc99c235207
tree517c4c4ab8acb58a6c414842e9cc89c03023a861
parent77d7090e199a4178e53984f9060e0eec36aae76c
Set h_ifindex correctly.

We also use this index as a way to define an interface. The following
comment has been added to lldpd.h:

An interface is uniquely identified by h_ifindex, h_ifname and h_ops.
This means if an interface becomes enslaved, it will be considered as
a new interface. The same applies for renaming and we include the
index in case of renaming to an existing interface.
src/interfaces.c
src/lldpd.c
src/lldpd.h