Lines Matching refs:skb
21 static int xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_transport_output() argument
23 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_output()
26 skb_set_network_header(skb, -x->props.header_len); in xfrm4_transport_output()
27 skb->mac_header = skb->network_header + in xfrm4_transport_output()
29 skb->transport_header = skb->network_header + ihl; in xfrm4_transport_output()
30 __skb_pull(skb, ihl); in xfrm4_transport_output()
31 memmove(skb_network_header(skb), iph, ihl); in xfrm4_transport_output()
43 static int xfrm4_transport_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_transport_input() argument
45 int ihl = skb->data - skb_transport_header(skb); in xfrm4_transport_input()
47 if (skb->transport_header != skb->network_header) { in xfrm4_transport_input()
48 memmove(skb_transport_header(skb), in xfrm4_transport_input()
49 skb_network_header(skb), ihl); in xfrm4_transport_input()
50 skb->network_header = skb->transport_header; in xfrm4_transport_input()
52 ip_hdr(skb)->tot_len = htons(skb->len + ihl); in xfrm4_transport_input()
53 skb_reset_transport_header(skb); in xfrm4_transport_input()