From 99dcbd9716535f12b6e622cee07d0e68306e53fc Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 20 Nov 2024 18:45:44 -0500 Subject: [PATCH] freebsd_network: Use if_transmit in ether_output. This is what FreeBSD does. The default implementation (in this same file) does what ether_output did before, but the FreeBSD net80211 stack overrides the method. --- src/libs/compat/freebsd_network/if.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libs/compat/freebsd_network/if.c b/src/libs/compat/freebsd_network/if.c index 6c258fe3c1..e4b340b0c7 100644 --- a/src/libs/compat/freebsd_network/if.c +++ b/src/libs/compat/freebsd_network/if.c @@ -775,9 +775,7 @@ int ether_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, struct route *ro) { - int error = 0; - IFQ_HANDOFF(ifp, m, error); - return error; + return ifp->if_transmit(ifp, m); }