Lines Matching refs:nexthdr
2697 uint8_t nexthdr; in ipsec_init_inbound_sel() local
2710 nexthdr = ip6h->ip6_nxt; in ipsec_init_inbound_sel()
2718 switch (nexthdr) { in ipsec_init_inbound_sel()
2740 nexthdr = *nexthdrp; in ipsec_init_inbound_sel()
2760 nexthdr = ipha->ipha_protocol; in ipsec_init_inbound_sel()
2772 sel->ips_protocol = nexthdr; in ipsec_init_inbound_sel()
2774 if ((nexthdr != IPPROTO_TCP && nexthdr != IPPROTO_UDP && in ipsec_init_inbound_sel()
2775 nexthdr != IPPROTO_SCTP && nexthdr != icmp_proto) || in ipsec_init_inbound_sel()
2797 if (nexthdr == icmp_proto) { in ipsec_init_inbound_sel()
2825 uint8_t nexthdr; in ipsec_init_outbound_ports() local
2834 nexthdr = ip6h->ip6_nxt; in ipsec_init_outbound_ports()
2835 switch (nexthdr) { in ipsec_init_outbound_ports()
2856 nexthdr = *nexthdrp; in ipsec_init_outbound_ports()
2867 nexthdr = ipha->ipha_protocol; in ipsec_init_outbound_ports()
2870 sel->ips_protocol = nexthdr; in ipsec_init_outbound_ports()
2871 if (nexthdr != IPPROTO_TCP && nexthdr != IPPROTO_UDP && in ipsec_init_outbound_ports()
2872 nexthdr != IPPROTO_SCTP && nexthdr != check_proto) { in ipsec_init_outbound_ports()
2899 if (nexthdr == check_proto) { in ipsec_init_outbound_ports()