summaryrefslogtreecommitdiffhomepage
path: root/src/ndp.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-07-07 16:01:13 +0200
committerSteven Barth <steven@midlink.org>2015-07-07 16:01:13 +0200
commitfd3e3bbc461fcbbaefff9339da2e9b6c85a5b4a1 (patch)
tree3895bd2f9a9ab585fb30cfd32d9dd9c4709f968b /src/ndp.c
parentfb47b59a249adaff373aefe1bf09e635082ee0b3 (diff)
router: also send RAs to every known neighbor
Diffstat (limited to 'src/ndp.c')
-rw-r--r--src/ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ndp.c b/src/ndp.c
index 027e9ab..a6f8427 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -356,7 +356,7 @@ static void handle_rtnetlink(_unused void *addr, void *data, size_t len,
// Data to retrieve
size_t rta_offset = (is_route) ? sizeof(*rtm) : (is_addr) ?
- sizeof(*ifa) : sizeof(*ndm);
+ sizeof(struct ifaddrmsg) : sizeof(*ndm);
uint16_t atype = (is_route) ? RTA_DST : (is_addr) ? IFA_ADDRESS : NDA_DST;
ssize_t alen = NLMSG_PAYLOAD(nh, rta_offset);
struct in6_addr *addr = NULL;