diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-01-06 00:03:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-01-06 00:03:43 +0000 |
commit | 705bf9a6cbb535031a4f5ecdfca1adbc10b8c88f (patch) | |
tree | ce01b061fe6274d7889792c35c942703e09e76bb /ncp2222.py | |
parent | f7501c1331b97c982453db6fcf3826138197b692 (diff) |
Don't interpret NET_HDLC as LAPB/X.25 - sometimes it's some other
HDLC-flavored encapsulation (or, at least, it was in at least one
capture). Instead, treat it as WTAP_ENCAP_PER_PACKET, and infer the
packet type, as we do for NET_ROUTER.
For NET_ROUTER captures, if the ISDN channel number is zero, infer the
packet type from the contents, rather than wiring it to PPP - it might
be, for example, Cisco or Wellfleet HDLC.
Fix the check for Cisco HDLC to look for 0x0F 0x00 and 0x8F 0x00, as
0x0F, not 0x08, is the unicast address in Cisco HDLC.
When fixing the pseudo-header, fix it for WTAP_ENCAP_WFLEET_HDLC,
WTAP_ENCAP_CHDLC, and WTAP_ENCAP_PPP_WITH_PHDR, as well as for
WTAP_ENCAP_ISDN, as the three ones listed don't use x25.flags, they use
p2p.sent.
svn path=/trunk/; revision=6850
Diffstat (limited to 'ncp2222.py')
0 files changed, 0 insertions, 0 deletions