diff options
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r-- | sys/net/if_ethersubr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 6da30d24..073eafb 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -337,6 +337,7 @@ int ether_output_frame(struct ifnet *ifp, struct mbuf *m) { struct ip_fw *rule = ip_dn_claim_rule(m); + int error; if (rule == NULL && BDG_ACTIVE(ifp)) { /* @@ -364,7 +365,8 @@ ether_output_frame(struct ifnet *ifp, struct mbuf *m) * Queue message on interface, update output statistics if * successful, and start output if interface not yet active. */ - return (IF_HANDOFF(&ifp->if_snd, m, ifp) ? 0 : ENOBUFS); + IFQ_HANDOFF(ifp, m, error); + return (error); } /* |