]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/atm/br2684.c
[SK_BUFF]: Introduce skb_reset_mac_header(skb)
[net-next-2.6.git] / net / atm / br2684.c
index c444f5eda22d3c7fdaf8d36e7ea5532b8b08b8df..900d42ca8a5063f4549300c553276e58447dd129 100644 (file)
@@ -458,7 +458,7 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb)
        /* FIXME: tcpdump shows that pointer to mac header is 2 bytes earlier,
           than should be. What else should I set? */
        skb_pull(skb, plen);
-       skb->mac.raw = ((char *) (skb->data)) - ETH_HLEN;
+       skb->mac.raw = skb->data - ETH_HLEN;
        skb->pkt_type = PACKET_HOST;
 #ifdef CONFIG_BR2684_FAST_TRANS
        skb->protocol = ((u16 *) skb->data)[-1];