]> git.ipfire.org Git - thirdparty/lldpd.git/commit
interfaces: overwrite interface description with neighbor found
authorVincent Bernat <bernat@luffy.cx>
Tue, 2 Jul 2013 22:18:41 +0000 (00:18 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 2 Jul 2013 22:18:41 +0000 (00:18 +0200)
commit47820fc416ccc14dd4e08be17410086f1232bab3
treecd818affc88b9aec16afe85f85f75e0411377755
parent53d4577a63fd1b9dc040c41522b25b08f6c43afc
interfaces: overwrite interface description with neighbor found

If no neighbor is found, interface name is `lldpd: no neighbor
found`. If one neighbor is found, this is `lldpd: connected to XXXXX`
and if several neighbors are found, this is `lldpd: XXX
neighbors`. Smart filter is used to count neighbors.

Currently, this is not possible to disable this. Works with FreeBSD,
OpenBSD and Linux.
src/daemon/Makefile.am
src/daemon/lldpd.c
src/daemon/lldpd.h
src/daemon/priv-bsd.c [moved from src/daemon/priv-bpf.c with 79% similarity]
src/daemon/priv-linux.c
src/daemon/priv.c