Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-bootp.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, 25 May 2001 01:56:54 -0500 (CDT)
guy         2001/05/25 01:56:53 CDT

  Modified files:
    .                    packet-bootp.c 
  Log:
  We always have to make one pass over the BOOTP options to see if the
  packet is BOOTP or DHCP; have "bootp_option()" take a flag indicating
  whether it's the first pass or the second and, in the first pass, don't
  put anything in the protocol tree - just return, through pointers, the
  DHCP packet type and the vendor class ID.  On the second pass, don't
  modify what those pointers point to, just use them as appropriate.
  
  Make the vendor class ID pointer local to "dissect_bootp()", and have
  "dissect_bootp()" do the first pass, set the Protocol and Info columns
  appropriately if the packet is DHCP, and then, if a protocol tree is to
  be built, make a second pass, handing "bootp_option()" the DHCP packet
  type and vendor class ID we found.
  
  If the vendor class ID is null, don't try to compare it with Intel's PXE
  client indicator.
  
  Revision  Changes    Path
  1.53      +96 -50    ethereal/packet-bootp.c