Re: [tcpdump-workers] Multiple Needles in Multiple Haystacks.

2016-11-17 Thread Guy Harris
On Nov 17, 2016, at 7:29 AM, Zaphod Beeblebrox wrote: > Fundamental to my problem is filtering the PPP inside L2TP. Making this > complex, the L2TP speakers I'm dealing with don't deliver at the same > offsets. ...and libpcap's filter-to-BPF compiler doesn't have a "check for L2TP and, if you

Re: [tcpdump-workers] Multiple Needles in Multiple Haystacks.

2016-11-17 Thread Michael Richardson
Zaphod Beeblebrox wrote: > Something like "ppp[0:2] == 0x8021" should pull out the IPCP. Or is > that ppp[2:2] ... but neither works. Some other reading that's hard to > find would suggest something like "protochain l2tp and ppp proto > 0x8021" ... but that doesn't work either.

[tcpdump-workers] Multiple Needles in Multiple Haystacks.

2016-11-17 Thread Zaphod Beeblebrox
So... I have some malfunctioning L2TP servers. Not your problem. I would like to get a packet dump of just L2TP control packets + L2TP packets containing PPP packets of LCP, IPCP, IP6CP and PAP. I would also (less important) like to filter out LCP echo/reply. This is why I'm writing to this lis