Add a "data" item to the opt_info structure, containing a "const void
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Oct 2004 07:00:23 +0000 (07:00 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Oct 2004 07:00:23 +0000 (07:00 +0000)
commitc789af774472c8561ff1971e5d8f022dba099c08
tree4742afd0b381eb159676e891597888bfb4b90631
parentaf7181e1b826185c5203d9c8f6ef4fa3a70bb552
Add a "data" item to the opt_info structure, containing a "const void
*".  For val_u_byte, if non-null, it points to a "value_string" table to
be used to interpret the value.  Replace "toggle" and "yes_no" with
"boolean, and have the "data" pointer point to a "struct
true_false_string" to be used to interpret the value.

The NetBIOS-over-TCP/IP Node Type option can now be a regular val_u_byte
value, with the appropriate value_string table.

Construct the item for DHCP options by initializing it without the value
and appending the value to the item's string with
"proto_item_append_text()".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12391 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/packet-bootp.c