Home
last modified time | relevance | path

Searched refs:th_flags (Results 1 – 25 of 45) sorted by relevance

12

/netbsd-src/external/bsd/ipf/dist/lib/
H A Dprintpacket.c88 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) {
90 if (tcp->th_flags & TH_FIN)
92 if (tcp->th_flags & TH_SYN)
94 if (tcp->th_flags & TH_RST)
96 if (tcp->th_flags & TH_PUSH)
98 if (tcp->th_flags & TH_ACK)
100 if (tcp->th_flags & TH_URG)
102 if (tcp->th_flags & TH_ECN)
104 if (tcp->th_flags & TH_CWR)
H A Dipft_tx.c278 tcp->th_flags = 0;
281 tcp->th_flags |= myflags[t-myflagset];
282 if (tcp->th_flags)
286 if (tcp->th_flags & TH_URG)
452 tcp->th_flags = 0;
455 tcp->th_flags |= myflags[t-myflagset];
456 if (tcp->th_flags)
460 if (tcp->th_flags & TH_URG)
/netbsd-src/external/bsd/ipf/dist/ipsend/
H A Dipsend.c403 tcp->th_flags |= TH_SYN;
406 tcp->th_flags |= TH_ACK;
409 tcp->th_flags |= TH_FIN;
412 tcp->th_flags |= TH_RST;
415 tcp->th_flags |= TH_PUSH;
418 tcp->th_flags |= TH_URG;
428 if (ip->ip_p == IPPROTO_TCP && tcp->th_flags)
429 printf("Flags: %#x\n", tcp->th_flags);
H A Diptests.c982 t->th_flags = i;
992 t->th_flags = TH_SYN;
1035 t->th_flags = TH_ACK;
1078 t->th_flags = TH_SYN;
1148 t->th_flags = TH_ACK|TH_URG;
1167 t->th_flags &= ~TH_URG;
1175 t->th_flags = TH_ACK;
1197 t->th_flags = TH_SYN;
1235 t->th_flags = TH_SYN;
1277 t->th_flags = TH_SYN;
H A Dresend.c64 if (t->th_flags & i)
/netbsd-src/usr.sbin/npf/npftest/
H A Dnpfstream.c60 if (th->th_flags & TH_SYN) { in process_tcpip()
63 if (th->th_flags & TH_FIN) { in process_tcpip()
82 forw ? ">" : "<", (th->th_flags & (TH_SYN | TH_ACK | TH_FIN)), in process_tcpip()
/netbsd-src/sys/net/
H A Dslcompress.c196 if ((th->th_flags & (TH_SYN|TH_FIN|TH_RST|TH_ACK)) != TH_ACK) in sl_compress_tcp()
293 if (th->th_flags & TH_URG) { in sl_compress_tcp()
374 if (th->th_flags & TH_PUSH) in sl_compress_tcp()
550 th->th_flags |= TH_PUSH; in sl_uncompress_tcp_core()
552 th->th_flags &=~ TH_PUSH; in sl_uncompress_tcp_core()
570 th->th_flags |= TH_URG; in sl_uncompress_tcp_core()
573 th->th_flags &=~ TH_URG; in sl_uncompress_tcp_core()
/netbsd-src/sys/kern/
H A Duipc_mbufdebug.c818 if (tcp.th_flags) { in m_examine_tcp()
819 (*pr)("TCP: Flags 0x%02x : ", tcp.th_flags); in m_examine_tcp()
820 if (tcp.th_flags & TH_FIN) in m_examine_tcp()
822 if (tcp.th_flags & TH_SYN) in m_examine_tcp()
824 if (tcp.th_flags & TH_RST) in m_examine_tcp()
826 if (tcp.th_flags & TH_PUSH) in m_examine_tcp()
828 if (tcp.th_flags & TH_URG) in m_examine_tcp()
830 if (tcp.th_flags & TH_ECE) in m_examine_tcp()
832 if (tcp.th_flags & TH_CWR) in m_examine_tcp()
/netbsd-src/sys/net/npf/
H A Dnpf_sendpkt.c109 if (oth->th_flags & TH_RST) { in npf_return_tcp()
171 if (oth->th_flags & TH_SYN) { in npf_return_tcp()
176 th->th_flags = TH_ACK | TH_RST; in npf_return_tcp()
H A Dnpf_state_tcp.c296 const int tcpfl = th->th_flags; in npf_tcp_inwindow()
461 const unsigned tcpfl = th->th_flags, state = nst->nst_state; in npf_state_tcp()
H A Dnpf_ext_normalize.c170 (th->th_flags & TH_SYN) == 0) { in npf_normalize()
/netbsd-src/sys/netinet/
H A Dtcp_debug.c187 flags = th->th_flags; in tcp_trace()
191 #define pf(f) { if (th->th_flags&__CONCAT(TH_,f)) { \ in tcp_trace()
H A Dtcp_input.c294 (tcp_ack_on_push && th->th_flags & TH_PUSH)) in tcp_setup_ack()
489 pkt_flags = th->th_flags; in tcp_reass()
996 tiflags = th->th_flags; in tcp_vtw_input()
1359 (th->th_flags & TH_SYN) == 0) { in tcp_input()
1366 tiflags = th->th_flags; in tcp_input()
2769 tiflags = th->th_flags & TH_FIN; in tcp_input()
3118 if (!(th->th_flags & TH_SYN)) in tcp_dooptions()
3129 if (!(th->th_flags & TH_SYN)) in tcp_dooptions()
3175 if (!(th->th_flags & TH_SYN)) in tcp_dooptions()
3191 if (!(th->th_flags in tcp_dooptions()
[all...]
H A Dtcp.h63 uint8_t th_flags; member
H A Dtcp_syncache.c1039 if ((th->th_flags & (TH_ECE|TH_CWR)) && tcp_do_ecn) in syn_cache_add()
1167 th->th_flags = TH_SYN|TH_ACK; in syn_cache_respond()
1264 th->th_flags |= TH_ECE; in syn_cache_respond()
/netbsd-src/external/bsd/flex/dist/src/
H A Dtables_shared.h111 flex_uint16_t th_flags; /**< Currently unused, must be 0 */ member
H A Dtables.c95 th->th_flags = 0; in yytbl_hdr_init()
160 || yytbl_write16 (wr, th->th_flags) < 0) in yytbl_hdr_fwrite()
/netbsd-src/external/bsd/ipf/bin/ipsend/
H A Dtcpip.h81 #define ti_flags ti_t.th_flags
/netbsd-src/sys/dist/pf/net/
H A Dpf_norm.c1328 flags = th->th_flags;
1353 if (flags != th->th_flags || th->th_x2 != 0) {
1357 th->th_flags = flags;
1427 if ((th->th_flags & TH_SYN) == 0)
1758 pf_print_flags(th->th_flags);
1767 } else if (!got_ts && (th->th_flags & TH_RST) == 0 &&
1769 || pd->p_len > 0 || (th->th_flags & TH_SYN)) &&
1808 pf_print_flags(th->th_flags);
1838 pf_print_flags(th->th_flags);
H A Dpf.c1778 th->th_flags = flags;
3297 (r->flagset & th->th_flags) != r->flags)
3440 !(th->th_flags & TH_RST)) {
3453 if (th->th_flags & TH_SYN)
3455 if (th->th_flags & TH_FIN)
3543 if ((th->th_flags & (TH_SYN|TH_ACK)) ==
3554 if (th->th_flags & TH_SYN) {
3567 if (th->th_flags & TH_FIN)
3700 (th->th_flags & (TH_SYN|TH_ACK)) == TH_SYN &&
3858 if (th->th_flags & TH_SYN) {
[all …]
/netbsd-src/usr.sbin/trpt/
H A Dtrpt.c476 flags = th->th_flags; in tcp_trace()
480 if (th->th_flags&flag) { \ in tcp_trace()
/netbsd-src/external/bsd/ipf/dist/ipsd/Celler/
H A Dip_compat.h146 __u8 th_flags; member
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_ftp_pxy.c550 tcp2->th_flags = TH_SYN; in ipf_p_ftp_addport()
881 tcp2->th_flags = TH_SYN; in ipf_p_ftp_pasvreply()
1257 mlen, tcp->th_flags); in ipf_p_ftp_process()
1259 if ((mlen == 0) && ((tcp->th_flags & TH_OPENING) == TH_OPENING)) { in ipf_p_ftp_process()
1300 rv ? "IN" : "OUT", tcp->th_flags, thseq, seqoff, in ipf_p_ftp_process()
1374 if (tcp->th_flags & TH_FIN) { in ipf_p_ftp_process()
1545 if (tcp->th_flags & TH_FIN) in ipf_p_ftp_process()
H A Dip_fil_netbsd.c744 if (tcp->th_flags & TH_RST) in ipf_send_reset()
751 ((tcp->th_flags & TH_SYN) ? 1 : 0) + in ipf_send_reset()
752 ((tcp->th_flags & TH_FIN) ? 1 : 0); in ipf_send_reset()
790 if (tcp->th_flags & TH_ACK) { in ipf_send_reset()
792 tcp2->th_flags = TH_RST; in ipf_send_reset()
799 tcp2->th_flags = TH_RST|TH_ACK; in ipf_send_reset()
/netbsd-src/usr.sbin/npf/npftest/libnpftest/
H A Dnpf_state_test.c128 th->th_flags = p->tcpfl; in construct_packet()

12