From 18c1cff36bd3b36b80321282fa7086d8752b63cc Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 1 Feb 2013 12:26:51 +0100 Subject: [PATCH] Fix netlink attribute handling --- src/ra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1