trllc 27 include/linux/if_tr.h #define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc)) trllc 115 net/802/tr.c struct trllc *trllc; trllc 117 net/802/tr.c hdr_len = sizeof(struct trh_hdr) + sizeof(struct trllc); trllc 119 net/802/tr.c trllc = (struct trllc *)(trh+1); trllc 120 net/802/tr.c trllc->dsap = trllc->ssap = EXTENDED_SAP; trllc 121 net/802/tr.c trllc->llc = UI_CMD; trllc 122 net/802/tr.c trllc->protid[0] = trllc->protid[1] = trllc->protid[2] = 0x00; trllc 123 net/802/tr.c trllc->ethertype = htons(type); trllc 161 net/802/tr.c struct trllc *trllc=(struct trllc *)(skb->data+sizeof(struct trh_hdr)); trllc 168 net/802/tr.c if(trllc->ethertype != htons(ETH_P_IP)) { trllc 169 net/802/tr.c printk("tr_rebuild_header: Don't know how to resolve type %04X addresses ?\n", ntohs(trllc->ethertype)); trllc 195 net/802/tr.c struct trllc *trllc; trllc 205 net/802/tr.c trllc = (struct trllc *)(skb->data+sizeof(struct trh_hdr)-TR_MAXRIFLEN+riflen); trllc 235 net/802/tr.c if (trllc->dsap == EXTENDED_SAP && trllc 236 net/802/tr.c (trllc->ethertype == htons(ETH_P_IP) || trllc 237 net/802/tr.c trllc->ethertype == htons(ETH_P_IPV6) || trllc 238 net/802/tr.c trllc->ethertype == htons(ETH_P_ARP))) trllc 240 net/802/tr.c skb_pull(skb, sizeof(struct trllc)); trllc 241 net/802/tr.c return trllc->ethertype;