diff options
author | Luiz Souza <luiz@netgate.com> | 2017-07-22 23:44:29 -0500 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-07-22 23:49:29 -0500 |
commit | e2d6352516b06dbdac51f70dbf7bb37f0e7c1855 (patch) | |
tree | c5745cebef1af90b371b9e18696c0a96539cc08d | |
parent | fa8bbef00ec64fae911568feb947fa681648b346 (diff) | |
download | FreeBSD-src-e2d6352516b06dbdac51f70dbf7bb37f0e7c1855.zip FreeBSD-src-e2d6352516b06dbdac51f70dbf7bb37f0e7c1855.tar.gz |
Fix the match timestamp when the table lookup command is used.
Reported by: garga
(cherry picked from commit 4fbc95c7ac1751266543e1c17e547fc8daec2981)
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_table.c | 2 |
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); |