diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2003-12-28 03:56:00 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2003-12-28 03:56:00 +0000 |
| commit | 437ffe182391fbcd9826ce327abbd175515b687d (patch) | |
| tree | f663da0db11fcecb5ff2d3e93732492fb4d7bd29 /sys/dev/ppbus | |
| parent | bd80d26f3b2fc205d7351ec17e029625f915a687 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ppbus')
| -rw-r--r-- | sys/dev/ppbus/if_plip.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/ppbus/if_plip.c b/sys/dev/ppbus/if_plip.c index ab02841c253f..32221c718f88 100644 --- a/sys/dev/ppbus/if_plip.c +++ b/sys/dev/ppbus/if_plip.c @@ -445,19 +445,8 @@ clpinbyte (int spin, device_t ppbus) static void lptap(struct ifnet *ifp, struct mbuf *m) { - /* - * Send a packet through bpf. We need to prepend the address family - * as a four byte field. Cons up a dummy header to pacify bpf. This - * is safe because bpf will only read from the mbuf (i.e., it won't - * try to free it or keep a pointer to it). - */ u_int32_t af = AF_INET; - struct mbuf m0; - - m0.m_next = m; - m0.m_len = sizeof(u_int32_t); - m0.m_data = (char *)⁡ - BPF_MTAP(ifp, &m0); + BPF_MTAP2(ifp, &af, sizeof(af), m); } static void |
