Lines Matching refs:hdr
73 struct frhdr hdr; in dlci_header() local
77 hdr.control = FRAD_I_UI; in dlci_header()
81 hdr.IP_NLPID = FRAD_P_IP; in dlci_header()
82 hlen = sizeof(hdr.control) + sizeof(hdr.IP_NLPID); in dlci_header()
88 hdr.pad = FRAD_P_PADDING; in dlci_header()
89 hdr.NLPID = FRAD_P_SNAP; in dlci_header()
90 memset(hdr.OUI, 0, sizeof(hdr.OUI)); in dlci_header()
91 hdr.PID = htons(type); in dlci_header()
92 hlen = sizeof(hdr); in dlci_header()
100 memcpy(dest, &hdr, hlen); in dlci_header()
107 struct frhdr *hdr; in dlci_receive() local
110 if (!pskb_may_pull(skb, sizeof(*hdr))) { in dlci_receive()
117 hdr = (struct frhdr *) skb->data; in dlci_receive()
122 if (hdr->control != FRAD_I_UI) in dlci_receive()
125 hdr->control); in dlci_receive()
129 switch (hdr->IP_NLPID) in dlci_receive()
132 if (hdr->NLPID != FRAD_P_SNAP) in dlci_receive()
135 hdr->NLPID); in dlci_receive()
140 if (hdr->OUI[0] + hdr->OUI[1] + hdr->OUI[2] != 0) in dlci_receive()
143 hdr->OUI[0], in dlci_receive()
144 hdr->OUI[1], in dlci_receive()
145 hdr->OUI[2]); in dlci_receive()
153 skb->protocol = hdr->PID; in dlci_receive()
158 header = sizeof(hdr->control) + sizeof(hdr->IP_NLPID); in dlci_receive()
167 hdr->pad); in dlci_receive()
173 hdr->pad); in dlci_receive()