Dag-Erling Smorgrav <d...@flood.ping.uio.no> wrote:
> Tcpdump does not work on PLIP links,

Check out http://www.freebsd.org/cgi/query-pr.cgi?pr=7241
This includes fixes for PLIP in lpt.c, but the code in ppbus/if_plip.c
looks virtually the same.  Note that lpt.c with Bill Fenner's patch
did not compile and needed the following additional patch:

--- lpt.c.p1    Sun Jul 12 13:38:17 1998
+++ lpt.c       Sun Jul 12 21:26:40 1998
@@ -1123,7 +1123,7 @@
                    m0.m_len = 4;
                    m0.m_data = (char *)&af;
 
-                   bpf_mtap(ifp, &m0);
+                   bpf_mtap(&sc->sc_if, &m0);
                }
 #endif
                IF_ENQUEUE(&ipintrq, top);
@@ -1191,7 +1191,7 @@
                            m0.m_len = 4;
                            m0.m_data = (char *)&af;
 
-                           bpf_mtap(ifp, &m0);
+                           bpf_mtap(&sc->sc_if, &m0);
                    }
 #endif
                    IF_ENQUEUE(&ipintrq, top);


[I'm not sure why this PR still shows as `feedback'].

Peter

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to