From 0d580ecee339e624dbe3d5de171ad12542e4eeb1 Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Wed, 12 Jun 2019 13:37:43 -0700 Subject: [PATCH] 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 --- doc/README.dissector | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);