Garbage collect listening sockets when their address is deleted.

In --bind-dynamic mode, stop listening on an address when it's
removed from an interface. 6rd and 6to4 tunnels can go through
lots of addresses.
This commit is contained in:
Simon Kelley
2013-12-02 14:43:48 +00:00
parent 3dffbc3ebf
commit 08619211f8
2 changed files with 49 additions and 6 deletions

View File

@@ -459,7 +459,7 @@ struct ipsets {
struct irec {
union mysockaddr addr;
struct in_addr netmask; /* only valid for IPv4 */
int tftp_ok, dhcp_ok, mtu, done, warned, dad, dns_auth, index, multicast_done;
int tftp_ok, dhcp_ok, mtu, done, warned, dad, dns_auth, index, multicast_done, found;
char *name;
struct irec *next;
};