From: Ansis Atteka Date: Wed, 18 Sep 2013 22:29:52 +0000 (-0700) Subject: ip: use ip_hdr() in __ip_make_skb() to retrieve IP header X-Git-Tag: MMI-PSA29.97-13-9~13581^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=749154aa56b57652a282cbde57a57abc278d1205;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- 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;