router: close socket upon NETEV_IFINDEX_CHANGE
authorKoen Aerts <aertskoen5@gmail.com>
Tue, 13 Aug 2019 13:02:19 +0000 (15:02 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 14 Aug 2019 21:06:40 +0000 (23:06 +0200)
commit13928b3b651faa9ecd330bce42500986b38b49e3
tree603c2599a609d85ce5f74c53640e2d8324f77727
parente9e824046f4df9f97f50d154f034e10cb8f13f96
router: close socket upon NETEV_IFINDEX_CHANGE

Make sure the socket is closed in a case where the bridge goes down
as a result of NO-CARRIER on the bridge.
If not present Router Discovery and Router Advertisement will break
permanently after the bridge went down.

Related to  https://github.com/openwrt/odhcpd/issues/135

Signed-off-by: Koen Aerts <aertskoen5@gmail.com>
src/router.c