hannes
b756fcfd81
bugfix: the IS-IS Multi-topology TLV MTID is prepended once per TLV and not once per MT-IS neighbor
2008-08-16 13:38:15 +00:00
hannes
6fb52fa951
Add HMAC-MD5 verification support for IS-IS
2008-08-16 12:07:17 +00:00
hannes
b0757875e2
bugfix: the Multi-topology header is just at the beginning of the TLV and not before every prefix
2007-03-02 09:16:19 +00:00
hannes
600222a669
from Jacek Tobiasz <Jacek.Tobiasz@atm.com.pl>:
...
display the IS-IS istype field as L2 and not L1L2.
2007-02-22 11:28:09 +00:00
hannes
96977962e9
print shouldbe checksum for broken OSI checksum, remove osi_cksum()
2006-09-25 09:23:32 +00:00
hannes
de5421422e
do not bail if we hit a zero-length TLV, continue to read the next TLV header instead.
2006-06-16 18:08:35 +00:00
guy
df7c862246
From Don Ebright: fix a place where we were referring to AF_INET6 even
...
when INET6 wasn't defined.
2006-05-12 02:10:21 +00:00
hannes
47ac6d9c3d
fixup typo from last commit
2006-04-14 07:12:46 +00:00
hannes
65ba981d2e
add support for link attribute subTLV, update GMPLS printer to latest spec (rfc4205)
2006-04-10 21:07:35 +00:00
hannes
03e75a767c
bugfix: wrong offset calculation for restart holdtimer
2006-04-06 13:43:30 +00:00
hannes
50b4920bc5
move AF specific stuff to dedicated files
2006-02-21 10:27:40 +00:00
guy
085929abcb
Get rid of an #ifdef - to zero something out with memset, just use
...
"sizeof something" as the size argument.
2005-11-12 22:22:59 +00:00
guy
02c692dc72
From Markus Schoepflin: don't use "struct in6_addr" if INET6 isn't
...
defined, because, in that case, "struct in6_addr" probably isn't
defined, either.
Check for too-large bit lengths in TLVs.
2005-10-16 08:17:51 +00:00
hannes
4dc9cccc3e
retain the old diffserv-te codepoints for a transition period
2005-09-20 10:04:26 +00:00
guy
1c47cfa81a
But the PDU length checks back, so "tmp" doesn't go negative.
...
At least as I read RFC 3847, you won't get a system ID without the
remaining hold time field; after printing the flags field, check whether
there's anything else after the flag field and, if not, quit, otherwise
print the remaining hold time field and, if present, the system ID field.
2005-09-05 18:20:15 +00:00
hannes
806a7cab5c
rework the restart signaling TLV printer:
...
-accept TLV length of 1 as this is now perfectly valid as per rfc 3847
-only attempt to print a trailing system-ID and not a node-ID
2005-09-05 11:12:33 +00:00
hannes
50973844ef
update diffserv-TE codepoints as per rfc4124
2005-08-23 11:07:34 +00:00
hannes
f6e4e639b3
code cosmetics: add a few TLV_MINLEN #defines
2005-07-14 20:10:03 +00:00
hannes
67eb31b994
code cosmetics:
...
at places where the entity to print / or increment
shares the semantics of an IPv4 or IPv6 address
use sizeof(in_addr) and sizeof(in6_addr),
rather than a hardcoded 4 or 16
2005-07-11 20:15:31 +00:00
hannes
ac93b91df2
add boundary check for CLNP segment header
2005-07-11 12:58:12 +00:00
guy
5490c478cc
Add some additional length checking, and fix up some other length checks.
2005-06-16 01:14:26 +00:00
guy
531ae3fff9
We've already subtracted the fixed 36 bytes from subl, no need to do it
...
again.
2005-06-16 01:07:28 +00:00
hannes
0b0bdeff66
update the graceful restart TLV printer as per rfc3847
2005-06-13 12:56:43 +00:00
hannes
b6b9e87a04
typo: the codepoint for complete source routing in the sr clnp option is 0x1 and not 0x0
2005-06-08 06:40:10 +00:00
guy
2b08b7635e
And add checks of the NSAP offset.
2005-05-25 22:06:24 +00:00
guy
6740864774
Add some more length checking.
2005-05-25 21:59:05 +00:00
hannes
f962161024
add support for the CLNP Security,RR,SR and Padding Options
2005-05-25 07:22:13 +00:00
guy
c0fd6776c1
Don't print ", " before the length if we're printing the link-layer
...
header, as the ", " isn't necessary, and looks ugly, in that case.
Use TCHECK() and TCHECK2() for bounds checking, and do more bounds
checking.
2005-04-26 07:14:07 +00:00
guy
59415dcb22
Add a bunch of error checking.
2005-04-25 18:50:35 +00:00
hannes
5ad4af2212
check against min. TLV length / get if logic right
2005-04-25 10:41:06 +00:00
hannes
3ac9165c1f
bugfix: do not attempt to decode zero-length TLVs, only attempt to decode IS-REACH (varlength) TLVs if the TLV length indicates that there is at least a single byte on the wire
2005-04-25 09:09:11 +00:00
guy
ee44728e80
Don't exit just because an NSAP had a length of 0 or a too-long length;
...
just report it as an illegal length.
Check for some zero-length or too-short TLVs not already checked for.
2005-04-25 08:42:30 +00:00
mcr
4189fb7df6
refactored ip_print() so that chained header parser (ESP/AH) can
...
more easily call the inner parts.
2005-04-06 21:32:38 +00:00
hannes
5d1e884e0b
only attempt to print non-header data if there is something to print
2005-04-02 18:32:41 +00:00
hannes
eeb5a51a28
print the optional (payload) CLNP header in ERPDUs
2005-03-22 08:18:10 +00:00
hannes
6f0f57cf6c
add support for the CLNP 'Reason for Discard' Option
2005-03-21 12:26:04 +00:00
hannes
810773f6e9
- bugfix: start CLNP checksumming at the packet start
...
- display the reqesting packet header of the Echo response payload
2005-03-09 18:42:51 +00:00
hannes
cddcb5632d
code cleanup:
...
- remove the private print_nsap() and use isonsap_string() instead
- pass on a length indicator to isonsap_string as CLNP and ES-IS,IS-IS TLVs
and options store the length differently (semioctets vs. octets)
- make the isonsap_string() output equal to the now abandoned print_nsap()
printer which reflects representation of contemporary router software
2005-03-08 08:52:38 +00:00
hannes
5ce5e27bc5
CLNP updates:
...
-add segment header support
-add options processing
-add some basic header sanity checking
2005-03-07 14:36:16 +00:00
hannes
efd5520f66
-export the q933 printer and call it from the OSI printer
...
-display cosmetics:
make the comma settings eflag compatible
place a colon after printing the OSI proto-ID to indicate
that we are crossing a layer boundary
2005-01-27 10:13:51 +00:00
hannes
3385db1b3a
display cosmetics: fix the darn comma setting for all combination of v and e flag
2005-01-25 15:35:11 +00:00
hannes
6a0627fbad
add PPP to the ISO nlpid printer
2004-10-19 15:27:55 +00:00
hannes
7e54d6cb05
-extend the OSI NLPID dissector for printing IP and IP6 packets
...
- do some display (comma) cosmetics (output will remain the same);
one day we need to move the nlpid dissector from print-isoclns
to (new) print-nlpid.c
2004-10-18 12:34:36 +00:00
hannes
4d399db499
-move the nlpid definitions and tokens to a dedicated file(s)
...
-make use of it in the ISO, Frame-relay and CDP printers
2004-10-07 14:53:09 +00:00
hannes
88157719fa
bugfix: changed format for diffserv-TE subTLVs, add tok2str() for decoding BC models
2004-09-15 17:54:10 +00:00
hannes
650506635b
bugfix: print 7 (node-id) bytes rather than 6 (system-id) for CSNPs in non verbose mode
2004-09-09 07:11:57 +00:00
guy
fc752e7dcb
Add length checks.
2004-03-24 01:40:44 +00:00
hannes
52998205ec
display cosmetics: hide OSI indication under the eflag
2004-03-18 10:58:17 +00:00
hannes
7756e1b2c9
copy & paste error: replace priority_level by bandwidth_constraint
2004-01-27 13:35:57 +00:00
hannes
503506b367
add support for Difserv TE per draft-ietf-tewg-diff-te-proto-06
2004-01-27 12:50:55 +00:00