Project

General

Profile

Submit #3291 » ndp.c.patch

falsifian, 07/30/2021 10:20 AM

View differences:

usr.sbin/ndp/ndp.c Thu Jul 29 17:36:09 2021 +0200 → usr.sbin/ndp/ndp.c Fri Jul 30 17:20:09 2021 +0000
}
#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 += RT_ROUNDUP(sizeof(s));}
NEXTADDR(RTA_DST, sin_m);
NEXTADDR(RTA_GATEWAY, sdl_m);
    (1-1/1)