summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2017-07-22 23:44:29 -0500
committerLuiz Souza <luiz@netgate.com>2017-07-22 23:44:29 -0500
commit4fbc95c7ac1751266543e1c17e547fc8daec2981 (patch)
tree0a534ffeb1368526e82446c4a45a740bc3eb5d47
parentcc274278302a81add472ccf3344e8ec09a44f737 (diff)
downloadFreeBSD-src-4fbc95c7ac1751266543e1c17e547fc8daec2981.zip
FreeBSD-src-4fbc95c7ac1751266543e1c17e547fc8daec2981.tar.gz
Fix the match timestamp when the table lookup command is used.
Reported by: garga
-rw-r--r--sys/netpfil/ipfw/ip_fw_table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_table.c b/sys/netpfil/ipfw/ip_fw_table.c
index 395dcc3..b3911fa 100644
--- a/sys/netpfil/ipfw/ip_fw_table.c
+++ b/sys/netpfil/ipfw/ip_fw_table.c
@@ -1198,6 +1198,8 @@ find_table_entry(struct ip_fw_chain *ch, ip_fw3_opheader *op3,
if (error == 0) {
pval = get_table_value(ch, tc, tent->v.kidx);
ipfw_export_table_value_v1(pval, &tent->v.value);
+ if (tent->timestamp != 0)
+ tent->timestamp += da->boottime;
}
IPFW_UH_RUNLOCK(ch);
OpenPOWER on IntegriCloud