Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal in_cksum.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: Fri, 8 Jun 2001 20:02:30 -0500 (CDT)
guy         2001/06/08 20:02:30 CDT

  Modified files:
    .                    in_cksum.c 
  Log:
  "long" does not necessarily mean "32-bit integral data type"; the union
  used to treat a 32-bit quantity either as 2 16-bit quantities or a
  32-bit quantity should use "guint32", not "long", for the latter.
  
  We should also use "guint8" for the two 8-bit quantities in "s_util",
  although that shouldn't make a difference in practice (we store into
  them, but fetch only the 16-bit overlapping quantity, which is already
  unsigned).
  
  Revision  Changes    Path
  1.4       +6 -6      ethereal/in_cksum.c