aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isis-hello.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-07 23:39:00 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-07 23:39:00 +0000
commitb212a49bd76784a805e73eee29143214971f420c (patch)
tree0ccb7de4c007f2f2b7bf3ff52505d755bbb8af0b /packet-isis-hello.c
parent5a89b3b96570bedd8761c48b3b68e664a8643488 (diff)
Get rid of the unused hf_ value "hf_isis_hello_clv_restart".
Use the "tree_id" argument to "isis_dissect_mt_clv()" for the 2-byte MT IDs, and arrange that the two hf_ values passed as that argument actually be defined for protocol fields. Fix the loop in "isis_dissect_mt_clv()" so that it actually catches an odd byte at the end (i.e., loop until there is data at all, not until there is 1 or fewer bytes), and put that odd byte, if it exists, into the tree as a 1-byte text item, not a 2-byte text item. svn path=/trunk/; revision=5113
Diffstat (limited to 'packet-isis-hello.c')
-rw-r--r--packet-isis-hello.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-isis-hello.c b/packet-isis-hello.c
index 1ffae4527c..aa3b7d45ce 100644
--- a/packet-isis-hello.c
+++ b/packet-isis-hello.c
@@ -1,7 +1,7 @@
/* packet-isis-hello.c
* Routines for decoding isis hello packets and their CLVs
*
- * $Id: packet-isis-hello.c,v 1.28 2002/04/07 22:36:55 guy Exp $
+ * $Id: packet-isis-hello.c,v 1.29 2002/04/07 23:39:00 guy Exp $
* Stuart Stanley <stuarts@mxmail.net>
*
* Ethereal - Network traffic analyzer
@@ -53,7 +53,6 @@ static int hf_isis_hello_clv_ipv4_int_addr = -1;
static int hf_isis_hello_clv_ipv6_int_addr = -1;
static int hf_isis_hello_clv_ptp_adj = -1;
static int hf_isis_hello_clv_mt = -1;
-static int hf_isis_hello_clv_restart = -1;
static gint ett_isis_hello = -1;
static gint ett_isis_hello_clv_area_addr = -1;
@@ -787,6 +786,9 @@ isis_register_hello(int proto_isis) {
{ "Point-to-point Adjacency ", "isis.hello.clv_ptp_adj",
FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL }},
+ { &hf_isis_hello_clv_mt,
+ { "MT-ID ", "isis.hello.clv_mt",
+ FT_UINT16, BASE_HEX, NULL, 0x0, "", HFILL }},
};
static gint *ett[] = {
&ett_isis_hello,