From 6165e4584c8a2f54003630533f4db67b1ae5cb3b Mon Sep 17 00:00:00 2001 From: hannes Date: Tue, 3 Sep 2002 14:21:42 +0000 Subject: from Said Ouissal: support for Hello PDU Sequence Numbers described in draft-shen-isis-iih-sequence-00.txt --- print-isoclns.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'print-isoclns.c') diff --git a/print-isoclns.c b/print-isoclns.c index 9ac90f20..922c084f 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.59 2002-09-01 21:08:02 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.60 2002-09-03 14:21:42 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -130,6 +130,7 @@ static struct tok isis_pdu_values[] = { #define TLV_IP6_REACH 236 #define TLV_MT_IP6_REACH 237 #define TLV_PTP_ADJ 240 +#define TLV_IIH_SEQNR 241 /* draft-shen-isis-iih-sequence-00.txt */ static struct tok isis_tlv_values[] = { { TLV_AREA_ADDR, "Area address(es)"}, @@ -168,6 +169,7 @@ static struct tok isis_tlv_values[] = { { TLV_IP6_REACH, "IPv6 reachability"}, { TLV_MT_IP6_REACH, "Multi-Topology IP6 reachability"}, { TLV_PTP_ADJ, "Point-to-point Adjacency State"}, + { TLV_IIH_SEQNR, "Hello PDU Sequence Number"}, { 0, NULL } }; @@ -2009,6 +2011,12 @@ static int isis_print (const u_char *p, u_int length) } break; + case TLV_IIH_SEQNR: + if (!TTEST2(*tptr, 4)) /* check if four bytes are on the wire */ + goto trunctlv; + printf("\n\t\tSequence number: %u", EXTRACT_32BITS(tptr) ); + break; + /* * FIXME those are the defined TLVs that lack a decoder * you are welcome to contribute code ;-) -- cgit v1.2.1