/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_input.c | 483 ASSERT(IN6_IS_ADDR_LINKLOCAL(nexthop)); in ire_linklocal() 608 nexthop = ip6h->ip6_dst; in ill_input_short_v6() 610 if (IN6_IS_ADDR_UNSPECIFIED(&nexthop)) { in ill_input_short_v6() 713 nexthop = ipv6_all_hosts_mcast; in ill_input_short_v6() 729 !IN6_IS_ADDR_LINKLOCAL(&nexthop)) { in ill_input_short_v6() 754 nexthop = lb_dst; in ill_input_short_v6() 766 if (IN6_IS_ADDR_MULTICAST(&nexthop)) { in ill_input_short_v6() 768 } else if (IN6_IS_ADDR_LINKLOCAL(&nexthop)) { in ill_input_short_v6() 783 rtc->rtc_ip6addr = nexthop; in ill_input_short_v6() 790 if (IN6_IS_ADDR_MULTICAST(&nexthop)) { in ill_input_short_v6() [all …]
|
H A D | ip_ftable.c | 577 ipaddr_t nexthop; in ipfil_sendpkt() local 618 nexthop = ((struct sockaddr_in *)dst_addr)->sin_addr.s_addr; in ipfil_sendpkt() 619 if (nexthop != ipha->ipha_dst) { in ipfil_sendpkt() 621 ixas.ixa_nexthop_v4 = nexthop; in ipfil_sendpkt() 1400 ipaddr_t nexthop, uint_t ire_type, const ill_t *ill_arg, in ire_route_recursive_impl_v4() argument 1428 ire = ire_ftable_lookup_v4(nexthop, 0, 0, ire_type, in ire_route_recursive_impl_v4() 1559 IN6_IPADDR_TO_V4MAPPED(nexthop, &v6nexthop); in ire_route_recursive_impl_v4() 1602 nexthop = ire->ire_gateway_addr; in ire_route_recursive_impl_v4() 1701 return (ire_route_recursive_impl_v4(NULL, nexthop, ire_type, ill, in ire_route_recursive_v4() 1719 ire_route_recursive_dstonly_v4(ipaddr_t nexthop, uint_t irr_flags, in ire_route_recursive_dstonly_v4() argument [all …]
|
H A D | ip_input.c | 429 ipaddr_t nexthop = *(ipaddr_t *)nexthop_arg; in ill_input_full_v4() local 520 nexthop = INADDR_BROADCAST; in ill_input_full_v4() 544 nexthop = htonl(INADDR_UNSPEC_GROUP); in ill_input_full_v4() 642 nexthop = ipha->ipha_dst; in ill_input_short_v4() 643 if (nexthop == INADDR_ANY) { in ill_input_short_v4() 727 nexthop = lb_dst; in ill_input_short_v4() 766 nexthop = ip_input_options(ipha, nexthop, mp, ira, &error); in ill_input_short_v4() 783 if (CLASSD(nexthop)) { in ill_input_short_v4() 797 rtc->rtc_ipaddr = nexthop; in ill_input_short_v4() 803 if (CLASSD(nexthop)) { in ill_input_short_v4() [all …]
|
H A D | ip_ire.c | 3326 ire_t *nexthop; in ire_revalidate_nce() local 3338 nexthop = ire_nexthop(ire); in ire_revalidate_nce() 3339 if (nexthop == NULL) { in ire_revalidate_nce() 3354 nce = arp_nce_init(nexthop->ire_ill, nexthop->ire_addr, in ire_revalidate_nce() 3355 nexthop->ire_type); in ire_revalidate_nce() 3358 &nexthop->ire_addr_v6, nexthop->ire_type); in ire_revalidate_nce() 3366 ire_refrele(nexthop); in ire_revalidate_nce() 3370 if (nexthop != ire) { in ire_revalidate_nce() 3376 nexthop->ire_nce_cache = nce; in ire_revalidate_nce() 3378 nexthop->ire_nce_cache = NULL; in ire_revalidate_nce() [all …]
|
H A D | ip6_ire.c | 1163 const in6_addr_t *nexthop, uint_t ire_type, const ill_t *ill_arg, in ire_route_recursive_impl_v6() argument 1169 in6_addr_t v6nexthop = *nexthop; in ire_route_recursive_impl_v6() 1451 ire_route_recursive_v6(const in6_addr_t *nexthop, uint_t ire_type, in ire_route_recursive_v6() argument 1456 return (ire_route_recursive_impl_v6(NULL, nexthop, ire_type, ill, in ire_route_recursive_v6() 1474 ire_route_recursive_dstonly_v6(const in6_addr_t *nexthop, uint_t irr_flags, in ire_route_recursive_dstonly_v6() argument 1482 ire = ire_ftable_lookup_simple_v6(nexthop, xmit_hint, ipst, in ire_route_recursive_dstonly_v6() 1514 ire1 = ire_route_recursive_impl_v6(ire, nexthop, 0, NULL, ALL_ZONES, in ire_route_recursive_dstonly_v6()
|
H A D | ip6_output.c | 1167 in6_addr_t nexthop; in ip_postfrag_multirt_v6() local 1263 nexthop = ip6h->ip6_dst; in ip_postfrag_multirt_v6() 1266 nexthop = ire1->ire_gateway_addr_v6; in ip_postfrag_multirt_v6() 1279 nce1 = ndp_nce_init(ill1, &nexthop, ire_type); in ip_postfrag_multirt_v6()
|
H A D | conn_opt.c | 2483 const in6_addr_t *dst, in6_addr_t *nexthop) in ip_attr_nexthop() argument 2486 *nexthop = *dst; in ip_attr_nexthop() 2498 IN6_IPADDR_TO_V4MAPPED(v4nexthop, nexthop); in ip_attr_nexthop() 2506 *nexthop = *v6nexthop; in ip_attr_nexthop() 2610 in6_addr_t nexthop; in conn_connect() local 2633 &connp->conn_faddr_v6, &nexthop); in conn_connect() 2639 error = ip_attr_connect(connp, ixa, &saddr, &faddr, &nexthop, fport, in conn_connect()
|
H A D | ip_netinfo.c | 1064 ip_routeto_impl(struct sockaddr *address, struct sockaddr *nexthop, in ip_routeto_impl() argument 1067 struct sockaddr_in6 *next6 = (struct sockaddr_in6 *)nexthop; in ip_routeto_impl() 1069 struct sockaddr_in *next = (struct sockaddr_in *)nexthop; in ip_routeto_impl() 1111 if (nexthop != NULL) { in ip_routeto_impl()
|
H A D | ip_output.c | 2228 ipaddr_t nexthop; in ip_postfrag_multirt_v4() local 2331 nexthop = ire1->ire_gateway_addr; in ip_postfrag_multirt_v4() 2334 nexthop = ipha->ipha_dst; in ip_postfrag_multirt_v4() 2337 nexthop = ire1->ire_gateway_addr; in ip_postfrag_multirt_v4() 2350 nce1 = arp_nce_init(ill1, nexthop, ire_type); in ip_postfrag_multirt_v4()
|
H A D | icmp.c | 2283 in6_addr_t saddr, faddr, nexthop; in icmp_opt_set() local 2298 &connp->conn_faddr_v6, &nexthop); in icmp_opt_set() 2307 &saddr, &faddr, &nexthop, fport, NULL, NULL, in icmp_opt_set() 3729 in6_addr_t nexthop; in icmp_output_connected() local 3735 ip_attr_nexthop(&connp->conn_xmit_ipp, ixa, &faddr, &nexthop); in icmp_output_connected() 3738 error = ip_attr_connect(connp, ixa, &saddr, &faddr, &nexthop, in icmp_output_connected() 3881 in6_addr_t nexthop; in icmp_output_lastdst() local 3887 ip_attr_nexthop(&connp->conn_xmit_ipp, ixa, &lastdst, &nexthop); in icmp_output_lastdst() 3891 &nexthop, lastport, NULL, NULL, IPDF_ALLOW_MCBC | in icmp_output_lastdst()
|
H A D | ip.c | 15037 ipaddr_t nexthop = INADDR_ANY; in ip_pkt_source_route_v4() local 15070 bcopy((char *)opt + off, &nexthop, IP_ADDR_LEN); in ip_pkt_source_route_v4() 15071 if (nexthop == htonl(INADDR_LOOPBACK)) { in ip_pkt_source_route_v4() 15073 nexthop = INADDR_ANY; in ip_pkt_source_route_v4() 15079 return (nexthop); in ip_pkt_source_route_v4() 15134 in6_addr_t *nexthop = NULL; in ip_pkt_source_route_v6() local 15144 nexthop = (in6_addr_t *)((char *)rthdr + sizeof (*rthdr)); in ip_pkt_source_route_v6() 15145 return (nexthop); in ip_pkt_source_route_v6()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | input.c | 135 struct in6_addr nexthop; in rip_input() local 378 nexthop = n->rip6_prefix; in rip_input() 382 gate = &nexthop; in rip_input()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping.c | 128 char *nexthop; variable 483 if (nexthop != NULL) { in main() 488 nexthop = optarg; in main() 879 if (nexthop != NULL) { in resolve_nodes() 880 get_hostinfo(nexthop, family_input, &ai_nexthop); in resolve_nodes() 882 print_unknown_host_msg("", nexthop); in resolve_nodes() 1440 if (nexthop != NULL) in setup_socket()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_main.c | 75 struct in6_addr nexthop); 1611 struct in6_addr nexthop; in ire_process_v4() local 1650 IN6_INADDR_TO_V4MAPPED(&nexthop_v4, &nexthop); in ire_process_v4() 1651 router_add_common(AF_INET, ifname, nexthop); in ire_process_v4() 1657 router_add_common(int af, char *ifname, struct in6_addr nexthop) in router_add_common() argument 1675 if (own_address(nexthop)) in router_add_common() 1688 target_add(pii, nexthop, _B_TRUE); in router_add_common() 1692 target_add(PHYINT_INSTANCE(pi, af), nexthop, _B_TRUE); in router_add_common()
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_opt_data.c | 1143 in6_addr_t nexthop; in tcp_opt_set() local 1152 &connp->conn_faddr_v6, &nexthop); in tcp_opt_set() 1158 &nexthop, connp->conn_fport, NULL, NULL, in tcp_opt_set()
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_common.c | 89 in6_addr_t nexthop; in sctp_get_dest() local 122 &nexthop); in sctp_get_dest() 126 &nexthop, connp->conn_fport, &laddr, &uinfo, flags); in sctp_get_dest()
|
/illumos-gate/usr/src/uts/common/inet/udp/ |
H A D | udp.c | 2004 in6_addr_t saddr, faddr, nexthop; in udp_opt_set() local 2019 &connp->conn_faddr_v6, &nexthop); in udp_opt_set() 2028 &saddr, &faddr, &nexthop, fport, NULL, NULL, in udp_opt_set() 3074 in6_addr_t nexthop; in udp_output_connected() local 3080 ip_attr_nexthop(&connp->conn_xmit_ipp, ixa, &faddr, &nexthop); in udp_output_connected() 3083 error = ip_attr_connect(connp, ixa, &saddr, &faddr, &nexthop, in udp_output_connected() 3205 in6_addr_t nexthop; in udp_output_lastdst() local 3211 ip_attr_nexthop(&connp->conn_xmit_ipp, ixa, &lastdst, &nexthop); in udp_output_lastdst() 3215 &nexthop, lastport, NULL, NULL, IPDF_ALLOW_MCBC | in udp_output_lastdst()
|