Lines Matching defs:hdr
69 struct frhdr hdr;
73 hdr.control = FRAD_I_UI;
77 hdr.IP_NLPID = FRAD_P_IP;
78 hlen = sizeof(hdr.control) + sizeof(hdr.IP_NLPID);
84 hdr.pad = FRAD_P_PADDING;
85 hdr.NLPID = FRAD_P_SNAP;
86 memset(hdr.OUI, 0, sizeof(hdr.OUI));
87 hdr.PID = htons(type);
88 hlen = sizeof(hdr);
96 memcpy(dest, &hdr, hlen);
103 struct frhdr *hdr;
106 if (!pskb_may_pull(skb, sizeof(*hdr))) {
113 hdr = (struct frhdr *) skb->data;
118 if (hdr->control != FRAD_I_UI)
121 hdr->control);
125 switch (hdr->IP_NLPID)
128 if (hdr->NLPID != FRAD_P_SNAP)
131 hdr->NLPID);
136 if (hdr->OUI[0] + hdr->OUI[1] + hdr->OUI[2] != 0)
139 hdr->OUI[0],
140 hdr->OUI[1],
141 hdr->OUI[2]);
149 skb->protocol = hdr->PID;
154 header = sizeof(hdr->control) + sizeof(hdr->IP_NLPID);
163 hdr->pad);
169 hdr->pad);