Commit 87d346f6 authored by Simon Kelley's avatar Simon Kelley

saner function name

parent f0dd7f80
...@@ -39,7 +39,7 @@ static struct iovec iov; ...@@ -39,7 +39,7 @@ static struct iovec iov;
static u32 netlink_pid; static u32 netlink_pid;
static int nl_async(struct nlmsghdr *h); static int nl_async(struct nlmsghdr *h);
static void nl_newinterface(time_t now); static void nl_newaddress(time_t now);
void netlink_init(void) void netlink_init(void)
{ {
...@@ -200,7 +200,7 @@ int iface_enumerate(int family, void *parm, int (*callback)()) ...@@ -200,7 +200,7 @@ int iface_enumerate(int family, void *parm, int (*callback)())
/* handle async new interface address arrivals, these have to be done /* handle async new interface address arrivals, these have to be done
after we complete as we're not re-entrant */ after we complete as we're not re-entrant */
if (newaddr) if (newaddr)
nl_newinterface(dnsmasq_time()); nl_newaddress(dnsmasq_time());
return callback_ok; return callback_ok;
} }
...@@ -342,7 +342,7 @@ void netlink_multicast(time_t now) ...@@ -342,7 +342,7 @@ void netlink_multicast(time_t now)
fcntl(daemon->netlinkfd, F_SETFL, flags); fcntl(daemon->netlinkfd, F_SETFL, flags);
if (newaddr) if (newaddr)
nl_newinterface(now); nl_newaddress(now);
} }
static int nl_async(struct nlmsghdr *h) static int nl_async(struct nlmsghdr *h)
...@@ -391,7 +391,7 @@ static int nl_async(struct nlmsghdr *h) ...@@ -391,7 +391,7 @@ static int nl_async(struct nlmsghdr *h)
return 0; return 0;
} }
static void nl_newinterface(time_t now) static void nl_newaddress(time_t now)
{ {
if (option_bool(OPT_CLEVERBIND) || daemon->doing_dhcp6 || daemon->doing_ra) if (option_bool(OPT_CLEVERBIND) || daemon->doing_dhcp6 || daemon->doing_ra)
enumerate_interfaces(); enumerate_interfaces();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment