diff options
author | Peter Wu <peter@lekensteyn.nl> | 2017-03-04 01:40:51 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2017-03-08 23:04:12 +0000 |
commit | 540b5557291ad0960ce566adc3f24100aac946de (patch) | |
tree | 6c5aac3a5e7cce9c17f12980a6d22c0007375f15 /epan/dissectors/packet-h1.c | |
parent | 2b06c17592e792224779355c2e47d776ba2f9af6 (diff) | |
download | wireshark-540b5557291ad0960ce566adc3f24100aac946de.tar.gz wireshark-540b5557291ad0960ce566adc3f24100aac946de.tar.bz2 wireshark-540b5557291ad0960ce566adc3f24100aac946de.zip |
Introduce "bytes_string" type, similar to "value_string"
In order to map arbitrary byte buffers to strings, introduce a new
"bytes_string" type. Since "bytes_to_str" is already used for other
purposes, name the generic function "bytesval_to_str" instead similar to
the name( "val_to_str").
Accept "size_t" as length parameter since this is what is returned by
the "sizeof" operator. Do not add a "try_bytesval_to_str_idx" variant
since this pattern is not needed for now. Add a variant to match the
prefix since this is currently expected by the ISAKMP dissector.
Change-Id: I6d790325e85d9fb1384330f28a8c36e2057fdf30
Reviewed-on: https://code.wireshark.org/review/20386
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-h1.c')
0 files changed, 0 insertions, 0 deletions