Lines Matching refs:trllc
113 struct trllc *trllc;
115 hdr_len = sizeof(struct trh_hdr) + sizeof(struct trllc);
117 trllc = (struct trllc *)(trh+1);
118 trllc->dsap = trllc->ssap = EXTENDED_SAP;
119 trllc->llc = UI_CMD;
120 trllc->protid[0] = trllc->protid[1] = trllc->protid[2] = 0x00;
121 trllc->ethertype = htons(type);
159 struct trllc *trllc=(struct trllc *)(skb->data+sizeof(struct trh_hdr));
163 if(trllc->ethertype != htons(ETH_P_IP)) {
164 printk("tr_rebuild_header: Don't know how to resolve type %04X addresses ?\n", ntohs(trllc->ethertype));
190 struct trllc *trllc;
200 trllc = (struct trllc *)(skb->data+sizeof(struct trh_hdr)-TR_MAXRIFLEN+riflen);
230 if (trllc->dsap == EXTENDED_SAP &&
231 (trllc->ethertype == htons(ETH_P_IP) ||
232 trllc->ethertype == htons(ETH_P_IPV6) ||
233 trllc->ethertype == htons(ETH_P_ARP)))
235 skb_pull(skb, sizeof(struct trllc));
236 return trllc->ethertype;