diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2019-06-12 13:37:43 -0700 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-06-12 22:48:50 +0000 |
commit | 0d580ecee339e624dbe3d5de171ad12542e4eeb1 (patch) | |
tree | bdb06850d0a957238a4c958d405490037ba2846c /doc/README.dissector | |
parent | 9239ce6900676868731a3057e974d8fc610eca78 (diff) |
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>
Diffstat (limited to 'doc/README.dissector')
-rw-r--r-- | doc/README.dissector | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/README.dissector b/doc/README.dissector index 4369b5cae9..30ee62f534 100644 --- a/doc/README.dissector +++ b/doc/README.dissector @@ -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); |