diff options
author | Ansis Atteka <aatteka@nicira.com> | 2013-09-19 00:29:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-19 20:11:15 +0200 |
commit | 749154aa56b57652a282cbde57a57abc278d1205 (patch) | |
tree | acf1977fa73c95547c0c121ef13c6e1fc1d4e8ef /net | |
parent | xen-netback: Don't destroy the netdev until the vif is shut down (diff) | |
download | linux-749154aa56b57652a282cbde57a57abc278d1205.tar.xz linux-749154aa56b57652a282cbde57a57abc278d1205.zip |
ip: use ip_hdr() in __ip_make_skb() to retrieve IP header
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ip_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 9ee17e3d11c3..eae2e262fbe5 100644 --- 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; |