diff options
author | julian <julian@FreeBSD.org> | 2007-12-06 22:48:24 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-12-06 22:48:24 +0000 |
commit | e38fed7fb732760cb72fc9df6cfc8fd3400a1a8e (patch) | |
tree | 83de420f51638408d2815f33bc5e7e76c3bc22be /sys/netinet6 | |
parent | 87a49d3e6e7d8ca032cadea086d3c228ee85b345 (diff) | |
download | FreeBSD-src-e38fed7fb732760cb72fc9df6cfc8fd3400a1a8e.zip FreeBSD-src-e38fed7fb732760cb72fc9df6cfc8fd3400a1a8e.tar.gz |
Remove more dup'd code
MFC After: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index bee1246..5de9433 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1203,27 +1203,6 @@ in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra, } else RTFREE_LOCKED(rt); - /* XXX: again, do we really need the route? */ - rt = rtalloc1((struct sockaddr *)&mltaddr, 0, 0UL); - if (rt) { - if (memcmp(&mltaddr.sin6_addr, - &((struct sockaddr_in6 *)rt_key(rt))->sin6_addr, - MLTMASK_LEN)) { - RTFREE_LOCKED(rt); - rt = NULL; - } - } - if (!rt) { - error = rtrequest(RTM_ADD, (struct sockaddr *)&mltaddr, - (struct sockaddr *)&ia->ia_addr, - (struct sockaddr *)&mltmask, RTF_UP | RTF_CLONING, - (struct rtentry **)0); - if (error) - goto cleanup; - } else { - RTFREE_LOCKED(rt); - } - imm = in6_joingroup(ifp, &mltaddr.sin6_addr, &error, 0); if (!imm) { nd6log((LOG_WARNING, "in6_update_ifa: " |