Home
last modified time | relevance | path

Searched refs:rthdr (Results 1 – 10 of 10) sorted by relevance

/titanic_41/usr/src/lib/libsocket/inet/
H A Dinet6_rthdr.c72 struct ip6_rthdr0 *rthdr; in inet6_rth_init() local
82 rthdr = (struct ip6_rthdr0 *)bp; in inet6_rth_init()
83 rthdr->ip6r0_nxt = 0; in inet6_rth_init()
84 rthdr->ip6r0_len = (segments * 2); in inet6_rth_init()
85 rthdr->ip6r0_type = type; in inet6_rth_init()
86 rthdr->ip6r0_segleft = 0; /* Incremented by rthdr_add */ in inet6_rth_init()
87 *(uint32_t *)&rthdr->ip6r0_reserved = 0; in inet6_rth_init()
98 struct ip6_rthdr0 *rthdr; in inet6_rth_add() local
101 rthdr = (struct ip6_rthdr0 *)bp; in inet6_rth_add()
102 if ((rthdr->ip6r0_segleft + 1) * 2 > rthdr->ip6r0_len) { in inet6_rth_add()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c949 ip6_rthdr_t *rthdr; in IPv6_hdrlen() local
986 rthdr = (ip6_rthdr_t *)whereptr; in IPv6_hdrlen()
987 exthdrlength = 8 * (rthdr->ip6r_len + 1); in IPv6_hdrlen()
988 if ((uchar_t *)rthdr + exthdrlength > endptr) in IPv6_hdrlen()
990 nexthdr = rthdr->ip6r_nxt; in IPv6_hdrlen()
1061 ip6_rthdr_t *rthdr; in pr_rthdr() local
1066 rthdr = (ip6_rthdr_t *)buf; in pr_rthdr()
1068 rthdr->ip6r_type, rthdr->ip6r_segleft); in pr_rthdr()
1070 if (rthdr->ip6r_type == 0) { in pr_rthdr()
/titanic_41/usr/src/uts/common/inet/ip/
H A Dip6.c2762 ip6_rthdr_t *rthdr; in ip_hdr_length_nexthdr_v6() local
2787 rthdr = (ip6_rthdr_t *)whereptr; in ip_hdr_length_nexthdr_v6()
2788 ehdrlen = 8 * (rthdr->ip6r_len + 1); in ip_hdr_length_nexthdr_v6()
2789 if ((uchar_t *)rthdr + ehdrlen > endptr) in ip_hdr_length_nexthdr_v6()
2791 nexthdrp = &rthdr->ip6r_nxt; in ip_hdr_length_nexthdr_v6()
3148 ip6_rthdr_t *rthdr; in ipsec_needs_processing_v6() local
3195 rthdr = (ip6_rthdr_t *)whereptr; in ipsec_needs_processing_v6()
3201 if (rthdr->ip6r_segleft > 0) in ipsec_needs_processing_v6()
3204 ehdrlen = 8 * (rthdr->ip6r_len + 1); in ipsec_needs_processing_v6()
3205 if ((uchar_t *)rthdr + ehdrlen > endptr) in ipsec_needs_processing_v6()
[all …]
H A Dipsecah.c2401 ip6_rthdr0_t *rthdr; in ah_fix_phdr_v6() local
2458 rthdr = (ip6_rthdr0_t *)oi_opt; in ah_fix_phdr_v6()
2459 nexthdr = rthdr->ip6r0_nxt; in ah_fix_phdr_v6()
2460 ehdrlen = 8 * (rthdr->ip6r0_len + 1); in ah_fix_phdr_v6()
2466 left = rthdr->ip6r0_segleft; in ah_fix_phdr_v6()
2469 ap = (in6_addr_t *)(rthdr + 1); in ah_fix_phdr_v6()
2491 rthdr = (ip6_rthdr0_t *)pi_opt; in ah_fix_phdr_v6()
2492 prev_nexthdr = (uint8_t *)&rthdr->ip6r0_nxt; in ah_fix_phdr_v6()
3760 ip6_rthdr0_t *rthdr; in ah_auth_in_done() local
3805 rthdr = (ip6_rthdr0_t *)whereptr; in ah_auth_in_done()
[all …]
H A Dip6_input.c2587 ip6_rthdr_t *rthdr; in ip_fanout_v6() local
2610 rthdr = (ip6_rthdr_t *)(rptr + ip_hdr_length); in ip_fanout_v6()
2611 protocol = ira->ira_protocol = rthdr->ip6r_nxt; in ip_fanout_v6()
2612 ehdrlen = 8 * (rthdr->ip6r_len + 1); in ip_fanout_v6()
2620 rthdr = (ip6_rthdr_t *)(rptr + ip_hdr_length); in ip_fanout_v6()
2622 if (rthdr->ip6r_segleft != 0) { in ip_fanout_v6()
2633 ip_process_rthdr(mp, ip6h, rthdr, ira); in ip_fanout_v6()
H A Dip.c15082 ip6_rthdr0_t *rthdr; in ip_pkt_source_route_v6() local
15087 rthdr = (ip6_rthdr0_t *)ipp->ipp_rthdr; in ip_pkt_source_route_v6()
15088 if (rthdr->ip6r0_segleft == 0) in ip_pkt_source_route_v6()
15091 nexthop = (in6_addr_t *)((char *)rthdr + sizeof (*rthdr)); in ip_pkt_source_route_v6()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux6.c546 ip6_rthdr_t *rthdr; in IPv6_hdrlen() local
583 rthdr = (ip6_rthdr_t *)whereptr; in IPv6_hdrlen()
584 exthdrlength = 8 * (rthdr->ip6r_len + 1); in IPv6_hdrlen()
585 if ((uchar_t *)rthdr + exthdrlength > endptr) in IPv6_hdrlen()
587 nexthdr = rthdr->ip6r_nxt; in IPv6_hdrlen()
/titanic_41/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.c511 ip6_rthdr_t *rthdr; in get_port_info() local
534 rthdr = (ip6_rthdr_t *)whereptr; in get_port_info()
535 ehdrlen = 8 * (rthdr->ip6r_len + 1); in get_port_info()
536 if ((uchar_t *)rthdr + ehdrlen > endptr) in get_port_info()
538 nexthdrp = &rthdr->ip6r_nxt; in get_port_info()
/titanic_41/usr/src/uts/common/ipp/flowacct/
H A Dflowacct.c133 ip6_rthdr_t *rthdr; in flowacct_port_info() local
156 rthdr = (ip6_rthdr_t *)whereptr; in flowacct_port_info()
157 ehdrlen = 8 * (rthdr->ip6r_len + 1); in flowacct_port_info()
158 if ((uchar_t *)rthdr + ehdrlen > endptr) in flowacct_port_info()
160 nexthdrp = &rthdr->ip6r_nxt; in flowacct_port_info()
/titanic_41/usr/src/uts/common/io/mac/
H A Dmac_util.c489 ip6_rthdr_t *rthdr; in mac_ip_hdr_length_v6() local
518 rthdr = (ip6_rthdr_t *)whereptr; in mac_ip_hdr_length_v6()
519 ehdrlen = 8 * (rthdr->ip6r_len + 1); in mac_ip_hdr_length_v6()
520 if ((uchar_t *)rthdr + ehdrlen > endptr) in mac_ip_hdr_length_v6()
522 nexthdrp = &rthdr->ip6r_nxt; in mac_ip_hdr_length_v6()