Lines Matching refs:tcp
177 tcphdr_t *tcp;
189 tcp = (tcphdr_t *)(ip + 1);
190 udp = (udphdr_t *)tcp;
297 tcp->th_dport = htons(atoi(optarg));
305 tcp->th_win = atoi(optarg);
367 tcp = (tcphdr_t *)(p + hlen);
378 tcp->th_flags |= TH_SYN;
381 tcp->th_flags |= TH_ACK;
384 tcp->th_flags |= TH_FIN;
387 tcp->th_flags |= TH_RST;
390 tcp->th_flags |= TH_PUSH;
393 tcp->th_flags |= TH_URG;
403 if (ip->ip_p == IPPROTO_TCP && tcp->th_flags)
404 printf("Flags: %#x\n", tcp->th_flags);
412 if (ip->ip_p == IPPROTO_TCP && tcp->th_dport)