forked from osmocom/wireshark
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:
parent
1b330db2e3
commit
4509f2e2a4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue