aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isis-lsp.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2006-12-18 23:12:50 +0000
committerStephen Fisher <steve@stephen-fisher.com>2006-12-18 23:12:50 +0000
commite4dc8bd0fb9689b7209e85ef82eb6fd6db1e8ce4 (patch)
tree72229d4ef98d94e5d472645a165b0c5b212d9599 /epan/dissectors/packet-isis-lsp.c
parent6527f7110484792438bc9903c6b5ebd2ee26ee09 (diff)
From Sebastien Tandel:
a little patch against revision 20088 in packet-isis-lsp.c for the following : - hf_isis_lsp_remaining_life declared but unused - replacing a proto_tree_add_uint useless with proto_tree_add_item svn path=/trunk/; revision=20148
Diffstat (limited to 'epan/dissectors/packet-isis-lsp.c')
-rw-r--r--epan/dissectors/packet-isis-lsp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/dissectors/packet-isis-lsp.c b/epan/dissectors/packet-isis-lsp.c
index c850bd6e18..1faacf9c99 100644
--- a/epan/dissectors/packet-isis-lsp.c
+++ b/epan/dissectors/packet-isis-lsp.c
@@ -1769,9 +1769,8 @@ isis_dissect_isis_lsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int o
offset += 2;
if (tree) {
- proto_tree_add_text(lsp_tree, tvb, offset, 2,
- "Remaining Lifetime: %us",
- tvb_get_ntohs(tvb, offset));
+ proto_tree_add_item(lsp_tree, hf_isis_lsp_remaining_life,
+ tvb, offset, 2, FALSE);
}
offset += 2;
offset_checksum = offset;
@@ -1789,9 +1788,8 @@ isis_dissect_isis_lsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int o
offset += id_length + 2;
if (tree) {
- proto_tree_add_uint(lsp_tree, hf_isis_lsp_sequence_number, tvb,
- offset, 4,
- tvb_get_ntohl(tvb, offset));
+ proto_tree_add_item(lsp_tree, hf_isis_lsp_sequence_number,
+ tvb, offset, 4, FALSE);
}
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, ", Sequence: 0x%08x, Lifetime: %5us",