Lines Matching defs:tcp
76 #include <netinet/tcp.h>
673 /* tcp(I) - pointer to TCP/UDP header */
682 ipf_proxy_ok(fr_info_t *fin, tcphdr_t *tcp, ipnat_t *np)
690 if ((tcp == NULL) && dport)
900 tcphdr_t *tcp = NULL;
955 tcp = (tcphdr_t *)fin->fin_dp;
1022 if (tcp != NULL) {
1025 u_short sum = ntohs(tcp->th_sum);
1027 tcp->th_sum = htons(sum);
1029 tcp->th_sum = fr_cksum(fin, ip,
1030 IPPROTO_TCP, tcp);
1152 tcphdr_t *tcp;
1155 tcp = (tcphdr_t *)fin->fin_dp;
1161 nlen -= (TCP_OFF(tcp) << 2);
1167 seq1 = (u_32_t)ntohl(tcp->th_seq);
1185 tcp->th_seq = htonl(seq1);
1201 seq1 = ntohl(tcp->th_ack);
1216 tcp->th_ack = htonl(seq1 - seq2);
1220 seq1 = ntohl(tcp->th_seq);
1237 tcp->th_seq = htonl(seq1);
1254 seq1 = ntohl(tcp->th_ack);
1273 tcp->th_ack = htonl(seq1 - seq2);
1281 (u_32_t)ntohl(tcp->th_seq), (u_32_t)ntohl(tcp->th_ack));