Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-ipx.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, 6 Apr 2003 17:50:01 -0500 (CDT)
guy         2003/04/06 17:50:01 CDT

  Modified files:
    .                    packet-ipx.c 
  Log:
  Choosing the lower-numbered socket in an IPX packet as the first one to
  try as a port number doesn't always give the right answer, as you might
  have a name query packet from an SMB-over-IPX server, meaning it's from
  IPX_SOCKET_NWLINK_SMB_SERVER to IPX_SOCKET_NWLINK_SMB_NAMEQUERY, and,
  unfortunately, IPX_SOCKET_NWLINK_SMB_SERVER is less than
  IPX_SOCKET_NWLINK_SMB_NAMEQUERY and it'll now be dissected as an SMB
  packet rather than an NMPI name query packet.
  
  So if the higher-numbered socket is IPX_SOCKET_NWLINK_SMB_NAMEQUERY, we
  just try that, we don't try the other port.
  
  Revision  Changes    Path
  1.122     +30 -17    ethereal/packet-ipx.c