Lines Matching refs:fddi
59 struct fddihdr *fddi; in fddi_header() local
63 fddi = (struct fddihdr *)skb_push(skb, hl); in fddi_header()
64 fddi->fc = FDDI_FC_K_ASYNC_LLC_DEF; in fddi_header()
67 fddi->hdr.llc_snap.dsap = FDDI_EXTENDED_SAP; in fddi_header()
68 fddi->hdr.llc_snap.ssap = FDDI_EXTENDED_SAP; in fddi_header()
69 fddi->hdr.llc_snap.ctrl = FDDI_UI_CMD; in fddi_header()
70 fddi->hdr.llc_snap.oui[0] = 0x00; in fddi_header()
71 fddi->hdr.llc_snap.oui[1] = 0x00; in fddi_header()
72 fddi->hdr.llc_snap.oui[2] = 0x00; in fddi_header()
73 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header()
79 memcpy(fddi->saddr, saddr, dev->addr_len); in fddi_header()
81 memcpy(fddi->saddr, dev->dev_addr, dev->addr_len); in fddi_header()
85 memcpy(fddi->daddr, daddr, dev->addr_len); in fddi_header()
101 struct fddihdr *fddi = (struct fddihdr *)skb->data; in fddi_rebuild_header() local
104 if (fddi->hdr.llc_snap.ethertype == __constant_htons(ETH_P_IP)) in fddi_rebuild_header()
106 return arp_find(fddi->daddr, skb); in fddi_rebuild_header()
111 skb->dev->name, htons(fddi->hdr.llc_snap.ethertype)); in fddi_rebuild_header()
126 struct fddihdr *fddi = (struct fddihdr *)skb->data; in fddi_type_trans() local
136 if(fddi->hdr.llc_8022_1.dsap==0xe0) in fddi_type_trans()
144 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
149 if (*fddi->daddr & 0x01) in fddi_type_trans()
151 if (memcmp(fddi->daddr, dev->broadcast, FDDI_K_ALEN) == 0) in fddi_type_trans()
159 if (memcmp(fddi->daddr, dev->dev_addr, FDDI_K_ALEN)) in fddi_type_trans()