diff options
author | hrs <hrs@FreeBSD.org> | 2012-03-02 07:22:04 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2012-03-02 07:22:04 +0000 |
commit | ae62f802c7695985a73b20a231cd823fe033b420 (patch) | |
tree | 61959392e6619f6d49e303a1bfab7e7e9ae86871 /sys/netinet6/nd6.c | |
parent | e2d16db0bd507fe17a730a8491e567e6acda868e (diff) | |
download | FreeBSD-src-ae62f802c7695985a73b20a231cd823fe033b420.zip FreeBSD-src-ae62f802c7695985a73b20a231cd823fe033b420.tar.gz |
Remove a redundant check.
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r-- | sys/netinet6/nd6.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index bf2cd53..c82d763 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1345,16 +1345,6 @@ nd6_ioctl(u_long cmd, caddr_t data, struct ifnet *ifp) struct ifaddr *ifa; struct in6_ifaddr *ia; - /* - * Try to clear ifdisabled flag when enabling - * accept_rtadv or auto_linklocal. - */ - if ((ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED) && - !(ND.flags & ND6_IFF_IFDISABLED) && - (ND.flags & (ND6_IFF_ACCEPT_RTADV | - ND6_IFF_AUTO_LINKLOCAL))) - ND.flags &= ~ND6_IFF_IFDISABLED; - if ((ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED) && !(ND.flags & ND6_IFF_IFDISABLED)) { /* ifdisabled 1->0 transision */ |