Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal packet-isakmp.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: Sat, 1 Jul 2000 22:25:54 -0500 (CDT)
guy         2000/07/01 22:25:51 CDT

  Modified files:
    .                    packet-isakmp.c 
  Log:
  Fix the comment at the beginning of the routine to give the right file
  name, and add the RFC number for ISAKMP to it.
  
  Fix the structures for headers to treat all multi-byte quantities as
  arrays of bytes; the certificate request header needs to be done that
  way, so that it's *not* padded to a multiple of the size of the longest
  integral element (the longest integral element is 2 bytes, but the size
  of the header is 5 bytes, so certificate requests were being
  misdissected), and other structures might require this as well - it also
  catches code that doesn't use "pntohl()" or "pntohs()" to get the values
  of integral fields bigger than 1 byte.
  
  In fact, it *did* catch some; the configuration attribute header's
  "identifier" field was being used without being put in host byte order.
  In addition, that field required padding to be aligned on its natural
  boundary, but the padding wasn't given as a structure member; given that
  the length field was specified as one byte but extracted with
  "pntohs()", and that the length field is 2 bytes in the other headers,
  it probably should be 2 bytes in this header as well - make it so.
  
  Revision  Changes    Path
  1.23      +30 -29    ethereal/packet-isakmp.c