[ 3.5.y.z extended stable ] Patch "ip: use ip_hdr() in __ip_make_skb() to retrieve IP header" has been added to staging queue
Luis Henriques
luis.henriques at canonical.com
Mon Oct 7 15:36:12 UTC 2013
This is a note to let you know that I have just added a patch titled
ip: use ip_hdr() in __ip_make_skb() to retrieve IP header
to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Luis
------
>From 10a2557b2536ac71d9e778a26d92a98a7b9a34ca Mon Sep 17 00:00:00 2001
From: Ansis Atteka <aatteka at nicira.com>
Date: Wed, 18 Sep 2013 15:29:52 -0700
Subject: [PATCH] ip: use ip_hdr() in __ip_make_skb() to retrieve IP header
commit 749154aa56b57652a282cbde57a57abc278d1205 upstream.
skb->data already points to IP header, but for the sake of
consistency we can also use ip_hdr() to retrieve it.
Signed-off-by: Ansis Atteka <aatteka at nicira.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
net/ipv4/ip_output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 451f97c..50009a1 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1342,7 +1342,7 @@ struct sk_buff *__ip_make_skb(struct sock *sk,
else
ttl = ip_select_ttl(inet, &rt->dst);
- iph = (struct iphdr *)skb->data;
+ iph = ip_hdr(skb);
iph->version = 4;
iph->ihl = 5;
iph->tos = inet->tos;
--
1.8.3.2
More information about the kernel-team
mailing list