Lines Matching refs:tcp

158 	tcphdr_t	th, *tcp = &th;  in parseline()  local
165 bzero((char *)ip, MAX(sizeof(*tcp), sizeof(*ic)) + sizeof(*ip)); in parseline()
166 bzero((char *)tcp, sizeof(*tcp)); in parseline()
240 tcp->th_sport = htons(tx_portnum(last)); in parseline()
242 tcp->th_win = htons(4096); in parseline()
243 TCP_OFF_A(tcp, sizeof(*tcp) >> 2); in parseline()
260 tcp->th_dport = htons(tx_portnum(last)); in parseline()
268 __tcp_set_flags(tcp, 0); in parseline()
271 __tcp_set_flags(tcp, __tcp_get_flags(tcp) | in parseline()
273 if (__tcp_get_flags(tcp)) in parseline()
277 if (__tcp_get_flags(tcp) & TH_URG) in parseline()
278 tcp->th_urp = htons(1); in parseline()
281 tcp->th_seq = htonl(atoi(*cpp + 4)); in parseline()
286 tcp->th_ack = htonl(atoi(*cpp + 4)); in parseline()
320 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2), in parseline()
321 sizeof(*tcp)); in parseline()
334 tcphdr_t th, *tcp = &th; in parseipv6() local
337 bzero((char *)ip6, MAX(sizeof(*tcp), sizeof(*ic6)) + sizeof(*ip6)); in parseipv6()
338 bzero((char *)tcp, sizeof(*tcp)); in parseipv6()
401 tcp->th_sport = htons(tx_portnum(last)); in parseipv6()
403 tcp->th_win = htons(4096); in parseipv6()
404 TCP_OFF_A(tcp, sizeof(*tcp) >> 2); in parseipv6()
426 tcp->th_dport = htons(tx_portnum(last)); in parseipv6()
440 __tcp_set_flags(tcp, 0); in parseipv6()
443 __tcp_set_flags(tcp, __tcp_get_flags(tcp) | in parseipv6()
445 if (__tcp_get_flags(tcp)) in parseipv6()
449 if (__tcp_get_flags(tcp) & TH_URG) in parseipv6()
450 tcp->th_urp = htons(1); in parseipv6()
453 tcp->th_seq = htonl(atoi(*cpp + 4)); in parseipv6()
458 tcp->th_ack = htonl(atoi(*cpp + 4)); in parseipv6()
481 bcopy((char *)tcp, (char *)ip6 + sizeof(*ip6), in parseipv6()
482 sizeof(*tcp)); in parseipv6()