Lines Matching defs:nexthdr
142 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq)
147 switch (nexthdr) {
199 XFRM_MODE_SKB_CB(skb)->protocol = ph->nexthdr;
447 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)
520 if (xfrm_parse_spi(skb, nexthdr, &spi, &seq)) {
550 if (!spi && xfrm_parse_spi(skb, nexthdr, &spi, &seq)) {
567 x = xfrm_state_lookup(net, mark, daddr, spi, nexthdr, family);
627 nexthdr = x->type_offload->input_tail(x, skb);
629 nexthdr = x->type->input(x, skb);
631 if (nexthdr == -EINPROGRESS)
637 if (nexthdr < 0) {
638 if (nexthdr == -EBADMSG) {
663 XFRM_MODE_SKB_CB(skb)->protocol = nexthdr;
682 err = xfrm_parse_spi(skb, nexthdr, &spi, &seq);
731 xfrm_rcv_cb(skb, family, x && x->type ? x->type->proto : nexthdr, -1);
737 int xfrm_input_resume(struct sk_buff *skb, int nexthdr)
739 return xfrm_input(skb, nexthdr, 0, -1);