aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isis-lsp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-08-29 18:52:54 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-08-29 18:52:54 +0000
commit47a86362eb4a4fb3644176d46dfc400d177e99be (patch)
tree17812cffbc32d0f4b6a1a20fc5fc47efa1628f98 /packet-isis-lsp.c
parent97558d3fe76af16d4c94dd980d20d430d81e9063 (diff)
From Hannes Gredler: make the IS-IS dissector more verbose in the INFO
field - specifically for IIHs the System-ID of the Hello; LSPs the LSP-ID, Sequence #, Lifetime; CSNPs the LAN-ID, Start LSP-ID, End LSP-ID. and change the display of some IDs. Clean up white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6128 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-isis-lsp.c')
-rw-r--r--packet-isis-lsp.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/packet-isis-lsp.c b/packet-isis-lsp.c
index 5336de2d9d..34e54cbb5c 100644
--- a/packet-isis-lsp.c
+++ b/packet-isis-lsp.c
@@ -1,7 +1,7 @@
/* packet-isis-lsp.c
* Routines for decoding isis lsp packets and their CLVs
*
- * $Id: packet-isis-lsp.c,v 1.34 2002/08/28 21:00:18 jmayer Exp $
+ * $Id: packet-isis-lsp.c,v 1.35 2002/08/29 18:52:51 guy Exp $
* Stuart Stanley <stuarts@mxmail.net>
*
* Ethereal - Network traffic analyzer
@@ -1524,7 +1524,7 @@ isis_lsp_decode_lsp_id(tvbuff_t *tvb, proto_tree *tree, int offset,
* void, but we will add to proto tree if !NULL.
*/
void
-isis_dissect_isis_lsp(tvbuff_t *tvb, proto_tree *tree, int offset,
+isis_dissect_isis_lsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset,
int lsp_type, int header_length, int id_length)
{
proto_item *ti;
@@ -1554,7 +1554,11 @@ isis_dissect_isis_lsp(tvbuff_t *tvb, proto_tree *tree, int offset,
if (tree) {
isis_lsp_decode_lsp_id(tvb, lsp_tree, offset,
- "LSP ID", id_length);
+ "LSP-ID", id_length);
+ }
+ if (check_col(pinfo->cinfo, COL_INFO)) {
+ col_append_fstr(pinfo->cinfo, COL_INFO, ", LSP-ID: %s",
+ print_system_id( tvb_get_ptr(tvb, offset, id_length+2), id_length+2 ) );
}
offset += id_length + 2;
@@ -1563,6 +1567,11 @@ isis_dissect_isis_lsp(tvbuff_t *tvb, proto_tree *tree, int offset,
offset, 4,
tvb_get_ntohl(tvb, offset));
}
+ if (check_col(pinfo->cinfo, COL_INFO)) {
+ col_append_fstr(pinfo->cinfo, COL_INFO, ", Sequence: 0x%08x, Lifetime: %5us",
+ tvb_get_ntohl(tvb, offset),
+ tvb_get_ntohs(tvb, offset - (id_length+2+2)));
+ }
offset += 4;
if (tree) {