Home
last modified time | relevance | path

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

123

/freebsd-14.2/sbin/ipf/libipf/
H A Dprintpacket.c85 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) { in printpacket()
87 if (tcp->th_flags & TH_FIN) in printpacket()
89 if (tcp->th_flags & TH_SYN) in printpacket()
91 if (tcp->th_flags & TH_RST) in printpacket()
93 if (tcp->th_flags & TH_PUSH) in printpacket()
95 if (tcp->th_flags & TH_ACK) in printpacket()
97 if (tcp->th_flags & TH_URG) in printpacket()
99 if (tcp->th_flags & TH_ECN) in printpacket()
101 if (tcp->th_flags & TH_CWR) in printpacket()
H A Dipft_tx.c272 tcp->th_flags = 0; in parseline()
275 tcp->th_flags |= myflags[t-myflagset]; in parseline()
276 if (tcp->th_flags) in parseline()
280 if (tcp->th_flags & TH_URG) in parseline()
443 tcp->th_flags = 0; in parseipv6()
446 tcp->th_flags |= myflags[t-myflagset]; in parseipv6()
447 if (tcp->th_flags) in parseipv6()
451 if (tcp->th_flags & TH_URG) in parseipv6()
/freebsd-14.2/sbin/ipf/ipsend/
H A Dipsend.c372 tcp->th_flags |= TH_SYN; in main()
375 tcp->th_flags |= TH_ACK; in main()
378 tcp->th_flags |= TH_FIN; in main()
381 tcp->th_flags |= TH_RST; in main()
384 tcp->th_flags |= TH_PUSH; in main()
387 tcp->th_flags |= TH_URG; in main()
397 if (ip->ip_p == IPPROTO_TCP && tcp->th_flags) in main()
398 printf("Flags: %#x\n", tcp->th_flags); in main()
H A Diptests.c933 t->th_flags = i; in ip_test5()
943 t->th_flags = TH_SYN; in ip_test5()
986 t->th_flags = TH_ACK; in ip_test5()
1029 t->th_flags = TH_SYN; in ip_test5()
1099 t->th_flags = TH_ACK|TH_URG; in ip_test5()
1118 t->th_flags &= ~TH_URG; in ip_test5()
1126 t->th_flags = TH_ACK; in ip_test5()
1148 t->th_flags = TH_SYN; in ip_test5()
1186 t->th_flags = TH_SYN; in ip_test5()
1228 t->th_flags = TH_SYN; in ip_test5()
H A Dresend.c58 if (t->th_flags & i) in dumppacket()
/freebsd-14.2/usr.sbin/ppp/
H A Dslcompress.c184 if ((th->th_flags & (TH_SYN | TH_FIN | TH_RST | TH_ACK)) != TH_ACK) { in sl_compress_tcp()
185 log_Printf(LogDEBUG, "??? 2 th_flags = %x\n", th->th_flags); in sl_compress_tcp()
288 if (th->th_flags & TH_URG) { in sl_compress_tcp()
371 if (th->th_flags & TH_PUSH) in sl_compress_tcp()
506 th->th_flags |= TH_PUSH; in sl_uncompress_tcp()
508 th->th_flags &= ~TH_PUSH; in sl_uncompress_tcp()
527 th->th_flags |= TH_URG; in sl_uncompress_tcp()
530 th->th_flags &= ~TH_URG; in sl_uncompress_tcp()
H A Dip.c374 estab = (th->th_flags & TH_ACK); in FilterCheck()
375 syn = (th->th_flags & TH_SYN); in FilterCheck()
376 finrst = (th->th_flags & (TH_FIN|TH_RST)); in FilterCheck()
381 th->th_flags, sport, dport); in FilterCheck()
834 if (th->th_flags & mask) { in PacketCheck()
844 if ((th->th_flags & TH_SYN) && nb > 40) { in PacketCheck()
H A Dtcpmss.c118 if (!(tc->th_flags & TH_SYN)) in MSSFixup()
/freebsd-14.2/sys/net/
H A Dslcompress.c175 if ((th->th_flags & (TH_SYN|TH_FIN|TH_RST|TH_ACK)) != TH_ACK) in sl_compress_tcp()
276 if (th->th_flags & TH_URG) { in sl_compress_tcp()
356 if (th->th_flags & TH_PUSH) in sl_compress_tcp()
521 th->th_flags |= TH_PUSH; in sl_uncompress_tcp_core()
523 th->th_flags &=~ TH_PUSH; in sl_uncompress_tcp_core()
541 th->th_flags |= TH_URG; in sl_uncompress_tcp_core()
544 th->th_flags &=~ TH_URG; in sl_uncompress_tcp_core()
/freebsd-14.2/sys/netinet/libalias/
H A Dalias.c191 TcpMonitorIn(u_char th_flags, struct alias_link *lnk) in TcpMonitorIn() argument
195 if (th_flags & TH_RST) in TcpMonitorIn()
197 else if (th_flags & TH_SYN) in TcpMonitorIn()
201 if (th_flags & (TH_FIN | TH_RST)) in TcpMonitorIn()
208 TcpMonitorOut(u_char th_flags, struct alias_link *lnk) in TcpMonitorOut() argument
212 if (th_flags & TH_RST) in TcpMonitorOut()
214 else if (th_flags & TH_SYN) in TcpMonitorOut()
218 if (th_flags & (TH_FIN | TH_RST)) in TcpMonitorOut()
1056 TcpMonitorIn(tc->th_flags, lnk); in TcpAliasIn()
1145 TcpMonitorOut(tc->th_flags, lnk); in TcpAliasOut()
/freebsd-14.2/sys/compat/linuxkpi/common/include/linux/
H A Dtcp.h48 uint8_t th_flags; /* (u) */ member
/freebsd-14.2/sys/netinet/
H A Dtcpip.h55 #define ti_flags ti_t.th_flags
/freebsd-14.2/contrib/flex/src/
H A Dtables_shared.h111 flex_uint16_t th_flags; /**< Currently unused, must be 0 */ member
H A Dtables.c92 th->th_flags = 0; in yytbl_hdr_init()
157 || yytbl_write16 (wr, th->th_flags) < 0) in yytbl_hdr_fwrite()
/freebsd-14.2/contrib/tcpdump/
H A Dtcp.h46 nd_uint8_t th_flags; member
/freebsd-14.2/sys/netpfil/ipfilter/netinet/
H A Dip_fil_freebsd.c344 if (tcp->th_flags & TH_RST) in ipf_send_reset()
351 ((tcp->th_flags & TH_SYN) ? 1 : 0) + in ipf_send_reset()
352 ((tcp->th_flags & TH_FIN) ? 1 : 0); in ipf_send_reset()
386 if (tcp->th_flags & TH_ACK) { in ipf_send_reset()
388 tcp2->th_flags = TH_RST; in ipf_send_reset()
395 tcp2->th_flags = TH_RST|TH_ACK; in ipf_send_reset()
H A Dip_ftp_pxy.c546 tcp2->th_flags = TH_SYN; in ipf_p_ftp_addport()
876 tcp2->th_flags = TH_SYN; in ipf_p_ftp_pasvreply()
1243 mlen, tcp->th_flags); in ipf_p_ftp_process()
1245 if ((mlen == 0) && ((tcp->th_flags & TH_OPENING) == TH_OPENING)) { in ipf_p_ftp_process()
1286 rv ? "IN" : "OUT", tcp->th_flags, thseq, seqoff, in ipf_p_ftp_process()
1360 if (tcp->th_flags & TH_FIN) { in ipf_p_ftp_process()
1533 if (tcp->th_flags & TH_FIN) in ipf_p_ftp_process()
H A Dip_state.c1527 if (tcp->th_flags & TH_RST) { in ipf_state_add()
1560 ((tcp->th_flags & TH_SYN) ? 1 : 0) + in ipf_state_add()
1561 ((tcp->th_flags & TH_FIN) ? 1 : 0); in ipf_state_add()
1568 if ((tcp->th_flags & ~(TH_FIN|TH_ACK|TH_ECNALL)) == in ipf_state_add()
1583 if ((tcp->th_flags & TH_OPENING) == TH_SYN) in ipf_state_add()
1975 if ((tcp->th_flags & TH_OPENING) == TH_SYN) { in ipf_state_tcp()
2018 flags = tcp->th_flags & ~(TH_FIN|TH_ECNALL); in ipf_state_tcp()
2117 tcpflags = tcp->th_flags; in ipf_state_tcpinwindow()
2320 ((tcp->th_flags & TH_SYN) ? 1 : 0) + in ipf_state_clone()
2321 ((tcp->th_flags & TH_FIN) ? 1 : 0); in ipf_state_clone()
[all …]
/freebsd-14.2/sys/dev/irdma/
H A Dirdma_cm.c398 tcph->th_flags |= TH_ACK; in irdma_form_ah_cm_frame()
405 tcph->th_flags |= TH_SYN; in irdma_form_ah_cm_frame()
412 tcph->th_flags |= TH_FIN; in irdma_form_ah_cm_frame()
416 tcph->th_flags |= TH_RST; in irdma_form_ah_cm_frame()
585 tcph->th_flags |= TH_ACK; in irdma_form_uda_cm_frame()
592 tcph->th_flags |= TH_SYN; in irdma_form_uda_cm_frame()
599 tcph->th_flags |= TH_FIN; in irdma_form_uda_cm_frame()
603 tcph->th_flags |= TH_RST; in irdma_form_uda_cm_frame()
2774 if (tcph->th_flags & TH_ACK) in irdma_process_pkt()
2779 if (tcph->th_flags & TH_FIN) in irdma_process_pkt()
[all …]
/freebsd-14.2/sys/netpfil/ipfw/
H A Dip_fw2.c722 th->th_flags = TH_RST; in ipfw_send_pkt()
727 th->th_flags = TH_RST | TH_ACK; in ipfw_send_pkt()
735 th->th_flags = TH_ACK; in ipfw_send_pkt()
896 if ((tcp->th_flags & TH_RST) == 0) { in send_reject6()
900 tcp->th_flags | TH_RST); in send_reject6()
1024 if ( (tcp->th_flags & TH_RST) == 0) { in send_reject()
1028 tcp->th_flags | TH_RST); in send_reject()
1574 args->f_id._flags = TCP(ulp)->th_flags; in ipfw_chk()
1765 args->f_id._flags = TCP(ulp)->th_flags; in ipfw_chk()
2443 flags_match(cmd, TCP(ulp)->th_flags)); in ipfw_chk()
[all …]
/freebsd-14.2/sys/netpfil/pf/
H A Dpf.c3229 th->th_flags = tcp_flags; in pf_build_tcp()
5152 if (th->th_flags & TH_FIN) in pf_create_state()
5539 if (th->th_flags & TH_FIN) in pf_tcp_track_full()
5567 if (th->th_flags & TH_SYN) in pf_tcp_track_full()
5569 if (th->th_flags & TH_FIN) in pf_tcp_track_full()
5642 if (th->th_flags & TH_SYN) in pf_tcp_track_full()
5645 if (th->th_flags & TH_FIN) in pf_tcp_track_full()
5662 if (th->th_flags & TH_RST) in pf_tcp_track_full()
5814 if (th->th_flags & TH_SYN) in pf_tcp_track_sloppy()
5817 if (th->th_flags & TH_FIN) in pf_tcp_track_sloppy()
[all …]
H A Dpf_norm.c1437 flags = th->th_flags; in pf_normalize_tcp()
1462 if (flags != th->th_flags || th->th_x2 != 0) { in pf_normalize_tcp()
1466 th->th_flags = flags; in pf_normalize_tcp()
1531 if ((th->th_flags & TH_SYN) == 0) in pf_normalize_tcp_init()
1882 pf_print_flags(th->th_flags); in pf_normalize_tcp_stateful()
1891 } else if (!got_ts && (th->th_flags & TH_RST) == 0 && in pf_normalize_tcp_stateful()
1893 || pd->p_len > 0 || (th->th_flags & TH_SYN)) && in pf_normalize_tcp_stateful()
1932 pf_print_flags(th->th_flags); in pf_normalize_tcp_stateful()
1961 pf_print_flags(th->th_flags); in pf_normalize_tcp_stateful()
/freebsd-14.2/sys/dev/sfxge/
H A Dsfxge_tx.c862 KASSERT(!(th->th_flags & (TH_URG | TH_SYN)), in sfxge_parse_tx_packet()
864 th->th_flags & (TH_URG | TH_SYN))); in sfxge_parse_tx_packet()
865 TSO_MBUF_FLAGS(mbuf) = th->th_flags; in sfxge_parse_tx_packet()
1120 KASSERT(!(th->th_flags & (TH_URG | TH_SYN)), in tso_start()
1122 th->th_flags & (TH_URG | TH_SYN))); in tso_start()
1123 tso->tcp_flags = th->th_flags; in tso_start()
1322 tsoh_th->th_flags &= ~(TH_FIN | TH_PUSH); in tso_start_new_packet()
H A Dsfxge_rx.c486 c_th->th_flags |= (th->th_flags & TH_PUSH); in sfxge_lro_merge()
548 | (th->th_flags & (TH_URG | TH_SYN | TH_RST | TH_FIN))); in sfxge_lro_try_merge()
595 if (th->th_flags & (TH_FIN | TH_RST)) { in sfxge_lro_try_merge()
/freebsd-14.2/cddl/lib/libdtrace/
H A Dtcp.d267 tcp_flags = p == NULL ? 0 : p->th_flags;
286 tcp_flags = p == NULL ? 0 : p->th_flags;

123