Lines Matching refs:pskb
74 void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb) in ctcm_unpack_skb() argument
78 __u16 len = *((__u16 *) pskb->data); in ctcm_unpack_skb()
80 skb_put(pskb, 2 + LL_HEADER_LENGTH); in ctcm_unpack_skb()
81 skb_pull(pskb, 2); in ctcm_unpack_skb()
82 pskb->dev = dev; in ctcm_unpack_skb()
83 pskb->ip_summed = CHECKSUM_UNNECESSARY; in ctcm_unpack_skb()
87 struct ll_header *header = (struct ll_header *)pskb->data; in ctcm_unpack_skb()
89 skb_pull(pskb, LL_HEADER_LENGTH); in ctcm_unpack_skb()
109 pskb->protocol = ntohs(header->type); in ctcm_unpack_skb()
127 if ((header->length > skb_tailroom(pskb)) || in ctcm_unpack_skb()
141 skb_put(pskb, header->length); in ctcm_unpack_skb()
142 skb_reset_mac_header(pskb); in ctcm_unpack_skb()
144 skb = dev_alloc_skb(pskb->len); in ctcm_unpack_skb()
155 skb_copy_from_linear_data(pskb, skb_put(skb, pskb->len), in ctcm_unpack_skb()
156 pskb->len); in ctcm_unpack_skb()
158 skb->dev = pskb->dev; in ctcm_unpack_skb()
159 skb->protocol = pskb->protocol; in ctcm_unpack_skb()
160 pskb->ip_summed = CHECKSUM_UNNECESSARY; in ctcm_unpack_skb()
170 skb_pull(pskb, header->length); in ctcm_unpack_skb()
171 if (skb_tailroom(pskb) < LL_HEADER_LENGTH) { in ctcm_unpack_skb()
177 skb_put(pskb, LL_HEADER_LENGTH); in ctcm_unpack_skb()