diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2014-06-07 13:38:48 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2014-06-07 13:38:48 +0100 |
commit | a0358e5ddbc1ef3dec791f11f95f5dbe56087a5e (patch) | |
tree | 9a382e6e8a3095e86cd4dd51b6edc6966876a160 /src/bpf.c | |
parent | a03f8d4c37c9e52833ce2ad7d9744b3c587efb14 (diff) | |
download | dnsmasq-a0358e5ddbc1ef3dec791f11f95f5dbe56087a5e.tar.gz |
Handle async notification of address changes using the event system.
Diffstat (limited to 'src/bpf.c')
-rw-r--r-- | src/bpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -376,7 +376,7 @@ void route_init(void) die(_("cannot create PF_ROUTE socket: %s"), NULL, EC_BADNET); } -void route_sock(time_t now) +void route_sock(void) { struct if_msghdr *msg; int rc = recv(daemon->routefd, daemon->packet, daemon->packet_buff_sz, 0); @@ -401,7 +401,7 @@ void route_sock(time_t now) else if (msg->ifm_type == RTM_NEWADDR) { del_family = 0; - newaddress(now); + send_newaddr(); } else if (msg->ifm_type == RTM_DELADDR) { @@ -439,7 +439,7 @@ void route_sock(time_t now) of += sizeof(long) - (diff & (sizeof(long) - 1)); } - newaddress(now); + send_newaddr(); } } |