]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv4/route.c
[SK_BUFF]: Introduce skb_reset_mac_header(skb)
[mirror_ubuntu-bionic-kernel.git] / net / ipv4 / route.c
index 0b3d7bf40f4e1bfaeb44849ea5b74b1ef041c67f..29ee7be45aa6ab465c2f398a10d713ec07f1f444 100644 (file)
@@ -2747,7 +2747,8 @@ int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg)
        /* Reserve room for dummy headers, this skb can pass
           through good chunk of routing engine.
         */
-       skb->mac.raw = skb->nh.raw = skb->data;
+       skb_reset_mac_header(skb);
+       skb->nh.raw = skb->data;
 
        /* Bugfix: need to give ip_route_input enough of an IP header to not gag. */
        skb->nh.iph->protocol = IPPROTO_ICMP;