]> git.ipfire.org Git - thirdparty/lldpd.git/commit
routing/linux: check IPv6 forwarding status when enabling Router capa
authorAntonio Quartulli <a@unstable.cc>
Sat, 9 Jan 2021 14:45:50 +0000 (15:45 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sat, 9 Jan 2021 18:07:38 +0000 (19:07 +0100)
commit1cf1a23f11668909b8d88561544ccf0f843127f6
treed9cbb81b3a32521211fadb23ba1a2e8130f6b6cc
parentaa94e013733e9df40de6745b00606f34986d3f25
routing/linux: check IPv6 forwarding status when enabling Router capa

Consider also IPv6 when deciding whether to enable the Router capability.
This way, if a host is a router for IPv6 only, it will still be
advertised as Router to its neighbours.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
src/daemon/forward-linux.c
src/daemon/lldpd.h
src/daemon/priv-linux.c