Lines Matching refs:tcp
168 tcphdr_t th, *tcp = &th; local
175 bzero((char *)ip, MAX(sizeof(*tcp), sizeof(*ic)) + sizeof(*ip));
176 bzero((char *)tcp, sizeof(*tcp));
250 tcp->th_sport = htons(tx_portnum(last));
252 tcp->th_win = htons(4096);
253 TCP_OFF_A(tcp, sizeof(*tcp) >> 2);
270 tcp->th_dport = htons(tx_portnum(last));
278 tcp->th_flags = 0;
281 tcp->th_flags |= myflags[t-myflagset];
282 if (tcp->th_flags)
286 if (tcp->th_flags & TH_URG)
287 tcp->th_urp = htons(1);
290 tcp->th_seq = htonl(atoi(*cpp + 4));
295 tcp->th_ack = htonl(atoi(*cpp + 4));
329 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2),
330 sizeof(*tcp));
346 tcphdr_t th, *tcp = &th; local
349 bzero((char *)ip6, MAX(sizeof(*tcp), sizeof(*ic6)) + sizeof(*ip6));
350 bzero((char *)tcp, sizeof(*tcp));
413 tcp->th_sport = htons(tx_portnum(last));
415 tcp->th_win = htons(4096);
416 TCP_OFF_A(tcp, sizeof(*tcp) >> 2);
438 tcp->th_dport = htons(tx_portnum(last));
452 tcp->th_flags = 0;
455 tcp->th_flags |= myflags[t-myflagset];
456 if (tcp->th_flags)
460 if (tcp->th_flags & TH_URG)
461 tcp->th_urp = htons(1);
464 tcp->th_seq = htonl(atoi(*cpp + 4));
469 tcp->th_ack = htonl(atoi(*cpp + 4));
492 bcopy((char *)tcp, (char *)ip6 + sizeof(*ip6),
493 sizeof(*tcp));