mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 18:59:37 +00:00
Fixed the printing of TCP flags.
This commit is contained in:
parent
84ad14e4a6
commit
1b4ea5a1a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66579
@ -460,7 +460,7 @@ show_ipfw(struct ip_fw *chain, int pcwidth, int bcwidth)
|
|||||||
else if (chain->fw_tcpf == IP_FW_TCPF_SYN &&
|
else if (chain->fw_tcpf == IP_FW_TCPF_SYN &&
|
||||||
chain->fw_tcpnf == IP_FW_TCPF_ACK)
|
chain->fw_tcpnf == IP_FW_TCPF_ACK)
|
||||||
printf(" setup");
|
printf(" setup");
|
||||||
else if (chain->fw_ipflg & IP_FW_IF_TCPOPT) {
|
else if (chain->fw_ipflg & IP_FW_IF_TCPFLG) {
|
||||||
int _flg_printed = 0;
|
int _flg_printed = 0;
|
||||||
#define PRINTFLG(x) {if (_flg_printed) printf(",");\
|
#define PRINTFLG(x) {if (_flg_printed) printf(",");\
|
||||||
printf(x); _flg_printed = 1;}
|
printf(x); _flg_printed = 1;}
|
||||||
|
Loading…
Reference in New Issue
Block a user