Lines Matching refs:fddi
57 struct fddihdr *fddi; in fddi_header() local
61 fddi = (struct fddihdr *)skb_push(skb, hl); in fddi_header()
62 fddi->fc = FDDI_FC_K_ASYNC_LLC_DEF; in fddi_header()
65 fddi->hdr.llc_snap.dsap = FDDI_EXTENDED_SAP; in fddi_header()
66 fddi->hdr.llc_snap.ssap = FDDI_EXTENDED_SAP; in fddi_header()
67 fddi->hdr.llc_snap.ctrl = FDDI_UI_CMD; in fddi_header()
68 fddi->hdr.llc_snap.oui[0] = 0x00; in fddi_header()
69 fddi->hdr.llc_snap.oui[1] = 0x00; in fddi_header()
70 fddi->hdr.llc_snap.oui[2] = 0x00; in fddi_header()
71 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header()
77 memcpy(fddi->saddr, saddr, dev->addr_len); in fddi_header()
79 memcpy(fddi->saddr, dev->dev_addr, dev->addr_len); in fddi_header()
83 memcpy(fddi->daddr, daddr, dev->addr_len); in fddi_header()
99 struct fddihdr *fddi = (struct fddihdr *)skb->data; in fddi_rebuild_header() local
102 if (fddi->hdr.llc_snap.ethertype == htons(ETH_P_IP)) in fddi_rebuild_header()
104 return arp_find(fddi->daddr, skb); in fddi_rebuild_header()
109 skb->dev->name, ntohs(fddi->hdr.llc_snap.ethertype)); in fddi_rebuild_header()
124 struct fddihdr *fddi = (struct fddihdr *)skb->data; in fddi_type_trans() local
135 if(fddi->hdr.llc_8022_1.dsap==0xe0) in fddi_type_trans()
143 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
148 if (*fddi->daddr & 0x01) in fddi_type_trans()
150 if (memcmp(fddi->daddr, dev->broadcast, FDDI_K_ALEN) == 0) in fddi_type_trans()
158 if (memcmp(fddi->daddr, dev->dev_addr, FDDI_K_ALEN)) in fddi_type_trans()