Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

update ppbus/if_plip.c for recent network changes



The patch below lets "src/sys/dev/ppbus/if_plip.c" compile following the
recent changes to network interface support:

+Index: sys/dev/ppbus/if_plip.c
+===================================================================
+RCS file: /cvsroot/src/sys/dev/ppbus/if_plip.c,v
+retrieving revision 1.26
+diff -u -p -r1.26 if_plip.c
+--- sys/dev/ppbus/if_plip.c	20 Apr 2016 09:01:03 -0000	1.26
++++ sys/dev/ppbus/if_plip.c	7 May 2016 23:23:16 -0000
+@@ -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_
+ /* 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 
+ 	}
+ 
+ 	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);

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index