summaryrefslogtreecommitdiffstats
path: root/sys/netpfil/ipfw/ip_fw_private.h
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2012-12-23 16:28:18 +0000
committermelifaro <melifaro@FreeBSD.org>2012-12-23 16:28:18 +0000
commit911df5a3324405f742e5c9eebd47c0f0bd606d09 (patch)
tree78b5126d080401531fc1669b823c5ad39ae2faa5 /sys/netpfil/ipfw/ip_fw_private.h
parent97587080eadabbd5fde12c70cd32748fe67d4f19 (diff)
downloadFreeBSD-src-911df5a3324405f742e5c9eebd47c0f0bd606d09.zip
FreeBSD-src-911df5a3324405f742e5c9eebd47c0f0bd606d09.tar.gz
Use unified IP_FW_ARG_TABLEARG() macro for most tablearg checks.
Log real value instead of IP_FW_TABLEARG (65535) in ipfw_log(). Noticed by: Vitaliy Tokarenko <rphone@ukr.net> MFC after: 2 weeks
Diffstat (limited to 'sys/netpfil/ipfw/ip_fw_private.h')
-rw-r--r--sys/netpfil/ipfw/ip_fw_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_private.h b/sys/netpfil/ipfw/ip_fw_private.h
index 0ea0b35..44a7720 100644
--- a/sys/netpfil/ipfw/ip_fw_private.h
+++ b/sys/netpfil/ipfw/ip_fw_private.h
@@ -258,6 +258,8 @@ struct sockopt; /* used by tcp_var.h */
(_cntr)->pcnt = 0; \
(_cntr)->bcnt = 0; \
} while (0)
+
+#define IP_FW_ARG_TABLEARG(a) ((a) == IP_FW_TABLEARG) ? tablearg : (a)
/*
* The lock is heavily used by ip_fw2.c (the main file) and ip_fw_nat.c
* so the variable and the macros must be here.
OpenPOWER on IntegriCloud