diff options
author | bz <bz@FreeBSD.org> | 2009-09-05 16:51:51 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-09-05 16:51:51 +0000 |
commit | fb643392b2cef85ef9905fe0bedb32bd926fe9dc (patch) | |
tree | a24586a13d12d0887fde6b4945be10fd3b3c2f26 | |
parent | 831e6c957c53ed2e3528a47cc2ffe8cbff057ce8 (diff) | |
download | FreeBSD-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
-rw-r--r-- | usr.sbin/ndp/ndp.c | 2 |
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; |