projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
279f438
)
ip: use ip_hdr() in __ip_make_skb() to retrieve IP header
author
Ansis Atteka
<aatteka@nicira.com>
Wed, 18 Sep 2013 22:29:52 +0000
(15:29 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 19 Sep 2013 18:11:15 +0000
(14:11 -0400)
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@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c
patch
|
blob
|
history
diff --git
a/net/ipv4/ip_output.c
b/net/ipv4/ip_output.c
index
9ee17e3
..
eae2e26
100644
(file)
--- a/
net/ipv4/ip_output.c
+++ b/
net/ipv4/ip_output.c
@@
-1316,7
+1316,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;