]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/core/netpoll.c
[SK_BUFF]: Introduce skb_reset_mac_header(skb)
[net-next-2.6.git] / net / core / netpoll.c
index 32a9f80b5f19fd524258699102fae1feb651af53..0ad3896bbf62fa6b95825f63dc6b73662853bd32 100644 (file)
@@ -324,7 +324,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
        iph->check    = ip_fast_csum((unsigned char *)iph, iph->ihl);
 
        eth = (struct ethhdr *) skb_push(skb, ETH_HLEN);
-       skb->mac.raw = skb->data;
+       skb_reset_mac_header(skb);
        skb->protocol = eth->h_proto = htons(ETH_P_IP);
        memcpy(eth->h_source, np->local_mac, 6);
        memcpy(eth->h_dest, np->remote_mac, 6);