Catch up with other networking changes (John D. Baker)

This commit is contained in:
christos 2016-05-08 03:11:33 +00:00
parent 6b2e8a5337
commit 52e1f28ccd

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_plip.c,v 1.26 2016/04/20 09:01:03 knakahara Exp $ */
/* $NetBSD: if_plip.c,v 1.27 2016/05/08 03:11:33 christos Exp $ */
/*-
* Copyright (c) 1997 Poul-Henning Kamp
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_plip.c,v 1.26 2016/04/20 09:01:03 knakahara Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_plip.c,v 1.27 2016/05/08 03:11:33 christos Exp $");
/*
* Parallel port TCP/IP interfaces added. I looked at the driver from
@ -194,7 +194,7 @@ static void lpinittables(void);
static void lpfreetables(void);
static int lpioctl(struct ifnet *, u_long, void *);
static int lpoutput(struct ifnet *, struct mbuf *, const struct sockaddr *,
struct rtentry *);
const struct rtentry *);
static void lpstart(struct ifnet *);
static void lp_intr(void *);
@ -699,7 +699,7 @@ lpoutbyte(u_char byte, int spin, device_t ppbus)
/* Queue a packet for delivery */
static int
lpoutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
struct rtentry *rt)
const struct rtentry *rt)
{
struct lp_softc * sc = ifp->if_softc;
device_t dev = sc->ppbus_dev.sc_dev;
@ -731,7 +731,7 @@ lpoutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
}
IFQ_CLASSIFY(&ifp->if_snd, m, dst->sa_family);
IFQ_ENQUEUE(&ifp->if_snd, m, NULL, err);
IFQ_ENQUEUE(&ifp->if_snd, m, err);
if(err == 0) {
if((ifp->if_flags & IFF_OACTIVE) == 0)
lpstart(ifp);