Lines Matching refs:trllc
100 struct trllc *trllc=(struct trllc *)(trh+1); in tr_header() local
102 hdr_len = sizeof(struct trh_hdr) + sizeof(struct trllc); in tr_header()
104 trllc = (struct trllc *)(trh+1); in tr_header()
105 trllc->dsap = trllc->ssap = EXTENDED_SAP; in tr_header()
106 trllc->llc = UI_CMD; in tr_header()
107 trllc->protid[0] = trllc->protid[1] = trllc->protid[2] = 0x00; in tr_header()
108 trllc->ethertype = htons(type); in tr_header()
146 struct trllc *trllc=(struct trllc *)(skb->data+sizeof(struct trh_hdr)); in tr_rebuild_header() local
153 if(trllc->ethertype != htons(ETH_P_IP)) { in tr_rebuild_header()
154 …_header: Don't know how to resolve type %04X addresses ?\n",(unsigned int)htons(trllc->ethertype)); in tr_rebuild_header()
180 struct trllc *trllc; in tr_type_trans() local
188 trllc = (struct trllc *)(skb->data+sizeof(struct trh_hdr)-TR_MAXRIFLEN+riflen); in tr_type_trans()
218 if (trllc->dsap == EXTENDED_SAP && in tr_type_trans()
219 (trllc->ethertype == ntohs(ETH_P_IP) || in tr_type_trans()
220 trllc->ethertype == ntohs(ETH_P_IPV6) || in tr_type_trans()
221 trllc->ethertype == ntohs(ETH_P_ARP))) in tr_type_trans()
223 skb_pull(skb, sizeof(struct trllc)); in tr_type_trans()
224 return trllc->ethertype; in tr_type_trans()