diff options
author | SUZUKI Shinsuke <suz@FreeBSD.org> | 2005-10-19 16:20:18 +0000 |
---|---|---|
committer | SUZUKI Shinsuke <suz@FreeBSD.org> | 2005-10-19 16:20:18 +0000 |
commit | 5b27b045791fb93e20506422eb9fff4bb856e78a (patch) | |
tree | 663e44c4f12eb64e88a7e6185862f81f4bb294f7 /usr.sbin/ndp/ndp.c | |
parent | 057c4aff27b4762db78f4dff88e713dd928bee8a (diff) | |
download | src-5b27b045791fb93e20506422eb9fff4bb856e78a.tar.gz src-5b27b045791fb93e20506422eb9fff4bb856e78a.zip |
supported an ndp command suboption to disable IPv6 in the given interface
Obtained from: KAME
Reviewd by: ume, gnn
MFC after: 2 week
Notes
Notes:
svn path=/head/; revision=151474
Diffstat (limited to 'usr.sbin/ndp/ndp.c')
-rw-r--r-- | usr.sbin/ndp/ndp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 96e8c149a2f2..33e1a6a9b718 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -989,6 +989,7 @@ ifinfo(ifname, argc, argv) } \ } while (0) + SETFLAG("disabled", ND6_IFF_IFDISABLED); SETFLAG("nud", ND6_IFF_PERFORMNUD); #ifdef ND6_IFF_ACCEPT_RTADV SETFLAG("accept_rtadv", ND6_IFF_ACCEPT_RTADV); @@ -1055,6 +1056,10 @@ ifinfo(ifname, argc, argv) #endif if (ND.flags) { printf("\nFlags: "); +#ifdef ND6_IFF_IFDISABLED + if ((ND.flags & ND6_IFF_IFDISABLED)) + printf("disabled "); +#endif if ((ND.flags & ND6_IFF_PERFORMNUD)) printf("nud "); #ifdef ND6_IFF_ACCEPT_RTADV |