Lines Matching defs:header

223  * Dump header and first 16 bytes of an sk_buff for debugging purposes.
231 struct th_header *header;
240 header = (struct th_header *)p;
245 switch (header->th_ch_flag) {
250 if ((header->th_blk_flag == TH_DATA_IS_XID) &&
251 (header->th_is_xid == 0x01))
270 ctcm_pr_debug("th->seg : %02x\n", header->th_seg);
271 ctcm_pr_debug("th->ch : %02x\n", header->th_ch_flag);
272 ctcm_pr_debug("th->blk_flag: %02x\n", header->th_blk_flag);
274 (header->th_is_xid) ? "DATA" : "XID");
275 ctcm_pr_debug("th->seqnum : %04x\n", header->th_seq_num);
642 struct th_sweep *header;
656 header = kmalloc(sizeof(struct th_sweep), gfp_type());
658 if (!header) {
663 header->th.th_seg = 0x00 ;
664 header->th.th_ch_flag = TH_SWEEP_RESP;
665 header->th.th_blk_flag = 0x00;
666 header->th.th_is_xid = 0x00;
667 header->th.th_seq_num = 0x00;
668 header->sw.th_last_seq = ch->th_seq_num;
670 skb_put_data(sweep_skb, header, TH_SWEEP_LENGTH);
672 kfree(header);
1046 struct th_header *header = NULL;
1057 header = (struct th_header *)pskb->data;
1058 if ((header->th_seg == 0) &&
1059 (header->th_ch_flag == 0) &&
1060 (header->th_blk_flag == 0) &&
1061 (header->th_seq_num == 0))
1065 CTCM_D3_DUMP((char *)header, TH_HEADER_LENGTH);
1072 if (likely(header->th_ch_flag == TH_HAS_PDU)) {
1076 (header->th_seq_num != ch->th_seq_num + 1) &&
1089 ch->th_seq_num + 1, header->th_seq_num);
1094 ch->th_seq_num = header->th_seq_num;
1183 mpcginfo->th = header;
1190 if (header->th_ch_flag == TH_SWEEP_REQ)
1192 else if (header->th_ch_flag == TH_SWEEP_RESP)
1194 else if (header->th_blk_flag == TH_DATA_IS_XID) {
1199 } else if (header->th_blk_flag == TH_DISCONTACT)
1201 else if (header->th_seq_num != 0) {