Fixed the printing of TCP flags.

This commit is contained in:
ru 2000-10-03 10:37:03 +00:00
parent 047ac5679f
commit 948e4e6d8c

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;}