svn commit: r300307 - head/sys/netpfil/pf

Kristof Provost kp at FreeBSD.org
Fri May 20 15:41:06 UTC 2016


Author: kp
Date: Fri May 20 15:41:05 2016
New Revision: 300307
URL: https://svnweb.freebsd.org/changeset/base/300307

Log:
  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 at als.nnov.ru>
  MFC after:	4 days

Modified:
  head/sys/netpfil/pf/pf_norm.c

Modified: head/sys/netpfil/pf/pf_norm.c
==============================================================================
--- head/sys/netpfil/pf/pf_norm.c	Fri May 20 15:34:03 2016	(r300306)
+++ head/sys/netpfil/pf/pf_norm.c	Fri May 20 15:41:05 2016	(r300307)
@@ -374,7 +374,7 @@ pf_fillup_fragment(struct pf_fragment_cm
 		}
 
 		*(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);
 


More information about the svn-src-all mailing list