Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[IPSEC]: COW skb header in UDP decap

The following patch just makes the header part of the skb writeable.
This is needed since we modify the IP headers just a few lines below.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Herbert Xu and committed by
David S. Miller
4d78b6c7 c7f905f0

+2
+2
net/ipv4/udp.c
··· 955 955 * header and optional ESP marker bytes) and then modify the 956 956 * protocol to ESP, and then call into the transform receiver. 957 957 */ 958 + if (skb_cloned(skb) && pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) 959 + return 0; 958 960 959 961 /* Now we can update and verify the packet length... */ 960 962 iph = skb->nh.iph;