diff options
author | melifaro <melifaro@FreeBSD.org> | 2015-12-09 11:14:27 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2015-12-09 11:14:27 +0000 |
commit | 2bb0e924cc5d81b56b5eba9cae7011c55a7c6215 (patch) | |
tree | b51cf84b1ab953667c973fb841c08dd96b18b2c2 /sys/netinet/ip_input.c | |
parent | 5c5e34926e2c938c9685b97f44dca9eeee77e3a1 (diff) | |
download | FreeBSD-src-2bb0e924cc5d81b56b5eba9cae7011c55a7c6215.zip FreeBSD-src-2bb0e924cc5d81b56b5eba9cae7011c55a7c6215.tar.gz |
Make in_arpinput(), inp_lookup_mcast_ifp(), icmp_reflect(),
ip_dooptions(), icmp6_redirect_input(), in6_lltable_rtcheck(),
in6p_lookup_mcast_ifp() and in6_selecthlim() use new routing api.
Eliminate now-unused ip_rtaddr().
Fix lookup key fib6_lookup_nh_basic() which was lost diring merge.
Make fib6_lookup_nh_basic() and fib6_lookup_nh_extended() always
return IPv6 destination address with embedded scope. Currently
rw_gateway has it scope embedded, do the same for non-gatewayed
destinations.
Sponsored by: Yandex LLC
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index edcafd5..6f25e08 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -878,33 +878,6 @@ ipproto_unregister(short ipproto) return (0); } -/* - * Given address of next destination (final or next hop), return (referenced) - * internet address info of interface to be used to get there. - */ -struct in_ifaddr * -ip_rtaddr(struct in_addr dst, u_int fibnum) -{ - struct route sro; - struct sockaddr_in *sin; - struct in_ifaddr *ia; - - bzero(&sro, sizeof(sro)); - sin = (struct sockaddr_in *)&sro.ro_dst; - sin->sin_family = AF_INET; - sin->sin_len = sizeof(*sin); - sin->sin_addr = dst; - in_rtalloc_ign(&sro, 0, fibnum); - - if (sro.ro_rt == NULL) - return (NULL); - - ia = ifatoia(sro.ro_rt->rt_ifa); - ifa_ref(&ia->ia_ifa); - RTFREE(sro.ro_rt); - return (ia); -} - u_char inetctlerrmap[PRC_NCMDS] = { 0, 0, 0, 0, 0, EMSGSIZE, EHOSTDOWN, EHOSTUNREACH, |