summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-09-05 16:51:51 +0000
committerbz <bz@FreeBSD.org>2009-09-05 16:51:51 +0000
commitfb643392b2cef85ef9905fe0bedb32bd926fe9dc (patch)
treea24586a13d12d0887fde6b4945be10fd3b3c2f26 /usr.sbin/ndp
parent831e6c957c53ed2e3528a47cc2ffe8cbff057ce8 (diff)
downloadFreeBSD-src-fb643392b2cef85ef9905fe0bedb32bd926fe9dc.zip
FreeBSD-src-fb643392b2cef85ef9905fe0bedb32bd926fe9dc.tar.gz
In the NEXTADDR macro use SA_SIZE() rather than directly using
sizeof(), as introduced in r186119, for advancing the current position into the buffer. See comment in net/route.h for a description of the difference. This makes ndp -s work again. Reviewed by: qingli X-MFC after: now
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 570961a..17e439c 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -116,7 +116,7 @@
#define NEXTADDR(w, s) \
if (rtm->rtm_addrs & (w)) { \
- bcopy((char *)&s, cp, sizeof(s)); cp += sizeof(s);}
+ bcopy((char *)&s, cp, sizeof(s)); cp += SA_SIZE(&s);}
static pid_t pid;
OpenPOWER on IntegriCloud