diff options
author | qingli <qingli@FreeBSD.org> | 2008-12-17 10:27:34 +0000 |
---|---|---|
committer | qingli <qingli@FreeBSD.org> | 2008-12-17 10:27:34 +0000 |
commit | c6b6112234d9fd15460159f1560cb05e040ab315 (patch) | |
tree | 24fecd34d6b44c0c39eaa86bffd6022436256ebf /sys/netinet6/nd6_rtr.c | |
parent | 3bfc2293f206bd8d4ae763d541e3355bd3abf983 (diff) | |
download | FreeBSD-src-c6b6112234d9fd15460159f1560cb05e040ab315.zip FreeBSD-src-c6b6112234d9fd15460159f1560cb05e040ab315.tar.gz |
Remove the rt argument from nd6_storelladdr() because
rt is no longer accessed.
Diffstat (limited to 'sys/netinet6/nd6_rtr.c')
-rw-r--r-- | sys/netinet6/nd6_rtr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index 1fd0d68..7df364e 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -1554,7 +1554,6 @@ nd6_prefix_onlink(struct nd_prefix *pr) char ip6buf[INET6_ADDRSTRLEN]; struct sockaddr_dl null_sdl = {sizeof(null_sdl), AF_LINK}; - /* sanity check */ if ((pr->ndpr_stateflags & NDPRF_ONLINK) != 0) { nd6log((LOG_ERR, @@ -1623,7 +1622,6 @@ nd6_prefix_onlink(struct nd_prefix *pr) rtflags = ifa->ifa_flags | RTF_UP; error = rtrequest(RTM_ADD, (struct sockaddr *)&pr->ndpr_prefix, ifa->ifa_addr, (struct sockaddr *)&mask6, rtflags, &rt); - if (error == 0) { if (rt != NULL) /* this should be non NULL, though */ { rnh = V_rt_tables[rt->rt_fibnum][AF_INET6]; |