Lines Matching refs:nexthdr

543 	uint8_t		nexthdr;  in icmp_inbound_verify_v6()  local
574 nexthdr = *nexthdrp; in icmp_inbound_verify_v6()
577 switch (nexthdr) { in icmp_inbound_verify_v6()
634 if ((uint8_t *)in_ip6h + (nexthdr == IPPROTO_ENCAP ? in icmp_inbound_verify_v6()
773 uint8_t nexthdr; in icmp_inbound_error_fanout_v6() local
787 nexthdr = *nexthdrp; in icmp_inbound_error_fanout_v6()
788 ira->ira_protocol = nexthdr; in icmp_inbound_error_fanout_v6()
797 rip6h.ip6_nxt = nexthdr; in icmp_inbound_error_fanout_v6()
800 switch (nexthdr) { in icmp_inbound_error_fanout_v6()
878 if (nexthdr == IPPROTO_ESP) in icmp_inbound_error_fanout_v6()
994 ASSERT(ira->ira_protocol == nexthdr); in icmp_inbound_error_fanout_v6()
2610 uint8_t nexthdr; in ip_find_hdr_v6() local
2626 nexthdr = ip6h->ip6_nxt; in ip_find_hdr_v6()
2632 switch (nexthdr) { in ip_find_hdr_v6()
2643 nexthdr = tmphopopts->ip6h_nxt; in ip_find_hdr_v6()
2680 nexthdr = tmpdstopts->ip6d_nxt; in ip_find_hdr_v6()
2698 nexthdr = tmprthdr->ip6r_nxt; in ip_find_hdr_v6()
2723 nexthdr = tmpfraghdr->ip6f_nxt; in ip_find_hdr_v6()
2739 *nexthdrp = nexthdr; in ip_find_hdr_v6()
3140 ipsec_needs_processing_v6(mblk_t *mp, uint8_t *nexthdr) in ipsec_needs_processing_v6() argument
3213 *nexthdr = IPPROTO_AH; in ipsec_needs_processing_v6()
3241 uint8_t nexthdr; in ipsec_early_ah_v6() local
3247 switch (ipsec_needs_processing_v6(mp, &nexthdr)) { in ipsec_early_ah_v6()
3258 ASSERT(nexthdr == IPPROTO_AH); in ipsec_early_ah_v6()
3300 uint8_t nexthdr = fraghdr->ip6f_nxt; in ip_input_fragment_v6() local
3331 if (nexthdr == IPPROTO_UDP && dohwcksum && in ip_input_fragment_v6()
3616 ipf->ipf_protocol = nexthdr; in ip_input_fragment_v6()
3796 nexthdr = ipf->ipf_protocol; in ip_input_fragment_v6()
3865 ((char *)ip6h)[prev_nexthdr_offset] = nexthdr; in ip_input_fragment_v6()
3877 ira->ira_protocol = nexthdr; in ip_input_fragment_v6()
3941 uint8_t nexthdr; in ip_get_dst_v6() local
3954 nexthdr = ip6h->ip6_nxt; in ip_get_dst_v6()
3963 while (nexthdr == IPPROTO_HOPOPTS || nexthdr == IPPROTO_DSTOPTS || in ip_get_dst_v6()
3964 nexthdr == IPPROTO_ROUTING) { in ip_get_dst_v6()
3965 if (nexthdr == IPPROTO_ROUTING) in ip_get_dst_v6()
3986 nexthdr = *whereptr; in ip_get_dst_v6()
3992 if (nexthdr == IPPROTO_FRAGMENT && is_fragment != NULL) in ip_get_dst_v6()
4017 uint8_t nexthdr; in ip_source_routed_v6() local
4026 nexthdr = ip6h->ip6_nxt; in ip_source_routed_v6()
4030 while (nexthdr == IPPROTO_HOPOPTS || in ip_source_routed_v6()
4031 nexthdr == IPPROTO_DSTOPTS) { in ip_source_routed_v6()
4045 nexthdr = hbhhdr->ip6h_nxt; in ip_source_routed_v6()
4048 switch (nexthdr) { in ip_source_routed_v6()
4120 uint8_t nexthdr; in ip_fragment_v6() local
4147 nexthdr = ip6h->ip6_nxt; in ip_fragment_v6()
4150 if (nexthdr == IPPROTO_HOPOPTS) { in ip_fragment_v6()
4156 nexthdr = hbh_hdr->ip6h_nxt; in ip_fragment_v6()
4159 if (nexthdr == IPPROTO_DSTOPTS) { in ip_fragment_v6()
4166 nexthdr = dest_hdr->ip6d_nxt; in ip_fragment_v6()
4170 if (nexthdr == IPPROTO_ROUTING) { in ip_fragment_v6()
4175 nexthdr = rthdr->ip6r_nxt; in ip_fragment_v6()
4179 if (nexthdr != IPPROTO_FRAGMENT) { in ip_fragment_v6()
4324 uint8_t nexthdr; in ip_fraghdr_add_v6() local
4336 nexthdr = ip6h->ip6_nxt; in ip_fraghdr_add_v6()
4340 if (nexthdr == IPPROTO_HOPOPTS) { in ip_fraghdr_add_v6()
4346 nexthdr = hbh_hdr->ip6h_nxt; in ip_fraghdr_add_v6()
4351 if (nexthdr == IPPROTO_DSTOPTS) { in ip_fraghdr_add_v6()
4358 nexthdr = dest_hdr->ip6d_nxt; in ip_fraghdr_add_v6()
4364 if (nexthdr == IPPROTO_ROUTING) { in ip_fraghdr_add_v6()
4369 nexthdr = rthdr->ip6r_nxt; in ip_fraghdr_add_v6()
4402 fraghdr->ip6f_nxt = nexthdr; in ip_fraghdr_add_v6()
4707 uint8_t nexthdr; in ip_find_rthdr_v6() local
4724 nexthdr = ip6h->ip6_nxt; in ip_find_rthdr_v6()
4730 switch (nexthdr) { in ip_find_rthdr_v6()
4736 nexthdr = desthdr->ip6d_nxt; in ip_find_rthdr_v6()
4745 nexthdr = fraghdr->ip6f_nxt; in ip_find_rthdr_v6()
4943 uint8_t nexthdr; in ipsec_ah_get_hdr_size_v6() local
4954 nexthdr = ip6h->ip6_nxt; in ipsec_ah_get_hdr_size_v6()
4958 ASSERT(nexthdr != IPPROTO_FRAGMENT); in ipsec_ah_get_hdr_size_v6()
4959 switch (nexthdr) { in ipsec_ah_get_hdr_size_v6()
4962 nexthdr = hbhhdr->ip6h_nxt; in ipsec_ah_get_hdr_size_v6()
4967 nexthdr = dsthdr->ip6d_nxt; in ipsec_ah_get_hdr_size_v6()
4972 nexthdr = rthdr->ip6r_nxt; in ipsec_ah_get_hdr_size_v6()
4977 ASSERT(nexthdr == IPPROTO_AH); in ipsec_ah_get_hdr_size_v6()
4986 if (nexthdr != IPPROTO_AH) { in ipsec_ah_get_hdr_size_v6()
4998 nexthdr = ah->ah_nexthdr; in ipsec_ah_get_hdr_size_v6()
5001 if (nexthdr == IPPROTO_DSTOPTS) { in ipsec_ah_get_hdr_size_v6()