aboutsummaryrefslogtreecommitdiffstats
path: root/net/802/fddi.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/802/fddi.c')
-rw-r--r--net/802/fddi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/802/fddi.c b/net/802/fddi.c
index ace6386384bc..91dde41b5481 100644
--- a/net/802/fddi.c
+++ b/net/802/fddi.c
@@ -100,7 +100,7 @@ static int fddi_rebuild_header(struct sk_buff *skb)
100 struct fddihdr *fddi = (struct fddihdr *)skb->data; 100 struct fddihdr *fddi = (struct fddihdr *)skb->data;
101 101
102#ifdef CONFIG_INET 102#ifdef CONFIG_INET
103 if (fddi->hdr.llc_snap.ethertype == __constant_htons(ETH_P_IP)) 103 if (fddi->hdr.llc_snap.ethertype == htons(ETH_P_IP))
104 /* Try to get ARP to resolve the header and fill destination address */ 104 /* Try to get ARP to resolve the header and fill destination address */
105 return arp_find(fddi->daddr, skb); 105 return arp_find(fddi->daddr, skb);
106 else 106 else
@@ -130,12 +130,13 @@ __be16 fddi_type_trans(struct sk_buff *skb, struct net_device *dev)
130 * to start of packet data. Assume 802.2 SNAP frames for now. 130 * to start of packet data. Assume 802.2 SNAP frames for now.
131 */ 131 */
132 132
133 skb->mac.raw = skb->data; /* point to frame control (FC) */ 133 skb->dev = dev;
134 skb_reset_mac_header(skb); /* point to frame control (FC) */
134 135
135 if(fddi->hdr.llc_8022_1.dsap==0xe0) 136 if(fddi->hdr.llc_8022_1.dsap==0xe0)
136 { 137 {
137 skb_pull(skb, FDDI_K_8022_HLEN-3); 138 skb_pull(skb, FDDI_K_8022_HLEN-3);
138 type = __constant_htons(ETH_P_802_2); 139 type = htons(ETH_P_802_2);
139 } 140 }
140 else 141 else
141 { 142 {