artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64d55eb
)
if_enqueue: call pf_delay_pkt() if m_pkthdr.pf.delay is set
author
henning
<henning@openbsd.org>
Tue, 10 Jul 2018 09:30:13 +0000
(09:30 +0000)
committer
henning
<henning@openbsd.org>
Tue, 10 Jul 2018 09:30:13 +0000
(09:30 +0000)
ok benno sashan
sys/net/if.c
patch
|
blob
|
history
diff --git
a/sys/net/if.c
b/sys/net/if.c
index
0d239d3
..
ecff8ab
100644
(file)
--- a/
sys/net/if.c
+++ b/
sys/net/if.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if.c,v 1.55
6 2018/06/21 07:40:43 mpi Exp $
*/
+/* $OpenBSD: if.c,v 1.55
7 2018/07/10 09:30:13 henning Exp $
*/
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@
-685,6
+685,11
@@
if_enqueue(struct ifnet *ifp, struct mbuf *m)
struct ifqueue *ifq;
int error;
+#if NPF > 0
+ if (m->m_pkthdr.pf.delay > 0)
+ return (pf_delay_pkt(m, ifp->if_index));
+#endif
+
#if NBRIDGE > 0
if (ifp->if_bridgeport && (m->m_flags & M_PROTO1) == 0) {
KERNEL_LOCK();