summaryrefslogtreecommitdiff
path: root/print-isoclns.c
Commit message (Collapse)AuthorAgeFilesLines
* bugfix: the Multi-topology header is just at the beginning of the TLV and ↵hannes2007-03-021-13/+15
| | | | not before every prefix
* from Jacek Tobiasz <Jacek.Tobiasz@atm.com.pl>:hannes2007-02-221-2/+2
| | | | display the IS-IS istype field as L2 and not L1L2.
* do not bail if we hit a zero-length TLV, continue to read the next TLV ↵hannes2006-06-161-2/+2
| | | | header instead.
* bugfix: wrong offset calculation for restart holdtimerhannes2006-04-061-2/+2
|
* Get rid of an #ifdef - to zero something out with memset, just useguy2005-11-121-6/+2
| | | | "sizeof something" as the size argument.
* From Markus Schoepflin: don't use "struct in6_addr" if INET6 isn'tguy2005-10-161-1/+21
| | | | | | | defined, because, in that case, "struct in6_addr" probably isn't defined, either. Check for too-large bit lengths in TLVs.
* retain the old diffserv-te codepoints for a transition periodhannes2005-09-201-2/+5
|
* But the PDU length checks back, so "tmp" doesn't go negative.guy2005-09-051-11/+16
| | | | | | | 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.
* rework the restart signaling TLV printer:hannes2005-09-051-15/+22
| | | | | -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
* update diffserv-TE codepoints as per rfc4124, code cosmetics: add a few ↵hannes2005-08-231-24/+33
| | | | TLV_MINLEN #defines
* code cosmetics:hannes2005-07-111-23/+23
| | | | | | | 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
* add boundary check for CLNP segment headerhannes2005-07-111-1/+2
|
* Fix whitespace to match the main line.guy2005-07-071-2/+2
|
* Add some additional length checking, and fix up some other length checks.guy2005-06-161-6/+30
|
* We've already subtracted the fixed 36 bytes from subl, no need to do itguy2005-06-161-2/+2
| | | | again.
* update the graceful restart TLV printer as per rfc3847hannes2005-06-131-2/+13
|
* typo: the codepoint for complete source routing in the sr clnp option is 0x1 ↵hannes2005-06-081-2/+2
| | | | and not 0x0
* And add checks of the NSAP offset.guy2005-05-251-2/+11
|
* Add some more length checking.guy2005-05-251-7/+13
|
* add support for the CLNP Security,RR,SR and Padding Optionshannes2005-05-251-4/+88
|
* Don't print ", " before the length if we're printing the link-layerguy2005-04-261-8/+10
| | | | | | | header, as the ", " isn't necessary, and looks ugly, in that case. Use TCHECK() and TCHECK2() for bounds checking, and do more bounds checking.
* Add a bunch of error checking.guy2005-04-251-25/+97
|
* check against min. TLV length / get if logic righthannes2005-04-251-2/+2
|
* bugfix: do not attempt to decode zero-length TLVs, only attempt to decode ↵hannes2005-04-251-2/+5
| | | | IS-REACH (varlength) TLVs if the TLV length indicates that there is at least a single byte on the wire
* Don't exit just because an NSAP had a length of 0 or a too-long length;guy2005-04-251-2/+10
| | | | | | just report it as an illegal length. Check for some zero-length or too-short TLVs not already checked for.
* refactored ip_print() so that chained header parser (ESP/AH) canmcr2005-04-061-2/+10
| | | | more easily call the inner parts.
* only attempt to print non-header data if there is something to printhannes2005-04-021-4/+5
|
* print the optional (payload) CLNP header in ERPDUshannes2005-03-221-3/+3
|
* add support for the CLNP 'Reason for Discard' Optionhannes2005-03-211-3/+89
|
* - bugfix: start CLNP checksumming at the packet starthannes2005-03-091-6/+13
| | | | - display the reqesting packet header of the Echo response payload
* code cleanup:hannes2005-03-081-56/+23
| | | | | | | | - 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
* CLNP updates:hannes2005-03-071-11/+120
| | | | | | -add segment header support -add options processing -add some basic header sanity checking
* -export the q933 printer and call it from the OSI printerhannes2005-01-271-8/+17
| | | | | | | -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
* display cosmetics: fix the darn comma setting for all combination of v and e ↵hannes2005-01-251-15/+19
| | | | flag
* add PPP to the ISO nlpid printerhannes2004-10-191-1/+5
|
* -extend the OSI NLPID dissector for printing IP and IP6 packetshannes2004-10-181-18/+40
| | | | | | | - 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
* -move the nlpid definitions and tokens to a dedicated file(s)hannes2004-10-071-21/+5
| | | | -make use of it in the ISO, Frame-relay and CDP printers
* bugfix: changed format for diffserv-TE subTLVs, add tok2str() for decoding ↵hannes2004-09-151-9/+8
| | | | BC models
* bugfix: print 7 (node-id) bytes rather than 6 (system-id) for CSNPs in non ↵hannes2004-09-091-3/+3
| | | | verbose mode
* Add length checks.guy2004-03-241-26/+40
|
* display cosmetics: hide OSI indication under the eflaghannes2004-03-181-2/+2
|
* copy & paste error: replace priority_level by bandwidth_constrainthannes2004-01-271-4/+4
|
* add support for Difserv TE per draft-ietf-tewg-diff-te-proto-06hannes2004-01-271-1/+18
|
* update references for the experimental TLV, remove ES-IS specific #defines ↵hannes2004-01-021-3/+2
| | | | from the IS-IS tok table
* - initial checkin for OSI CLNP supporthannes2003-12-221-7/+121
| | | | | | (TODO header sanity and lots of boundary checking) - verify NLPID for ES-IS - remove bogon TLV #1 from ES-IS printer
* rework the print_esis() printerhannes2003-12-201-404/+475
| | | | | | | update option processing add ES-IS ESH printing change the IS-IS related TLV #defines into ISIS_TLV_ change the IS-IS related SUBTLV #defines into ISIS_SUBTLV_
* Get rid of a set-but-not-used variable.guy2003-12-151-3/+1
|
* When checking to make sure the LSP ID is all present, check the lastguy2003-12-151-2/+2
| | | | byte of the LSP ID, not the first byte past the LSP ID.
* add Vendor OUI resolutionhannes2003-11-301-3/+7
|
* add Management Prefix Color subTLV, plus some references to Internet Draftshannes2003-11-261-3/+6
|