FYI, I think I have a better fix, after reading remarks by itojun and
Guy Harris. This does not require recent snap from tcpdump.org and the
(ugly) patch I did to gencode.c therein. This works on NetBSD-1.5
release, with changes noted.
1. Do bpfattach using DLT_HDLC rather than DLT_PPP_SERIAL in
/usr/src/sys/dev/pci/if_lmcvar.h. I also have heavily patched the rest
of the lmc driver to support LMC1200P - will be submitting to netbsd.org.
2. Make new tcpdump using sources later than Thu Mar 1 15:13:31 2001
UTC to pick up hdlc changes by itojun.
The resulting kernel and tcpdump support filtering on the LMC
interfaces.
Guy Harris <[EMAIL PROTECTED]> writes:
> > [EMAIL PROTECTED] writes:
> > > i believe we need some fix into sys/dev/pci/if_lmc*.c. the code
> > > calls bpf_mtap() with mbuf that does not meet its DLT type.
...
> For now, it'd probably be best to use DLT_C_HDLC as the DLT_ type on
> interfaces where packets *always* have Cisco HDLC headers rather than
> PPP headers, as that'd remove the requirement to make the BPF compiler
> generate the address tests referred to above.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe