Lines Matching refs:tcp
276 #include <netinet/tcp.h>
1072 struct tcphdr *tcp;
1165 tcp = (struct tcphdr *)outpacket;
1167 tcp->th_sport = htons(ident);
1168 tcp->th_dport = htons(port + seq);
1169 tcp->th_seq = (tcp->th_sport << 16) | tcp->th_dport;
1170 tcp->th_ack = 0;
1171 tcp->th_off = 5;
1172 tcp->th_flags = TH_SYN;
1173 tcp->th_sum = 0;
1174 tcp->th_sum = tcp_chksum(&Src, &Dst, outpacket, datalen);
1357 struct tcphdr *tcp;
1409 tcp = (struct tcphdr *)up;
1410 if (tcp->th_sport == htons(ident) &&
1411 tcp->th_dport == htons(port + seq) &&
1412 tcp->th_seq ==
1413 (tcp_seq)((tcp->th_sport << 16) | tcp->th_dport))