Lines Matching defs:data
142 struct hdlc_header *data = (struct hdlc_header *)skb->data;
146 if (data->address != HDLC_ADDR_ALLSTATIONS ||
147 data->control != HDLC_CTRL_UI)
150 switch (data->protocol) {
168 struct hdlc_header *data;
174 data = (struct hdlc_header *)skb->data;
176 data->address = HDLC_ADDR_ALLSTATIONS;
177 data->control = HDLC_CTRL_UI;
180 data->protocol = htons(PID_IP);
183 data->protocol = htons(PID_IPV6);
188 data->protocol = htons(type);
191 data->protocol = 0;
205 u8 id, unsigned int len, const void *data)
235 skb_put_data(skb, data, len);
242 sprintf(ptr, " %02X", skb->data[sizeof(struct cp_header) + i]);
295 /* SCA: RCR+ must supply id, len and data
296 SCN: RCR- must supply code, id, len and data
298 SCJ: RUC must supply CP packet len and data */
300 u8 id, unsigned int len, const void *data)
331 ppp_tx_cp(dev, pid, CP_CONF_ACK, id, len, data);
333 ppp_tx_cp(dev, pid, code, id, len, data);
339 ppp_tx_cp(dev, pid, CP_CODE_REJ, ++ppp->seq, len, data);
370 unsigned int req_len, const u8 *data)
383 for (opt = data; len; len -= opt[1], opt += opt[1]) {
423 ppp_cp_event(dev, pid, RCR_GOOD, CP_CONF_ACK, id, req_len, data);
435 struct hdlc_header *hdr = (struct hdlc_header *)skb->data;
482 sprintf(ptr, " %02X", skb->data[i]);
493 pid = ntohs(*(__be16 *)skb->data);
503 cp->id, len - 4, skb->data + 4);
518 ppp_cp_parse_cr(dev, pid, cp->id, len, skb->data);