Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-ascend.c packet-auto_rp.c packet-cdp.

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: Thu, 25 Jan 2001 00:14:17 -0600 (CST)
guy         2001/01/25 00:14:17 CST

  Modified files:
    .                    packet-ascend.c packet-auto_rp.c 
                         packet-cdp.c packet-cgmp.c 
                         packet-dec-bpdu.c packet-fr.c 
                         packet-iua.c packet-l2tp.c 
                         packet-lapbether.c packet-ldp.c 
                         packet-m3ua.c packet-mapi.c packet-mip.c 
                         packet-mpls.c packet-rtsp.c packet-sap.c 
                         packet-sctp.c packet-sdp.c packet-sip.c 
                         packet-smtp.c packet-sna.c 
                         packet-syslog.c packet-telnet.c 
                         packet-time.c 
  Log:
  Remove more "CHECK_DISPLAY_AS_DATA()" calls and "pinfo->current_proto ="
  statements.
  
  Move the setting of the Protocol column in various dissectors before
  anything is fetched from the packet, and also clear the Info column at
  that point in those and some other dissectors, so that if an exception
  is thrown, the columns don't reflect the previous protocol.
  
  "Tvbuffify" the Mobile IP dissector (it took old-style arguments, and
  then converted them into tvbuff arguments, so there wasn't much to do,
  other than to fix references to "fd" to refer to "pinfo->fd").
  
  In the SCTP dissector, refer to the port type and source and destination
  ports through "pinfo" rather than through the global "pi", as it's a
  tvbuffified dissector.
  
  In the SMTP and Time Protocol dissectors, use "pinfo->match_port" rather
  than "TCP_PORT_SMTP" when checking whether the packet is a request or
  reply, just in case somebody makes a non-standard port be dissected as
  SMTP or Time.  (Also, remove a bogus comment from the Time dissector; it
  was probably cut-and-pasted from the TFTP dissector.)
  
  Revision  Changes    Path
  1.24      +1 -5      ethereal/packet-ascend.c
  1.13      +3 -5      ethereal/packet-auto_rp.c
  1.35      +1 -5      ethereal/packet-cdp.c
  1.9       +1 -5      ethereal/packet-cgmp.c
  1.6       +4 -5      ethereal/packet-dec-bpdu.c
  1.8       +1 -4      ethereal/packet-fr.c
  1.4       +1 -7      ethereal/packet-iua.c
  1.21      +3 -4      ethereal/packet-l2tp.c
  1.5       +3 -5      ethereal/packet-lapbether.c
  1.14      +3 -6      ethereal/packet-ldp.c
  1.4       +1 -5      ethereal/packet-m3ua.c
  1.14      +1 -5      ethereal/packet-mapi.c
  1.13      +11 -17    ethereal/packet-mip.c
  1.17      +1 -5      ethereal/packet-mpls.c
  1.36      +3 -5      ethereal/packet-rtsp.c
  1.19      +6 -8      ethereal/packet-sap.c
  1.13      +4 -8      ethereal/packet-sctp.c
  1.20      +1 -5      ethereal/packet-sdp.c
  1.11      +9 -4      ethereal/packet-sip.c
  1.15      +6 -6      ethereal/packet-smtp.c
  1.25      +5 -6      ethereal/packet-sna.c
  1.10      +6 -7      ethereal/packet-syslog.c
  1.24      +1 -5      ethereal/packet-telnet.c
  1.13      +2 -8      ethereal/packet-time.c