diff options
author | Michael Mann <mmann78@netscape.net> | 2016-05-02 21:44:48 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-05-05 19:27:55 +0000 |
commit | 5493fe01671f7f293eb87edb780019c889859153 (patch) | |
tree | b9e693b03d0c99c974ceb2255965b8fe1ecef879 /epan/ftypes/ftype-ieee-11073-float.c | |
parent | ec382e89cb71be1bbd67854799de887d3e9746fe (diff) | |
download | wireshark-5493fe01671f7f293eb87edb780019c889859153.tar.gz |
Convert ftype-tvbuff.c to ftype-protocol.c
As noted in https://www.wireshark.org/lists/wireshark-dev/201604/msg00103.html
a protocol field isn't really a tv_buff, so allow for the possibility
of a NULL tv_buff in a "protocol type". If the tvb is NULL, use the
string of the protocol field for comparison
Bug: 12335
Change-Id: Ie12a5f7b31c7293c61006b0f70135d100a97c4e0
Reviewed-on: https://code.wireshark.org/review/15261
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/ftypes/ftype-ieee-11073-float.c')
-rw-r--r-- | epan/ftypes/ftype-ieee-11073-float.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/ftypes/ftype-ieee-11073-float.c b/epan/ftypes/ftype-ieee-11073-float.c index 1a99b84367..3109e1ffd1 100644 --- a/epan/ftypes/ftype-ieee-11073-float.c +++ b/epan/ftypes/ftype-ieee-11073-float.c @@ -1443,7 +1443,7 @@ Example: 114 is 0x0072 NULL, /* set_value_guid */ NULL, /* set_value_time */ NULL, /* set_value_string */ - NULL, /* set_value_tvbuff */ + NULL, /* set_value_protocol */ sfloat_ieee_11073_value_set, /* set_value_uinteger */ NULL, /* set_value_sinteger */ NULL, /* set_value_uinteger64 */ @@ -1515,7 +1515,7 @@ Example: 36.4 is 0xFF00016C NULL, /* set_value_guid */ NULL, /* set_value_time */ NULL, /* set_value_string */ - NULL, /* set_value_tvbuff */ + NULL, /* set_value_protocol */ float_ieee_11073_value_set, /* set_value_uinteger */ NULL, /* set_value_sinteger */ NULL, /* set_value_uinteger64 */ |