Lines Matching defs:tcp
19 struct tcphdr *tcp;
52 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
59 printf(",%d", ntohs(tcp->th_sport));
64 printf(",%d", ntohs(tcp->th_dport));
65 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) {
67 if (tcp->th_flags & TH_FIN)
69 if (tcp->th_flags & TH_SYN)
71 if (tcp->th_flags & TH_RST)
73 if (tcp->th_flags & TH_PUSH)
75 if (tcp->th_flags & TH_ACK)
77 if (tcp->th_flags & TH_URG)
79 if (tcp->th_flags & TH_ECN)
81 if (tcp->th_flags & TH_CWR)