PIMv2: Enchance display of Holdtime

Change-Id: If92dd22c4ceee41bc7b0151acb09f4341b2e97f3
Reviewed-on: https://code.wireshark.org/review/15763
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2016-06-07 07:54:05 +02:00 committed by Anders Broman
parent 1b330db2e3
commit 4509f2e2a4
1 changed files with 3 additions and 3 deletions

View File

@ -954,14 +954,14 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
switch(holdtime){
case 0:
proto_item_append_text(ti_hold, " (goodbye)");
proto_item_append_text(opt_item, " (goodbye)");
proto_item_append_text(opt_item, ": %u (goodbye)", holdtime);
break;
case 0xFFFF:
proto_item_append_text(ti_hold, " (Infinity)");
proto_item_append_text(opt_item, " (Infinity)");
proto_item_append_text(opt_item, ": %u (Infinity)", holdtime);
break;
default:
/* no default action */
proto_item_append_text(opt_item, ": %u", holdtime);
break;
}
break;