12 #include <linux/module.h>
13 #include <linux/string.h>
14 #include <linux/netfilter.h>
15 #include <linux/netfilter_ipv6.h>
34 skb_network_header(skb)[
IP6CB(skb)->nhoff] =
37 #ifndef CONFIG_NETFILTER
42 ipv6_hdr(skb)->payload_len =
htons(skb->
len);
43 __skb_push(skb, skb->
data - skb_network_header(skb));
66 if (!skb->sp ||
atomic_read(&skb->sp->refcnt) != 1) {
84 for (i = 0; i < 3; i++) {
113 spin_unlock(&x->
lock);
114 if (x->
type->input(x, skb) > 0) {
119 spin_unlock(&x->
lock);
127 xfrm_audit_state_notfound_simple(skb,
AF_INET6);
131 skb->sp->xvec[skb->sp->
len++] =
x;
138 spin_unlock(&x->
lock);