Lines Matching refs:pskb

107 static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb);
1026 static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb) in ctcmpc_unpack_skb() argument
1044 header = (struct th_header *)pskb->data; in ctcmpc_unpack_skb()
1053 CTCM_PR_DBGDATA("%s: pskb len: %04x \n", __func__, pskb->len); in ctcmpc_unpack_skb()
1055 pskb->dev = dev; in ctcmpc_unpack_skb()
1056 pskb->ip_summed = CHECKSUM_UNNECESSARY; in ctcmpc_unpack_skb()
1057 skb_pull(pskb, TH_HEADER_LENGTH); in ctcmpc_unpack_skb()
1072 __skb_push(pskb, TH_HEADER_LENGTH); in ctcmpc_unpack_skb()
1073 skb_queue_tail(&ch->io_queue, pskb); in ctcmpc_unpack_skb()
1088 while ((pskb->len > 0) && !pdu_last_seen) { in ctcmpc_unpack_skb()
1089 curr_pdu = (struct pdu *)pskb->data; in ctcmpc_unpack_skb()
1092 CTCM_D3_DUMP((char *)pskb->data, PDU_HEADER_LENGTH); in ctcmpc_unpack_skb()
1094 __func__, pskb->len); in ctcmpc_unpack_skb()
1096 skb_pull(pskb, PDU_HEADER_LENGTH); in ctcmpc_unpack_skb()
1101 pskb->protocol = htons(ETH_P_SNAP); in ctcmpc_unpack_skb()
1103 pskb->protocol = htons(ETH_P_SNA_DIX); in ctcmpc_unpack_skb()
1105 if ((pskb->len <= 0) || (pskb->len > ch->max_bufsize)) { in ctcmpc_unpack_skb()
1109 CTCM_FUNTAIL, dev->name, pskb->len); in ctcmpc_unpack_skb()
1115 skb_reset_mac_header(pskb); in ctcmpc_unpack_skb()
1119 if ((new_len == 0) || (new_len > pskb->len)) { in ctcmpc_unpack_skb()
1138 skb_put_data(skb, pskb->data, new_len); in ctcmpc_unpack_skb()
1141 skb->dev = pskb->dev; in ctcmpc_unpack_skb()
1142 skb->protocol = pskb->protocol; in ctcmpc_unpack_skb()
1162 skb_pull(pskb, new_len); /* point to next PDU */ in ctcmpc_unpack_skb()
1171 mpcginfo->skb = pskb; in ctcmpc_unpack_skb()
1175 sweep = (struct th_sweep *)pskb->data; in ctcmpc_unpack_skb()
1182 struct xid2 *thisxid = (struct xid2 *)pskb->data; in ctcmpc_unpack_skb()
1183 skb_pull(pskb, XID2_LENGTH); in ctcmpc_unpack_skb()
1195 ctcmpc_dump_skb(pskb, -8); in ctcmpc_unpack_skb()
1201 dev_kfree_skb_any(pskb); in ctcmpc_unpack_skb()