if_plip.c (165632) | if_plip.c (165640) |
---|---|
1/*- 2 * Copyright (c) 1997 Poul-Henning Kamp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997 Poul-Henning Kamp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/ppbus/if_plip.c 165632 2006-12-29 13:59:50Z jhb $"); | 30__FBSDID("$FreeBSD: head/sys/dev/ppbus/if_plip.c 165640 2006-12-29 16:38:22Z jhb $"); |
31 32/* 33 * Parallel port TCP/IP interfaces added. I looked at the driver from 34 * MACH but this is a complete rewrite, and btw. incompatible, and it 35 * should perform better too. I have never run the MACH driver though. 36 * 37 * This driver sends two bytes (0x08, 0x00) in front of each packet, 38 * to allow us to distinguish another format later. --- 411 unchanged lines hidden (view full) --- 450 451 return (ctrecvl[cl] | ctrecvh[c]); 452} 453 454static void 455lptap(struct ifnet *ifp, struct mbuf *m) 456{ 457 u_int32_t af = AF_INET; | 31 32/* 33 * Parallel port TCP/IP interfaces added. I looked at the driver from 34 * MACH but this is a complete rewrite, and btw. incompatible, and it 35 * should perform better too. I have never run the MACH driver though. 36 * 37 * This driver sends two bytes (0x08, 0x00) in front of each packet, 38 * to allow us to distinguish another format later. --- 411 unchanged lines hidden (view full) --- 450 451 return (ctrecvl[cl] | ctrecvh[c]); 452} 453 454static void 455lptap(struct ifnet *ifp, struct mbuf *m) 456{ 457 u_int32_t af = AF_INET; |
458 bpf_mtap2(ifp, &af, sizeof(af), m); | 458 bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m); |
459} 460 461static void 462lp_intr (void *arg) 463{ 464 device_t dev = (device_t)arg; 465 device_t ppbus = device_get_parent(dev); 466 struct lp_data *sc = DEVTOSOFTC(dev); --- 307 unchanged lines hidden --- | 459} 460 461static void 462lp_intr (void *arg) 463{ 464 device_t dev = (device_t)arg; 465 device_t ppbus = device_get_parent(dev); 466 struct lp_data *sc = DEVTOSOFTC(dev); --- 307 unchanged lines hidden --- |