patch-2.1.128 linux/net/802/fddi.c
Next file: linux/net/econet/econet.c
Previous file: linux/mm/vmscan.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sun Nov 8 14:06:18 1998
- Orig file:
v2.1.127/linux/net/802/fddi.c
- Orig date:
Mon Jan 12 15:28:19 1998
diff -u --recursive --new-file v2.1.127/linux/net/802/fddi.c linux/net/802/fddi.c
@@ -98,17 +98,19 @@
{
struct fddihdr *fddi = (struct fddihdr *)skb->data;
- if (fddi->hdr.llc_snap.ethertype != __constant_htons(ETH_P_IP))
+#ifdef CONFIG_INET
+ if (fddi->hdr.llc_snap.ethertype == __constant_htons(ETH_P_IP))
+ /* Try to get ARP to resolve the header and fill destination address */
+ return arp_find(fddi->daddr, skb);
+ else
+#endif
{
printk("%s: Don't know how to resolve type %02X addresses.\n",
skb->dev->name, htons(fddi->hdr.llc_snap.ethertype));
return(0);
}
-
- /* Try to get ARP to resolve the header and fill destination address */
-
- return arp_find(fddi->daddr, skb);
}
+
/*
* Determine the packet's protocol ID and fill in skb fields.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov