Searched refs:rthdr (Results 1 – 10 of 10) sorted by relevance
72 struct ip6_rthdr0 *rthdr; in inet6_rth_init() local82 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() local101 rthdr = (struct ip6_rthdr0 *)bp; in inet6_rth_add()102 if ((rthdr->ip6r0_segleft + 1) * 2 > rthdr->ip6r0_len) { in inet6_rth_add()[all …]
949 ip6_rthdr_t *rthdr; in IPv6_hdrlen() local986 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() local1066 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()
2762 ip6_rthdr_t *rthdr; in ip_hdr_length_nexthdr_v6() local2787 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() local3195 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 …]
2401 ip6_rthdr0_t *rthdr; in ah_fix_phdr_v6() local2458 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() local3805 rthdr = (ip6_rthdr0_t *)whereptr; in ah_auth_in_done()[all …]
2587 ip6_rthdr_t *rthdr; in ip_fanout_v6() local2610 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()
15082 ip6_rthdr0_t *rthdr; in ip_pkt_source_route_v6() local15087 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()
546 ip6_rthdr_t *rthdr; in IPv6_hdrlen() local583 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()
511 ip6_rthdr_t *rthdr; in get_port_info() local534 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()
133 ip6_rthdr_t *rthdr; in flowacct_port_info() local156 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()
489 ip6_rthdr_t *rthdr; in mac_ip_hdr_length_v6() local518 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()