diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-05-25 06:56:53 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-05-25 06:56:53 +0000 |
commit | bd0d104f9b842800313f1d191d8db050ea62edcb (patch) | |
tree | 7b4f52fcc6e92f463030b0b99cb9315915718f8d /packet-isup.c | |
parent | 696410775e7a80380f21c3b0cfc89e20b4f740f9 (diff) |
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.
svn path=/trunk/; revision=3449
Diffstat (limited to 'packet-isup.c')
0 files changed, 0 insertions, 0 deletions