Lines Matching defs:tcp
80 tcphdr_t *tcp = NULL;
284 | tcp tcpline
316 tcp: IL_TCP { new_tcpheader(); }
1006 tcp = (tcphdr_t *)new_header(IPPROTO_TCP);
1007 tcp->th_win = htons(4096);
1008 tcp->th_off = sizeof(*tcp) >> 2;
1022 port = &tcp->th_sport;
1042 port = &tcp->th_dport;
1055 tcp->th_seq = htonl(strtol(*arg, NULL, 0));
1064 tcp->th_ack = htonl(strtol(*arg, NULL, 0));
1076 inc_anipheaders((off - tcp->th_off) << 2);
1077 tcp->th_off = off;
1086 tcp->th_urp = htons(strtol(*arg, NULL, 0));
1095 tcp->th_win = htons(strtol(*arg, NULL, 0));
1104 tcp->th_sum = strtol(*arg, NULL, 0);
1124 tcp->th_flags = strtol(*arg, NULL, 0);
1127 tcp->th_flags |= flagv[t - flags];
1145 s = (u_char *)tcp + sizeof(*tcp) + canip->ah_optlen;
1184 * build tcp option
1216 char *s = (char *)tcp;
1218 s += sizeof(*tcp) + canip->ah_optlen;
1240 tcp->th_off = (sizeof(*tcp) + canip->ah_optlen) >> 2;
1805 tcp->th_sum = 0;
1806 tcp->th_sum = c_chksum((u_short *)tcp, (u_int)ntohs(iptmp.ip_len), sum);
1808 for (aip = aniphead, tcp = NULL; aip; aip = aip->ah_next)
1810 tcp = aip->ah_tcp;