Fixed the printing of TCP flags.

This commit is contained in:
Ruslan Ermilov 2000-10-03 10:37:03 +00:00
parent 84ad14e4a6
commit 1b4ea5a1a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66579

View File

@ -460,7 +460,7 @@ show_ipfw(struct ip_fw *chain, int pcwidth, int bcwidth)
else if (chain->fw_tcpf == IP_FW_TCPF_SYN &&
chain->fw_tcpnf == IP_FW_TCPF_ACK)
printf(" setup");
else if (chain->fw_ipflg & IP_FW_IF_TCPOPT) {
else if (chain->fw_ipflg & IP_FW_IF_TCPFLG) {
int _flg_printed = 0;
#define PRINTFLG(x) {if (_flg_printed) printf(",");\
printf(x); _flg_printed = 1;}