]> git.ipfire.org Git - thirdparty/lldpd.git/commit
netlink: use libnl3 instead of custom netlink code
authorVincent Bernat <vincent@bernat.im>
Sun, 16 Aug 2015 23:19:52 +0000 (01:19 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 17 Aug 2015 06:49:04 +0000 (08:49 +0200)
commit13181ede3ff5189e53eaf10db8021c5b7f09db4c
treea03e7f4f68f9e4d34425a5ff09eb8a8f37e19882
parent948c19d0eeb2a87b3a88784e7597b9bd87dc5ea5
netlink: use libnl3 instead of custom netlink code

The main goal of this change is to implement a caching system for
netlink and avoiding the full scan done when a change was
triggered. Implementing a netlink cache is not as funny as it seems and
therefore, it seems just better to use libnl3.

Licensing issues are explained in README. People concerned with that
should just use dynamic linking. An embedded copy of libnl3 is also
provided, just like libevent.
17 files changed:
.gitmodules
NEWS
README.md
configure.ac
debian/control
debian/copyright
libnl [new submodule]
m4/libnl3.m4 [new file with mode: 0644]
src/daemon/Makefile.am
src/daemon/event.c
src/daemon/interfaces-bsd.c
src/daemon/interfaces-linux.c
src/daemon/interfaces-solaris.c
src/daemon/lldpd.c
src/daemon/lldpd.h
src/daemon/netlink.c
src/daemon/priv.c