Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 1935] Wireshark does not parse dhcpv6 vendor-specific opti

Date: Thu, 25 Oct 2007 17:13:57 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1935





------- Comment #4 from jlange6648@xxxxxxxxx  2007-10-25 17:13 GMT -------
That is not a valid packet.  When the RFC talks about the fact that it can
contain "Multiple instances of the Vendor-specific information option" it's
referring to the clause in section 22 that states:

   Unless otherwise noted, each option may appear only in the options
   area if a DHCP message and may appear only once.  If an option does
   appear multiple times, each instance is considered separate and the
   data areas if the options MUST NOT be concatenated or otherwise
   combined.

So what this is saying is that the entire Vendor-specific option is allowed to
show up multiple times in the options area, each time caring only 1 vendor
specific option, so the packet would look like this:


     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  <----\
     |      OPTION_VENDOR_OPTS       |         option-len (sec 22.1) |       | 
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       |
     |                       enterprise-number                       |       |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       |
     |          opt-code             |         option-len (sec 22.17)|       A
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       |
     .                                                               .       |
     .                          option-data                          .       |
     .                                                               .       |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  <----/
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  <----\
     |      OPTION_VENDOR_OPTS       |         option-len (sec 22.1) |       |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       |
     |                       enterprise-number                       |       |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       |
     |          opt-code             |         option-len (sec 22.17)|       B
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       |
     .                                                               .       |
     .                          option-data                          .       |
     .                                                               .       |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  <----/

-Jeff


(In reply to comment #3)
> What I meant was this scenario:
> 
>   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>     |      OPTION_VENDOR_OPTS       |           option-len (A)      |        
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  <----\
>     |                       enterprise-number                       |       |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       |
>     |          opt-code             |             option-len  (B)   |       A
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ <--\  |
>     .                                                               .    |  |
>     .                          option-data                          .    B  |
>     .                                                               .    |  |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ <--/  |
>     |          opt-code             |             option-len  (C)   |       |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ <--\  |
>     .                                                               .    |  |
>     .                          option-data                          .    C  |
>     .                                                               .    |  |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ <--+--/
> 


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.