forked from osmocom/wireshark
REAME.dissector: update the code snippet for Decode As
We removed the "title" member from decode_as_t. Update the sample code snippet accordingly. Change-Id: I5d4ba979c955de50287f5b4deea7c64bf96f7d9b Reviewed-on: https://code.wireshark.org/review/33574 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
9239ce6900
commit
0d580ecee3
|
@ -3598,7 +3598,7 @@ Consider the following example using IP dissection, stolen from packet-ip.c:
|
|||
|
||||
static build_valid_func ip_da_build_value[1] = {ip_value};
|
||||
static decode_as_value_t ip_da_values = {ip_prompt, 1, ip_da_build_value};
|
||||
static decode_as_t ip_da = {"ip", "Network", "ip.proto", 1, 0, &ip_da_values, NULL, NULL,
|
||||
static decode_as_t ip_da = {"ip", "ip.proto", 1, 0, &ip_da_values, NULL, NULL,
|
||||
decode_as_default_populate_list, decode_as_default_reset, decode_as_default_change, NULL};
|
||||
...
|
||||
ip_dissector_table = register_dissector_table("ip.proto", "IP protocol", ip_proto, FT_UINT8, BASE_DEC);
|
||||
|
|
Loading…
Reference in New Issue