summaryrefslogtreecommitdiff
path: root/src/bpf.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-06-07 13:38:48 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2014-06-07 13:38:48 +0100
commita0358e5ddbc1ef3dec791f11f95f5dbe56087a5e (patch)
tree9a382e6e8a3095e86cd4dd51b6edc6966876a160 /src/bpf.c
parenta03f8d4c37c9e52833ce2ad7d9744b3c587efb14 (diff)
downloaddnsmasq-a0358e5ddbc1ef3dec791f11f95f5dbe56087a5e.tar.gz
Handle async notification of address changes using the event system.
Diffstat (limited to 'src/bpf.c')
-rw-r--r--src/bpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bpf.c b/src/bpf.c
index f9c6063..fea84b1 100644
--- a/src/bpf.c
+++ b/src/bpf.c
@@ -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();
}
}