summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2019-11-17 08:25:06 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2019-11-17 08:25:06 +0000
commita72e12a5ecc139bf4230cd2ddb91fb443c278a77 (patch)
tree89f77670257c2ee1890b31e41888fe61d4a13a7b /sys/net/pf.c
parent5d030b2519dd0c8358b8dd0c44765a4d04a4d241 (diff)
"set delay" never worked as committed: the delay field was not copied
in and the pf_pktdelay struct ws not declared and initialzed properly. ok rob@ kn@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 5865554108a..ebe339921fa 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.1090 2019/10/17 11:23:49 millert Exp $ */
+/* $OpenBSD: pf.c,v 1.1091 2019/11/17 08:25:05 otto Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -7577,8 +7577,8 @@ pf_delay_pkt(struct mbuf *m, u_int ifidx)
}
pdy->ifidx = ifidx;
pdy->m = m;
- timeout_set(pdy->to, pf_pktenqueue_delayed, pdy);
- timeout_add_msec(pdy->to, m->m_pkthdr.pf.delay);
+ timeout_set(&pdy->to, pf_pktenqueue_delayed, pdy);
+ timeout_add_msec(&pdy->to, m->m_pkthdr.pf.delay);
m->m_pkthdr.pf.delay = 0;
return (0);
}