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@xxxxxxxxxxxx>
Date: Fri, 12 May 2000 17:12:32 -0500 (CDT)
guy         2000/05/12 17:12:27 CDT

  Modified files:
    wiretap              ngsniffer.c 
  Log:
  Use "htoles()" rather than "pletohs()" to convert host-byte-order shorts
  to little-endian shorts - and to convert host-byte-order longs to
  little-endian shorts (if the host-byte-order long will fit into a short,
  "htoles()" does the right thing; if it doesn't, there is no right thing
  to do - perhaps we should return a wiretap error, although, at least at
  present, it's unlikely that we'll have packets bigger than 65535 bytes,
  so it's unlikely that the values won't fit into a short).
  
  Revision  Changes    Path
  1.39      +9 -9      ethereal/wiretap/ngsniffer.c