summaryrefslogtreecommitdiff
path: root/print-ldp.c
Commit message (Collapse)AuthorAgeFilesLines
* Add some attribute/TLV length checks.Guy Harris2012-06-081-17/+70
| | | | | | | | | | | | | Make sure we don't run past the end of a BGP attribute or LDP TLV when dissecting the attribute/TLV. Make some of the code do a bit more of a "step the pointer through the data"-style dissection; that was done while debugging the changes in question. It also fixes up some code to not check for more data than should actually be there. Update references to RFC 4906 from the draft, and note that RFC 4447 replaces it.
* Fix a bunch of "sizeof(sizeof(XXX))".Sascha Wildner2011-12-071-1/+1
| | | | | | | | In some places, there was one too many levels of sizeof() - sizeof(sizeof(XXX)) is sizeof(size_t), but we wanted the size of type XXX. Reviewed-By: Guy Harris <guy@alum.mit.edu>
* remove redundant TRUE|FALSE defshannes2006-06-231-4/+1
|
* add support for the MTU TLV as per rfc3988hannes2006-03-281-1/+7
|
* move AF specific stuff to dedicated fileshannes2006-02-211-16/+16
|
* courtesy rick cheng (rcheng AT juniper dot net):hannes2006-02-031-6/+11
| | | | | | improve code readability: - LDP_TLV_ADDRESS_LIST printer - BFD_DISCRIMINATOR printer
* enable support for Address-Withdraw and Label-Withdraw Msgs, fix typoshannes2006-02-011-5/+5
|
* code cosmetics:hannes2005-07-111-3/+3
| | | | | | | 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 some additional length checking.guy2005-06-161-1/+3
|
* add boundary, infinite loop checkshannes2005-05-031-1/+14
|
* Change white space to match the version in the x.9 branch.guy2005-04-271-2/+2
|
* additional check against zero length messageshannes2005-04-271-1/+4
|
* don't call bittok2str() twice in a printf() statement, fix typo (cc_values ↵hannes2005-04-191-4/+7
| | | | vs cv_values)
* -bugfix: attempt to print ldp messages as long there is something on the wirehannes2005-04-191-12/+98
| | | | -improve support (add interface paramter TLV parser) for the Martini FEC TLV
* import latest definition for Pseudowires from draft-ietf-pwe3-iana-allocation-04hannes2004-06-151-29/+4
| | | | | | and put it to its new home l2vpn.{c|h} rework bgp, ldp, lsp-ping to use the common l2vpn_encaps tokenlist update FILES list to acommodate the recent file additions
* From Steiner Haug: handle LDP-over-TCP, and do more complete LDPguy2004-05-271-16/+167
| | | | decoding.
* Have the configure script arrange that the Makefile define _U_guy2003-11-161-4/+4
| | | | | | | | | | appropriately, and that GNUmakefile and the MSVC++ project file define it apppriately, as we do with libpcap, rather than defining it in "interface.h". Undo the rcsid-shuffling and addition of extra #includes, as we no longer need to arrange that "interface.h" be included before using _U_ in an RCS ID or copyright.
* From Neil Spring:guy2003-11-151-4/+4
| | | | | | | | | | | use "_U_" in the definitions of "rcsid[]", to eliminate complaints about those variables being unused; move the definitions after the include of "interface.h", or add an include of "interface.h", so that "_U_" is defined. Include "config.h" before including "tcpdump-stdinc.h" in "missing/datalinks.c".
* fixed typos, fixed bug in unknown message processinghannes2002-12-141-7/+7
|
* added ldp_tlv_print() routine; support for Hello Message; support for common ↵hannes2002-12-141-29/+113
| | | | hello,IPv4/v6 transport address and Config Sequence Number TLVs
* cleaned up confusion between LDP Message TLVs and subTLVs which live inside ↵hannes2002-12-131-55/+146
| | | | those
* initial checkin for a Label Distribution Protocol dissectorhannes2002-12-131-0/+207