diff options
author | 2020-12-12 00:39:07 +0000 | |
---|---|---|
committer | 2020-12-12 00:39:07 +0000 | |
commit | 7f49dde6570cc000b4bccba249f2ed234aece822 (patch) | |
tree | 1472bd136974acb2cf67f4af2e0b8ecae9787283 /sys | |
parent | get bpf_mtap_ether to call _bpf_mtap directly instead of via bpf_mtap. (diff) | |
download | wireguard-openbsd-7f49dde6570cc000b4bccba249f2ed234aece822.tar.xz wireguard-openbsd-7f49dde6570cc000b4bccba249f2ed234aece822.zip |
call if_enqueue() to send a packet, not a member ports (*ifp->if_enqueue)
the latter is too clever, and nothing else does it.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tpmr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tpmr.c b/sys/net/if_tpmr.c index e88f56ff113..0ca44047939 100644 --- a/sys/net/if_tpmr.c +++ b/sys/net/if_tpmr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tpmr.c,v 1.20 2020/08/21 22:59:27 kn Exp $ */ +/* $OpenBSD: if_tpmr.c,v 1.21 2020/12/12 00:39:07 dlg Exp $ */ /* * Copyright (c) 2019 The University of Queensland @@ -362,7 +362,7 @@ tpmr_input(struct ifnet *ifp0, struct mbuf *m, void *brport) ; else #endif - if ((*ifpn->if_enqueue)(ifpn, m)) + if (if_enqueue(ifpn, m)) counters_inc(ifp->if_counters, ifc_oerrors); else { counters_pkt(ifp->if_counters, |