Home
last modified time | relevance | path

Searched refs:hdlc_skb (Results 1 – 1 of 1) sorted by relevance

/linux-3.4.99/drivers/isdn/gigaset/
Dasyncdata.c460 struct sk_buff *hdlc_skb; in HDLC_Encode() local
482 hdlc_skb = dev_alloc_skb(skb->len + stuf_cnt + 6 + skb->mac_len); in HDLC_Encode()
483 if (!hdlc_skb) { in HDLC_Encode()
489 skb_reset_mac_header(hdlc_skb); in HDLC_Encode()
490 skb_reserve(hdlc_skb, skb->mac_len); in HDLC_Encode()
491 memcpy(skb_mac_header(hdlc_skb), skb_mac_header(skb), skb->mac_len); in HDLC_Encode()
492 hdlc_skb->mac_len = skb->mac_len; in HDLC_Encode()
495 *(skb_put(hdlc_skb, 1)) = PPP_FLAG; in HDLC_Encode()
500 *(skb_put(hdlc_skb, 1)) = PPP_ESCAPE; in HDLC_Encode()
501 *(skb_put(hdlc_skb, 1)) = (*skb->data++) ^ PPP_TRANS; in HDLC_Encode()
[all …]