Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap ngsniffer.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 5 Jan 2003 18:03:44 -0600 (CST)
guy         2003/01/05 18:03:44 CST

  Modified files:
    wiretap              ngsniffer.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.100     +34 -22    ethereal/wiretap/ngsniffer.c