Lines Matching refs:tcp
169 /* TODO: add test cases for xnb_add_mbuf_cksum for IPV6 tcp and udp */
2301 * xnb_add_mbuf_cksum tcp unit tests. m must already be allocated and must be
2309 struct tcphdr *tcp;
2317 tcp = (struct tcphdr*)(iph + 1);
2318 tcp->th_sport = htons(0x9cd9);
2319 tcp->th_dport = htons(2222);
2320 tcp->th_seq = htonl(0x00f72b10);
2321 tcp->th_ack = htonl(0x7f37ba6c);
2322 tcp->th_x2 = 0;
2323 tcp->th_off = 8;
2324 tcp->th_flags = 0x18;
2325 tcp->th_win = htons(0x410);
2327 tcp->th_sum = htons(0xbaad);
2328 tcp->th_urp = htons(0);
2333 options = (uint32_t*)(tcp + 1);
2362 struct tcphdr *tcp;
2371 tcp = (struct tcphdr*)(iph + 1);
2385 XNB_ASSERT(tcp->th_sum == htons(TCP_CSUM));
2403 struct tcphdr *tcp;
2415 tcp = (struct tcphdr*)(iph + 1);
2416 tcp->th_sum = htons(TCP_CSUM);
2429 XNB_ASSERT(tcp->th_sum == htons(TCP_CSUM));