From: Steven Barth Date: Fri, 1 Feb 2013 11:26:51 +0000 (+0100) Subject: Fix netlink attribute handling X-Git-Tag: debian/1.1+git20160131-1~184 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=commitdiff_plain;h=18c1cff36bd3b36b80321282fa7086d8752b63cc Fix netlink attribute handling --- diff --git a/src/ra.c b/src/ra.c index f1a5f7f..e32670e 100644 --- a/src/ra.c +++ b/src/ra.c @@ -157,7 +157,7 @@ bool ra_rtnl_process(void) ssize_t alen = NLMSG_PAYLOAD(nh, sizeof(*ifa)); for (struct rtattr *rta = (struct rtattr*)&ifa[1]; RTA_OK(rta, alen); rta = RTA_NEXT(rta, alen)) - if (rta->rta_type == IFA_LOCAL && RTA_PAYLOAD(rta) >= sizeof(*addr)) + if (rta->rta_type == IFA_ADDRESS && RTA_PAYLOAD(rta) >= sizeof(*addr)) addr = RTA_DATA(rta); if (addr)