aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isis-lsp.c
diff options
context:
space:
mode:
authorMarian Durkovic <md@bts.sk>2014-08-16 13:45:09 +0200
committerEvan Huus <eapache@gmail.com>2014-08-17 14:04:00 +0000
commit95ddeeda0c622356387ac9414137ec57e9c2625d (patch)
treec02c7d97bdf4e6f8dfaf52ce4f770eacba5ed3b2 /epan/dissectors/packet-isis-lsp.c
parent9de7f5605a4b4ed8008278b3c4af4bb08900be3b (diff)
Fix uninitialized variable and print VLAN numbers in decimal
Change-Id: Icf3b3ea4968d1ed94a11ce8eb4b4fdd09ed69012 Reviewed-on: https://code.wireshark.org/review/3660 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-isis-lsp.c')
-rw-r--r--epan/dissectors/packet-isis-lsp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-isis-lsp.c b/epan/dissectors/packet-isis-lsp.c
index 65936db59c..17b5d5e57d 100644
--- a/epan/dissectors/packet-isis-lsp.c
+++ b/epan/dissectors/packet-isis-lsp.c
@@ -716,6 +716,8 @@ dissect_isis_grp_address_clv(tvbuff_t *tvb, packet_info* pinfo _U_, proto_tree *
offset += 6;
len -= 6;
+ k=1;
+
while((len > 0) && (source_num > 0)) {
hmac_src = tvb_get_ntoh48 (tvb, offset);
fp_get_hmac_addr (hmac_src, &swid, &sswid, &lid);
@@ -3016,12 +3018,12 @@ proto_register_isis_lsp(void)
},
{ &hf_isis_lsp_rt_capable_interested_vlans_vlan_start_id,
{ "Vlan start id", "isis.lsp.rt_capable.interested_vlans.vlan_start_id",
- FT_UINT16, BASE_HEX, NULL, 0x0fff,
+ FT_UINT16, BASE_DEC, NULL, 0x0fff,
NULL, HFILL }
},
{ &hf_isis_lsp_rt_capable_interested_vlans_vlan_end_id,
{ "Vlan end id", "isis.lsp.rt_capable.interested_vlans.vlan_end_id",
- FT_UINT16, BASE_HEX, NULL, 0x0fff,
+ FT_UINT16, BASE_DEC, NULL, 0x0fff,
NULL, HFILL }
},
{ &hf_isis_lsp_rt_capable_interested_vlans_afs_lost_counter,