mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-09 01:50:35 +00:00
MFC r196866:
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 Approved by: re (kib)
This commit is contained in:
parent
b9d99ec84d
commit
e0adffb3d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=196867
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue