]> err.no Git - linux-2.6/blobdiff - net/802/hippi.c
[ETH]: Validate address in eth_mac_addr
[linux-2.6] / net / 802 / hippi.c
index 35dd938cff95133b2bcf9076e2e553fb8eb50d4c..87ffc12b6891826232ebba946f29c101e3b4b2dc 100644 (file)
@@ -126,14 +126,14 @@ __be16 hippi_type_trans(struct sk_buff *skb, struct net_device *dev)
 {
        struct hippi_hdr *hip;
 
-       hip = (struct hippi_hdr *) skb->data;
-
        /*
         * This is actually wrong ... question is if we really should
         * set the raw address here.
         */
-        skb->mac.raw = skb->data;
-        skb_pull(skb, HIPPI_HLEN);
+       skb->dev = dev;
+       skb_reset_mac_header(skb);
+       hip = (struct hippi_hdr *)skb_mac_header(skb);
+       skb_pull(skb, HIPPI_HLEN);
 
        /*
         * No fancy promisc stuff here now.