blob: d59bf62ba8eb7573ce8a3a10b71383372e240ea9 [file] [log] [blame]
Simon Kelley2a8710a2020-01-05 16:40:06 +00001/* dnsmasq is Copyright (c) 2000-2020 Simon Kelley
Simon Kelley0a852542005-03-23 20:28:59 +00002
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
Simon Kelley824af852008-02-12 20:43:05 +00005 the Free Software Foundation; version 2 dated June, 1991, or
6 (at your option) version 3 dated 29 June, 2007.
7
Simon Kelley0a852542005-03-23 20:28:59 +00008 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
Simon Kelley824af852008-02-12 20:43:05 +000012
Simon Kelley73a08a22009-02-05 20:28:08 +000013 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
Simon Kelley0a852542005-03-23 20:28:59 +000015*/
16
Simon Kelley0a852542005-03-23 20:28:59 +000017#include "dnsmasq.h"
18
Simon Kelley5e9e0ef2006-04-17 14:24:29 +010019#ifdef HAVE_LINUX_NETWORK
Simon Kelley0a852542005-03-23 20:28:59 +000020
Simon Kelley91dccd02005-03-31 17:48:32 +010021#include <linux/types.h>
Simon Kelley0a852542005-03-23 20:28:59 +000022#include <linux/netlink.h>
23#include <linux/rtnetlink.h>
24
Simon Kelley832af0b2007-01-21 20:01:28 +000025/* linux 2.6.19 buggers up the headers, patch it up here. */
26#ifndef IFA_RTA
27# define IFA_RTA(r) \
28 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
29
30# include <linux/if_addr.h>
31#endif
32
Simon Kelley28866e92011-02-14 20:19:14 +000033#ifndef NDA_RTA
34# define NDA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
35#endif
36
Simon Kelleyc72daea2012-01-05 21:33:27 +000037
Simon Kelley5e9e0ef2006-04-17 14:24:29 +010038static struct iovec iov;
Simon Kelley7622fc02009-06-04 20:32:05 +010039static u32 netlink_pid;
Simon Kelley5e9e0ef2006-04-17 14:24:29 +010040
Simon Kelleya0358e52014-06-07 13:38:48 +010041static void nl_async(struct nlmsghdr *h);
Simon Kelleycdeda282006-03-16 20:16:06 +000042
Simon Kelley5aabfc72007-08-29 11:24:47 +010043void netlink_init(void)
Simon Kelley0a852542005-03-23 20:28:59 +000044{
45 struct sockaddr_nl addr;
Simon Kelley7622fc02009-06-04 20:32:05 +010046 socklen_t slen = sizeof(addr);
Simon Kelley0a852542005-03-23 20:28:59 +000047
48 addr.nl_family = AF_NETLINK;
49 addr.nl_pad = 0;
Simon Kelley5e9e0ef2006-04-17 14:24:29 +010050 addr.nl_pid = 0; /* autobind */
Simon Kelley5e9e0ef2006-04-17 14:24:29 +010051 addr.nl_groups = RTMGRP_IPV4_ROUTE;
Simon Kelley54dd3932012-06-20 11:23:38 +010052 if (option_bool(OPT_CLEVERBIND))
Simon Kelley1f776932012-12-16 19:46:08 +000053 addr.nl_groups |= RTMGRP_IPV4_IFADDR;
Simon Kelley54dd3932012-06-20 11:23:38 +010054 addr.nl_groups |= RTMGRP_IPV6_ROUTE;
Simon Kelley1f776932012-12-16 19:46:08 +000055 if (option_bool(OPT_CLEVERBIND))
56 addr.nl_groups |= RTMGRP_IPV6_IFADDR;
Simon Kelleyee875042018-10-23 22:10:17 +010057
Simon Kelley1f776932012-12-16 19:46:08 +000058#ifdef HAVE_DHCP6
59 if (daemon->doing_ra || daemon->doing_dhcp6)
Simon Kelley54dd3932012-06-20 11:23:38 +010060 addr.nl_groups |= RTMGRP_IPV6_IFADDR;
Simon Kelleycdeda282006-03-16 20:16:06 +000061#endif
Simon Kelley0a852542005-03-23 20:28:59 +000062
Simon Kelley309331f2006-04-22 15:05:01 +010063 /* May not be able to have permission to set multicast groups don't die in that case */
64 if ((daemon->netlinkfd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)) != -1)
65 {
66 if (bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1)
67 {
68 addr.nl_groups = 0;
69 if (errno != EPERM || bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1)
70 daemon->netlinkfd = -1;
71 }
72 }
73
Simon Kelley7622fc02009-06-04 20:32:05 +010074 if (daemon->netlinkfd == -1 ||
Reiter Wolfgang5eb9dde2017-01-08 17:39:06 +000075 getsockname(daemon->netlinkfd, (struct sockaddr *)&addr, &slen) == -1)
Simon Kelley5aabfc72007-08-29 11:24:47 +010076 die(_("cannot create netlink socket: %s"), NULL, EC_MISC);
Simon Kelley7622fc02009-06-04 20:32:05 +010077
78 /* save pid assigned by bind() and retrieved by getsockname() */
79 netlink_pid = addr.nl_pid;
Simon Kelley5aabfc72007-08-29 11:24:47 +010080
Simon Kelley7622fc02009-06-04 20:32:05 +010081 iov.iov_len = 100;
Simon Kelley5e9e0ef2006-04-17 14:24:29 +010082 iov.iov_base = safe_malloc(iov.iov_len);
Simon Kelley0a852542005-03-23 20:28:59 +000083}
84
Simon Kelley5aabfc72007-08-29 11:24:47 +010085static ssize_t netlink_recv(void)
Simon Kelleycdeda282006-03-16 20:16:06 +000086{
87 struct msghdr msg;
Simon Kelley7622fc02009-06-04 20:32:05 +010088 struct sockaddr_nl nladdr;
Simon Kelleycdeda282006-03-16 20:16:06 +000089 ssize_t rc;
Simon Kelley0a852542005-03-23 20:28:59 +000090
Simon Kelley5e9e0ef2006-04-17 14:24:29 +010091 while (1)
Simon Kelleycdeda282006-03-16 20:16:06 +000092 {
Simon Kelley7622fc02009-06-04 20:32:05 +010093 msg.msg_control = NULL;
94 msg.msg_controllen = 0;
95 msg.msg_name = &nladdr;
96 msg.msg_namelen = sizeof(nladdr);
97 msg.msg_iov = &iov;
98 msg.msg_iovlen = 1;
Simon Kelley5e9e0ef2006-04-17 14:24:29 +010099 msg.msg_flags = 0;
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100100
Simon Kelley7622fc02009-06-04 20:32:05 +0100101 while ((rc = recvmsg(daemon->netlinkfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR);
102
103 /* make buffer big enough */
104 if (rc != -1 && (msg.msg_flags & MSG_TRUNC))
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100105 {
Simon Kelley7622fc02009-06-04 20:32:05 +0100106 /* Very new Linux kernels return the actual size needed, older ones always return truncated size */
107 if ((size_t)rc == iov.iov_len)
108 {
109 if (expand_buf(&iov, rc + 100))
110 continue;
111 }
112 else
113 expand_buf(&iov, rc);
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100114 }
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100115
Simon Kelley7622fc02009-06-04 20:32:05 +0100116 /* read it for real */
117 msg.msg_flags = 0;
118 while ((rc = recvmsg(daemon->netlinkfd, &msg, 0)) == -1 && errno == EINTR);
119
120 /* Make sure this is from the kernel */
121 if (rc == -1 || nladdr.nl_pid == 0)
122 break;
123 }
124
125 /* discard stuff which is truncated at this point (expand_buf() may fail) */
126 if (msg.msg_flags & MSG_TRUNC)
127 {
128 rc = -1;
129 errno = ENOMEM;
130 }
Simon Kelleycdeda282006-03-16 20:16:06 +0000131
132 return rc;
133}
134
Simon Kelley28866e92011-02-14 20:19:14 +0000135
Simon Kelleyc72daea2012-01-05 21:33:27 +0000136/* family = AF_UNSPEC finds ARP table entries.
137 family = AF_LOCAL finds MAC addresses. */
Simon Kelley28866e92011-02-14 20:19:14 +0000138int iface_enumerate(int family, void *parm, int (*callback)())
Simon Kelley0a852542005-03-23 20:28:59 +0000139{
140 struct sockaddr_nl addr;
141 struct nlmsghdr *h;
Simon Kelleycdeda282006-03-16 20:16:06 +0000142 ssize_t len;
Simon Kelley0a852542005-03-23 20:28:59 +0000143 static unsigned int seq = 0;
Simon Kelleya0358e52014-06-07 13:38:48 +0100144 int callback_ok = 1;
Simon Kelley0a852542005-03-23 20:28:59 +0000145
146 struct {
147 struct nlmsghdr nlh;
148 struct rtgenmsg g;
149 } req;
150
Petr Menšík47b45b22018-08-15 18:17:00 +0200151 memset(&req, 0, sizeof(req));
152 memset(&addr, 0, sizeof(addr));
153
Simon Kelley0a852542005-03-23 20:28:59 +0000154 addr.nl_family = AF_NETLINK;
Simon Kelleyc72daea2012-01-05 21:33:27 +0000155
156 again:
157 if (family == AF_UNSPEC)
158 req.nlh.nlmsg_type = RTM_GETNEIGH;
159 else if (family == AF_LOCAL)
160 req.nlh.nlmsg_type = RTM_GETLINK;
161 else
162 req.nlh.nlmsg_type = RTM_GETADDR;
Simon Kelley0a852542005-03-23 20:28:59 +0000163
164 req.nlh.nlmsg_len = sizeof(req);
Simon Kelley7cebd202006-05-06 14:13:33 +0100165 req.nlh.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST | NLM_F_ACK;
Simon Kelley0a852542005-03-23 20:28:59 +0000166 req.nlh.nlmsg_pid = 0;
167 req.nlh.nlmsg_seq = ++seq;
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100168 req.g.rtgen_family = family;
Simon Kelley0a852542005-03-23 20:28:59 +0000169
170 /* Don't block in recvfrom if send fails */
Simon Kelleyff841eb2015-03-11 21:36:30 +0000171 while(retry_send(sendto(daemon->netlinkfd, (void *)&req, sizeof(req), 0,
172 (struct sockaddr *)&addr, sizeof(addr))));
173
174 if (errno != 0)
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100175 return 0;
176
177 while (1)
Simon Kelley0a852542005-03-23 20:28:59 +0000178 {
Simon Kelley5aabfc72007-08-29 11:24:47 +0100179 if ((len = netlink_recv()) == -1)
Simon Kelley7622fc02009-06-04 20:32:05 +0100180 {
181 if (errno == ENOBUFS)
182 {
183 sleep(1);
184 goto again;
185 }
186 return 0;
187 }
188
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100189 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len))
Ivan Kokshaysky1d076672016-07-11 18:36:05 +0100190 if (h->nlmsg_pid != netlink_pid || h->nlmsg_type == NLMSG_ERROR)
Simon Kelley54dd3932012-06-20 11:23:38 +0100191 {
192 /* May be multicast arriving async */
Simon Kelleya0358e52014-06-07 13:38:48 +0100193 nl_async(h);
Simon Kelley54dd3932012-06-20 11:23:38 +0100194 }
Ivan Kokshaysky1d076672016-07-11 18:36:05 +0100195 else if (h->nlmsg_seq != seq)
196 {
197 /* May be part of incomplete response to previous request after
198 ENOBUFS. Drop it. */
199 continue;
200 }
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100201 else if (h->nlmsg_type == NLMSG_DONE)
Simon Kelleya0358e52014-06-07 13:38:48 +0100202 return callback_ok;
Simon Kelleyc72daea2012-01-05 21:33:27 +0000203 else if (h->nlmsg_type == RTM_NEWADDR && family != AF_UNSPEC && family != AF_LOCAL)
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100204 {
205 struct ifaddrmsg *ifa = NLMSG_DATA(h);
206 struct rtattr *rta = IFA_RTA(ifa);
207 unsigned int len1 = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa));
208
Simon Kelley28866e92011-02-14 20:19:14 +0000209 if (ifa->ifa_family == family)
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100210 {
Simon Kelley28866e92011-02-14 20:19:14 +0000211 if (ifa->ifa_family == AF_INET)
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100212 {
Simon Kelley28866e92011-02-14 20:19:14 +0000213 struct in_addr netmask, addr, broadcast;
Simon Kelley3f2873d2013-05-14 11:28:47 +0100214 char *label = NULL;
215
Richard Genoud10cfc0d2014-09-17 21:17:39 +0100216 netmask.s_addr = htonl(~(in_addr_t)0 << (32 - ifa->ifa_prefixlen));
217
Simon Kelley28866e92011-02-14 20:19:14 +0000218 addr.s_addr = 0;
219 broadcast.s_addr = 0;
220
221 while (RTA_OK(rta, len1))
222 {
223 if (rta->rta_type == IFA_LOCAL)
224 addr = *((struct in_addr *)(rta+1));
225 else if (rta->rta_type == IFA_BROADCAST)
226 broadcast = *((struct in_addr *)(rta+1));
Simon Kelley3f2873d2013-05-14 11:28:47 +0100227 else if (rta->rta_type == IFA_LABEL)
228 label = RTA_DATA(rta);
Simon Kelley28866e92011-02-14 20:19:14 +0000229
230 rta = RTA_NEXT(rta, len1);
231 }
232
Simon Kelleye44ddca2012-02-18 17:08:50 +0000233 if (addr.s_addr && callback_ok)
Simon Kelley3f2873d2013-05-14 11:28:47 +0100234 if (!((*callback)(addr, ifa->ifa_index, label, netmask, broadcast, parm)))
Simon Kelleye44ddca2012-02-18 17:08:50 +0000235 callback_ok = 0;
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100236 }
Simon Kelley28866e92011-02-14 20:19:14 +0000237 else if (ifa->ifa_family == AF_INET6)
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100238 {
Simon Kelley28866e92011-02-14 20:19:14 +0000239 struct in6_addr *addrp = NULL;
Simon Kelley1f776932012-12-16 19:46:08 +0000240 u32 valid = 0, preferred = 0;
Simon Kelleybad7b872012-12-20 22:00:39 +0000241 int flags = 0;
242
Simon Kelley28866e92011-02-14 20:19:14 +0000243 while (RTA_OK(rta, len1))
244 {
245 if (rta->rta_type == IFA_ADDRESS)
246 addrp = ((struct in6_addr *)(rta+1));
Simon Kelley1f776932012-12-16 19:46:08 +0000247 else if (rta->rta_type == IFA_CACHEINFO)
248 {
249 struct ifa_cacheinfo *ifc = (struct ifa_cacheinfo *)(rta+1);
250 preferred = ifc->ifa_prefered;
251 valid = ifc->ifa_valid;
252 }
Simon Kelley28866e92011-02-14 20:19:14 +0000253 rta = RTA_NEXT(rta, len1);
254 }
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100255
Simon Kelleybad7b872012-12-20 22:00:39 +0000256 if (ifa->ifa_flags & IFA_F_TENTATIVE)
257 flags |= IFACE_TENTATIVE;
258
259 if (ifa->ifa_flags & IFA_F_DEPRECATED)
260 flags |= IFACE_DEPRECATED;
261
Jonas Gorski57ab36e2014-01-22 11:34:16 +0000262 if (!(ifa->ifa_flags & IFA_F_TEMPORARY))
263 flags |= IFACE_PERMANENT;
264
Simon Kelleye44ddca2012-02-18 17:08:50 +0000265 if (addrp && callback_ok)
Simon Kelley52b92f42012-01-22 16:05:15 +0000266 if (!((*callback)(addrp, (int)(ifa->ifa_prefixlen), (int)(ifa->ifa_scope),
Simon Kelleybad7b872012-12-20 22:00:39 +0000267 (int)(ifa->ifa_index), flags,
Simon Kelley1f776932012-12-16 19:46:08 +0000268 (int) preferred, (int)valid, parm)))
Simon Kelleye44ddca2012-02-18 17:08:50 +0000269 callback_ok = 0;
Simon Kelley28866e92011-02-14 20:19:14 +0000270 }
Simon Kelley28866e92011-02-14 20:19:14 +0000271 }
272 }
273 else if (h->nlmsg_type == RTM_NEWNEIGH && family == AF_UNSPEC)
274 {
275 struct ndmsg *neigh = NLMSG_DATA(h);
276 struct rtattr *rta = NDA_RTA(neigh);
277 unsigned int len1 = h->nlmsg_len - NLMSG_LENGTH(sizeof(*neigh));
278 size_t maclen = 0;
279 char *inaddr = NULL, *mac = NULL;
280
281 while (RTA_OK(rta, len1))
282 {
283 if (rta->rta_type == NDA_DST)
284 inaddr = (char *)(rta+1);
285 else if (rta->rta_type == NDA_LLADDR)
286 {
287 maclen = rta->rta_len - sizeof(struct rtattr);
288 mac = (char *)(rta+1);
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100289 }
290
Simon Kelley28866e92011-02-14 20:19:14 +0000291 rta = RTA_NEXT(rta, len1);
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100292 }
Simon Kelley28866e92011-02-14 20:19:14 +0000293
Simon Kelleyfa14bec2015-12-20 17:12:16 +0000294 if (!(neigh->ndm_state & (NUD_NOARP | NUD_INCOMPLETE | NUD_FAILED)) &&
295 inaddr && mac && callback_ok)
Simon Kelley28866e92011-02-14 20:19:14 +0000296 if (!((*callback)(neigh->ndm_family, inaddr, mac, maclen, parm)))
Simon Kelleye44ddca2012-02-18 17:08:50 +0000297 callback_ok = 0;
Simon Kelleyc72daea2012-01-05 21:33:27 +0000298 }
299#ifdef HAVE_DHCP6
300 else if (h->nlmsg_type == RTM_NEWLINK && family == AF_LOCAL)
301 {
302 struct ifinfomsg *link = NLMSG_DATA(h);
303 struct rtattr *rta = IFLA_RTA(link);
304 unsigned int len1 = h->nlmsg_len - NLMSG_LENGTH(sizeof(*link));
305 char *mac = NULL;
306 size_t maclen = 0;
307
308 while (RTA_OK(rta, len1))
309 {
310 if (rta->rta_type == IFLA_ADDRESS)
311 {
312 maclen = rta->rta_len - sizeof(struct rtattr);
313 mac = (char *)(rta+1);
314 }
315
316 rta = RTA_NEXT(rta, len1);
317 }
318
Simon Kelleye44ddca2012-02-18 17:08:50 +0000319 if (mac && callback_ok && !((link->ifi_flags & (IFF_LOOPBACK | IFF_POINTOPOINT))) &&
Simon Kelleyc5ad4e72012-02-24 16:06:20 +0000320 !((*callback)((int)link->ifi_index, (unsigned int)link->ifi_type, mac, maclen, parm)))
Simon Kelleye44ddca2012-02-18 17:08:50 +0000321 callback_ok = 0;
Simon Kelleyc72daea2012-01-05 21:33:27 +0000322 }
323#endif
Simon Kelley0a852542005-03-23 20:28:59 +0000324 }
Simon Kelley0a852542005-03-23 20:28:59 +0000325}
326
Simon Kelleya0358e52014-06-07 13:38:48 +0100327void netlink_multicast(void)
Simon Kelleycdeda282006-03-16 20:16:06 +0000328{
329 ssize_t len;
330 struct nlmsghdr *h;
Simon Kelleya0358e52014-06-07 13:38:48 +0100331 int flags;
Simon Kelley7622fc02009-06-04 20:32:05 +0100332
333 /* don't risk blocking reading netlink messages here. */
334 if ((flags = fcntl(daemon->netlinkfd, F_GETFL)) == -1 ||
335 fcntl(daemon->netlinkfd, F_SETFL, flags | O_NONBLOCK) == -1)
336 return;
Simon Kelleycdeda282006-03-16 20:16:06 +0000337
Simon Kelley5aabfc72007-08-29 11:24:47 +0100338 if ((len = netlink_recv()) != -1)
Simon Kelley54dd3932012-06-20 11:23:38 +0100339 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len))
Simon Kelleya0358e52014-06-07 13:38:48 +0100340 nl_async(h);
Simon Kelley7622fc02009-06-04 20:32:05 +0100341
Simon Kelley54dd3932012-06-20 11:23:38 +0100342 /* restore non-blocking status */
343 fcntl(daemon->netlinkfd, F_SETFL, flags);
Simon Kelley5e9e0ef2006-04-17 14:24:29 +0100344}
345
Simon Kelleya0358e52014-06-07 13:38:48 +0100346static void nl_async(struct nlmsghdr *h)
Simon Kelley54dd3932012-06-20 11:23:38 +0100347{
348 if (h->nlmsg_type == NLMSG_ERROR)
349 {
350 struct nlmsgerr *err = NLMSG_DATA(h);
Simon Kelleydfb23b32012-09-18 21:44:47 +0100351 if (err->error != 0)
352 my_syslog(LOG_ERR, _("netlink returns error: %s"), strerror(-(err->error)));
Simon Kelley54dd3932012-06-20 11:23:38 +0100353 }
354 else if (h->nlmsg_pid == 0 && h->nlmsg_type == RTM_NEWROUTE)
355 {
Simon Kelleye17b4b32012-06-28 21:44:30 +0100356 /* We arrange to receive netlink multicast messages whenever the network route is added.
357 If this happens and we still have a DNS packet in the buffer, we re-send it.
358 This helps on DoD links, where frequently the packet which triggers dialling is
359 a DNS query, which then gets lost. By re-sending, we can avoid the lookup
360 failing. */
361 struct rtmsg *rtm = NLMSG_DATA(h);
362
Donald Sharpb2ed6912020-03-02 11:23:36 -0500363 if (rtm->rtm_type == RTN_UNICAST && rtm->rtm_scope == RT_SCOPE_LINK &&
364 (rtm->rtm_table == RT_TABLE_MAIN ||
365 rtm->rtm_table == RT_TABLE_LOCAL))
Simon Kelley47a95162014-07-08 22:22:02 +0100366 queue_event(EVENT_NEWROUTE);
Simon Kelley54dd3932012-06-20 11:23:38 +0100367 }
Simon Kelley1f776932012-12-16 19:46:08 +0000368 else if (h->nlmsg_type == RTM_NEWADDR || h->nlmsg_type == RTM_DELADDR)
Simon Kelley47a95162014-07-08 22:22:02 +0100369 queue_event(EVENT_NEWADDR);
Simon Kelley54dd3932012-06-20 11:23:38 +0100370}
Simon Kelley0a852542005-03-23 20:28:59 +0000371#endif
372
373