From: | Hiroki Sato <hrs@xxxxxxxxxx> |
Date: | Wed, 29 Dec 2004 21:10:53 +0900 (JST) |
Hiroki Sato <hrs@xxxxxxxxxx> wrote in <20041229.071648.02292479.hrs@xxxxxxxxxxxxx>: hrs> Changes to the userland utility are needed, too. KAME implements hrs> ndp(8) to handle the flag and I think I will submit the patch soon. The patch is attached. -- | Hiroki SATO
Add a flag for ND6_IFF_ACCEPT_RTADV. Obtained from: KAME via FreeBSD References: KAME: kame/kame/kame/ndp/ndp.c 1.77 FreeBSD: src/usr.sbin/ndp/ndp.c 1.2.2.6 Index: ndp.c =================================================================== RCS file: /cvs/src/usr.sbin/ndp/ndp.c,v retrieving revision 1.5 diff -d -u -I\$FreeBSD:.*\$ -I\$NetBSD:.*\$ -I\$OpenBSD:.*\$ -I\$DragonFly:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -r1.5 ndp.c --- ndp.c 18 Dec 2004 22:48:04 -0000 1.5 +++ ndp.c 29 Dec 2004 10:33:53 -0000 @@ -923,7 +923,9 @@ }\ } while (0) SETFLAG("nud", ND6_IFF_PERFORMNUD); - +#ifdef ND6_IFF_ACCEPT_RTADV + SETFLAG("accept_rtadv", ND6_IFF_ACCEPT_RTADV); +#endif ND.flags = newflags; if (ioctl(s, SIOCSIFINFO_FLAGS, (caddr_t)&nd) < 0) { perror("ioctl(SIOCSIFINFO_FLAGS)"); @@ -966,8 +968,12 @@ #endif if (ND.flags) { printf("\nFlags: "); - if ((ND.flags & ND6_IFF_PERFORMNUD) != 0) - printf("PERFORMNUD "); + if ((ND.flags & ND6_IFF_PERFORMNUD)) + printf("nud "); +#ifdef ND6_IFF_ACCEPT_RTADV + if ((ND.flags & ND6_IFF_ACCEPT_RTADV)) + printf("accept_rtadv "); +#endif } putc('\n', stdout); #undef ND
Attachment:
pgp00026.pgp
Description: PGP signature