Skip to content

Commit

Permalink
pf: Fix fragment timeout
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kprovost authored and fichtner committed Jun 23, 2016
1 parent 7c3c5a7 commit eda123c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netpfil/pf/pf_norm.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ pf_fillup_fragment(struct pf_fragment_cmp *key, struct pf_frent *frent,

*(struct pf_fragment_cmp *)frag = *key;
frag->fr_flags = 0;
frag->fr_timeout = time_second;
frag->fr_timeout = time_uptime;
frag->fr_maxlen = frent->fe_len;
TAILQ_INIT(&frag->fr_queue);

Expand Down

0 comments on commit eda123c

Please sign in to comment.