diff options
Diffstat (limited to 'sys/net/if_pppx.c')
-rw-r--r-- | sys/net/if_pppx.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c index 92f9b775e85..1bb9e45dc2f 100644 --- a/sys/net/if_pppx.c +++ b/sys/net/if_pppx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppx.c,v 1.60 2017/05/28 18:43:51 yasuoka Exp $ */ +/* $OpenBSD: if_pppx.c,v 1.61 2017/05/30 07:50:37 mpi Exp $ */ /* * Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org> @@ -318,7 +318,6 @@ pppxwrite(dev_t dev, struct uio *uio, int ioflag) struct pppx_if *pxi; uint32_t proto; struct mbuf *top, **mp, *m; - struct niqueue *ifq; int tlen; int error = 0; size_t mlen; @@ -396,11 +395,11 @@ pppxwrite(dev_t dev, struct uio *uio, int ioflag) switch (proto) { case AF_INET: - ifq = &ipintrq; + ipv4_input(&pxi->pxi_if, top); break; #ifdef INET6 case AF_INET6: - ifq = &ip6intrq; + ipv6_input(&pxi->pxi_if, top); break; #endif default: @@ -408,9 +407,6 @@ pppxwrite(dev_t dev, struct uio *uio, int ioflag) return (EAFNOSUPPORT); } - if (niq_enqueue(ifq, top) != 0) - return (ENOBUFS); - return (error); } |