Lines Matching defs:fddi
8 * Version: @(#)fddi.c 1.0.0 08/12/96
12 * fddi.c is based on previous eth.c and tr.c work by
58 struct fddihdr *fddi;
62 fddi = (struct fddihdr *)skb_push(skb, hl);
63 fddi->fc = FDDI_FC_K_ASYNC_LLC_DEF;
66 fddi->hdr.llc_snap.dsap = FDDI_EXTENDED_SAP;
67 fddi->hdr.llc_snap.ssap = FDDI_EXTENDED_SAP;
68 fddi->hdr.llc_snap.ctrl = FDDI_UI_CMD;
69 fddi->hdr.llc_snap.oui[0] = 0x00;
70 fddi->hdr.llc_snap.oui[1] = 0x00;
71 fddi->hdr.llc_snap.oui[2] = 0x00;
72 fddi->hdr.llc_snap.ethertype = htons(type);
78 memcpy(fddi->saddr, saddr, dev->addr_len);
80 memcpy(fddi->saddr, dev->dev_addr, dev->addr_len);
84 memcpy(fddi->daddr, daddr, dev->addr_len);
100 struct fddihdr *fddi = (struct fddihdr *)skb->data;
103 if (fddi->hdr.llc_snap.ethertype == htons(ETH_P_IP))
105 return arp_find(fddi->daddr, skb);
110 skb->dev->name, ntohs(fddi->hdr.llc_snap.ethertype));
125 struct fddihdr *fddi = (struct fddihdr *)skb->data;
136 if(fddi->hdr.llc_8022_1.dsap==0xe0)
144 type=fddi->hdr.llc_snap.ethertype;
149 if (*fddi->daddr & 0x01)
151 if (memcmp(fddi->daddr, dev->broadcast, FDDI_K_ALEN) == 0)
159 if (memcmp(fddi->daddr, dev->dev_addr, FDDI_K_ALEN))
211 return alloc_netdev(sizeof_priv, "fddi%d", fddi_setup);