Lines Matching refs:header

87 		struct ll_header *header = (struct ll_header *)pskb->data;  in ctcm_unpack_skb()  local
91 (header->type != ETH_P_IP)) { in ctcm_unpack_skb()
103 CTCM_FUNTAIL, dev->name, header->type); in ctcm_unpack_skb()
109 pskb->protocol = ntohs(header->type); in ctcm_unpack_skb()
110 if ((header->length <= LL_HEADER_LENGTH) || in ctcm_unpack_skb()
117 header->length, dev->mtu, len); in ctcm_unpack_skb()
125 header->length -= LL_HEADER_LENGTH; in ctcm_unpack_skb()
127 if ((header->length > skb_tailroom(pskb)) || in ctcm_unpack_skb()
128 (header->length > len)) { in ctcm_unpack_skb()
133 dev->name, header->length); in ctcm_unpack_skb()
141 skb_put(pskb, header->length); in ctcm_unpack_skb()
143 len -= header->length; in ctcm_unpack_skb()
170 skb_pull(pskb, header->length); in ctcm_unpack_skb()
467 struct ll_header header; in ctcm_transmit_skb() local
487 header.length = l; in ctcm_transmit_skb()
488 header.type = skb->protocol; in ctcm_transmit_skb()
489 header.unused = 0; in ctcm_transmit_skb()
490 memcpy(skb_push(skb, LL_HEADER_LENGTH), &header, in ctcm_transmit_skb()
505 header.length = skb->len + LL_HEADER_LENGTH; in ctcm_transmit_skb()
506 header.type = skb->protocol; in ctcm_transmit_skb()
507 header.unused = 0; in ctcm_transmit_skb()
508 memcpy(skb_push(skb, LL_HEADER_LENGTH), &header, LL_HEADER_LENGTH); in ctcm_transmit_skb()
602 struct th_sweep *header; in ctcmpc_send_sweep_req() local
626 header = kmalloc(TH_SWEEP_LENGTH, gfp_type()); in ctcmpc_send_sweep_req()
628 if (!header) { in ctcmpc_send_sweep_req()
634 header->th.th_seg = 0x00 ; in ctcmpc_send_sweep_req()
635 header->th.th_ch_flag = TH_SWEEP_REQ; /* 0x0f */ in ctcmpc_send_sweep_req()
636 header->th.th_blk_flag = 0x00; in ctcmpc_send_sweep_req()
637 header->th.th_is_xid = 0x00; in ctcmpc_send_sweep_req()
638 header->th.th_seq_num = 0x00; in ctcmpc_send_sweep_req()
639 header->sw.th_last_seq = ch->th_seq_num; in ctcmpc_send_sweep_req()
641 memcpy(skb_put(sweep_skb, TH_SWEEP_LENGTH), header, TH_SWEEP_LENGTH); in ctcmpc_send_sweep_req()
643 kfree(header); in ctcmpc_send_sweep_req()
669 struct th_header *header; in ctcmpc_transmit_skb() local
771 header = kmalloc(TH_HEADER_LENGTH, gfp_type()); in ctcmpc_transmit_skb()
772 if (!header) in ctcmpc_transmit_skb()
775 header->th_seg = 0x00; in ctcmpc_transmit_skb()
776 header->th_ch_flag = TH_HAS_PDU; /* Normal data */ in ctcmpc_transmit_skb()
777 header->th_blk_flag = 0x00; in ctcmpc_transmit_skb()
778 header->th_is_xid = 0x00; /* Just data here */ in ctcmpc_transmit_skb()
780 header->th_seq_num = ch->th_seq_num; in ctcmpc_transmit_skb()
786 memcpy(skb_push(skb, TH_HEADER_LENGTH), header, TH_HEADER_LENGTH); in ctcmpc_transmit_skb()
788 kfree(header); in ctcmpc_transmit_skb()