aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2009-09-05 16:51:51 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2009-09-05 16:51:51 +0000
commitcb58c0efadb22a4f13bf66ffa2000a011a9212be (patch)
treea24586a13d12d0887fde6b4945be10fd3b3c2f26
parent7dcdecb107a5c86c4d9837dbda0b9485c947b583 (diff)
downloadsrc-cb58c0efadb22a4f13bf66ffa2000a011a9212be.tar.gz
src-cb58c0efadb22a4f13bf66ffa2000a011a9212be.zip
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
Notes
Notes: svn path=/head/; revision=196866
-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 570961a3e9f9..17e439ce5844 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;