Remove custom definitions (IP_FW_TCPF_SYN etc.) of TCP header flags
which are the same as the original ones (TH_SYN etc.)
This commit is contained in:
parent
ed81aa8668
commit
2f8707ca5d
@ -272,8 +272,7 @@ tcpflg_match(struct tcphdr *tcp, struct ip_fw *f)
|
||||
* other flag requirements.
|
||||
*/
|
||||
if ((f->fw_ipflg & IP_FW_IF_TCPEST) &&
|
||||
((tcp->th_flags & (IP_FW_TCPF_RST | IP_FW_TCPF_ACK |
|
||||
IP_FW_TCPF_SYN)) == IP_FW_TCPF_SYN))
|
||||
((tcp->th_flags & (TH_RST | TH_ACK | TH_SYN)) == TH_SYN))
|
||||
return 0;
|
||||
|
||||
flg_set = tcp->th_flags & f->fw_tcpf;
|
||||
|
@ -309,16 +309,6 @@ struct ipfw_dyn_rule {
|
||||
#define IP_FW_TCPOPT_TS 0x08
|
||||
#define IP_FW_TCPOPT_CC 0x10
|
||||
|
||||
/*
|
||||
* Definitions for TCP flags.
|
||||
*/
|
||||
#define IP_FW_TCPF_FIN TH_FIN
|
||||
#define IP_FW_TCPF_SYN TH_SYN
|
||||
#define IP_FW_TCPF_RST TH_RST
|
||||
#define IP_FW_TCPF_PSH TH_PUSH
|
||||
#define IP_FW_TCPF_ACK TH_ACK
|
||||
#define IP_FW_TCPF_URG TH_URG
|
||||
|
||||
/*
|
||||
* Main firewall chains definitions and global var's definitions.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user