diff options
author | hannes <hannes> | 2002-09-03 14:21:42 +0000 |
---|---|---|
committer | hannes <hannes> | 2002-09-03 14:21:42 +0000 |
commit | 6165e4584c8a2f54003630533f4db67b1ae5cb3b (patch) | |
tree | c4b344fd254fb74e9af44572d008382f6dff0e1d /print-isoclns.c | |
parent | 92f6294b49044287fc47cb701bbbed240ceb562b (diff) | |
download | tcpdump-6165e4584c8a2f54003630533f4db67b1ae5cb3b.tar.gz |
from Said Ouissal:
support for Hello PDU Sequence Numbers
described in draft-shen-isis-iih-sequence-00.txt
Diffstat (limited to 'print-isoclns.c')
-rw-r--r-- | print-isoclns.c | 10 |
1 files changed, 9 insertions, 1 deletions
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 ;-) |