sys/netinet6/nd6.c: add ND6_IFF_ACCEPT_RTADV flag
Hiroki Sato
hrs at allbsd.org
Wed Dec 29 05:16:27 PST 2004
Hiroki Sato <hrs at xxxxxxxxxx> wrote
in <20041229.071648.02292479.hrs at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00026.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20041229/4251a38a/attachment-0019.obj>
More information about the Submit
mailing list