tree e04f156e8d74c28b925bf53e62d3e4b424a6ffb7
parent c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d
author Herbert Xu <[EMAIL PROTECTED]> Wed, 20 Apr 2005 12:48:59 -0700
committer David S. Miller <[EMAIL PROTECTED]> Wed, 20 Apr 2005 12:48:59 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
ipv4/udp.c | 2 ++
1 files changed, 2 insertions(+)
Index: net/ipv4/udp.c
===================================================================
--- 4d0116592a49e7887e33b778ba1b286758812a5f/net/ipv4/udp.c (mode:100644
sha1:6baddfbedca3f90adaef9f22e2e97d889cbdc945)
+++ e04f156e8d74c28b925bf53e62d3e4b424a6ffb7/net/ipv4/udp.c (mode:100644
sha1:8a213238f2873e8a985bf1c85b1f8f347d8f7d8c)
@@ -955,6 +955,8 @@
* header and optional ESP marker bytes) and then modify the
* protocol to ESP, and then call into the transform receiver.
*/
+ if (skb_cloned(skb) && pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
+ return 0;
/* Now we can update and verify the packet length... */
iph = skb->nh.iph;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html