summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorkp <kp@FreeBSD.org>2016-05-20 15:41:05 +0000
committerkp <kp@FreeBSD.org>2016-05-20 15:41:05 +0000
commite52f10d75532dd9da8b35227845a7b9cef344d60 (patch)
tree19714df41f42abaa3bde1f72bb0402b2630389b5 /sys/netpfil
parent6d6b43dcaf300e3c564a23bbdd15c4fc511c0ed8 (diff)
downloadFreeBSD-src-e52f10d75532dd9da8b35227845a7b9cef344d60.zip
FreeBSD-src-e52f10d75532dd9da8b35227845a7b9cef344d60.tar.gz
pf: Fix fragment timeout
We were inconsistent about the use of time_second vs. time_uptime. Always use time_uptime so the value can be meaningfully compared. Submitted by: "Max" <maximos@als.nnov.ru> MFC after: 4 days
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/pf/pf_norm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf_norm.c b/sys/netpfil/pf/pf_norm.c
index a2841a2..dbc8818 100644
--- a/sys/netpfil/pf/pf_norm.c
+++ b/sys/netpfil/pf/pf_norm.c
@@ -374,7 +374,7 @@ pf_fillup_fragment(struct pf_fragment_cmp *key, struct pf_frent *frent,
}
*(struct pf_fragment_cmp *)frag = *key;
- frag->fr_timeout = time_second;
+ frag->fr_timeout = time_uptime;
frag->fr_maxlen = frent->fe_len;
TAILQ_INIT(&frag->fr_queue);
OpenPOWER on IntegriCloud