summaryrefslogtreecommitdiff
path: root/print-ldp.c
Commit message (Collapse)AuthorAgeFilesLines
* clean K&R style up in function declarations a bitDenis Ovsienko2015-03-051-6/+6
| | | | The function body should have its opening brace on the next line.
* Strengthen various bounds etc. checks.Guy Harris2014-10-221-17/+42
| | | | | | | | Add more checks, make some checks do a better job of handling too-short lengths, Also, rename ldp_msg_print() to ldp_pdu_print(), as it prints a single PDU, not a single message within a PDU.
* u_intN_t is dead, long live uintN_t.Guy Harris2014-04-231-9/+9
| | | | | | | | | And, as we require at least autoconf 2.61, and as autoconf 2.61 and later have AC_TYPE_UINTn_T and AC_TYPE_INTn_T macros, we use them to define the uintN_t and intN_t macros if the system doesn't define them for us. This lets us get rid of bitypes.h as well.
* Netdissectify the to-name resolution routines.Guy Harris2014-04-041-5/+5
| | | | | | | | Have them take a netdissect_options * argument, and get the "no name resolution" flag from it. Move the declaration of dnaddr_string to addrtoname.h, along with the other XXX-to-string routines.
* NDOize safeputs() and safeputchar()Denis Ovsienko2014-04-011-1/+1
|
* NDOize BGP decoderDenis Ovsienko2014-03-261-2/+2
|
* NDOize 7 bigger decodersDenis Ovsienko2014-03-191-82/+80
| | | | | This change converts IGMP, IPv6 mobility options, LDP, Lightweight Access Point, PGM, PPTP and RIP decoders.
* dismiss decode_prefix.hDenis Ovsienko2014-02-261-1/+0
| | | | | The only purpose of that header file was to provide two declarations that now fit interface.h same well.
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-5/+0
| | | | | | Remove lots of $Header's and a few $Id's that all belong to the former CVS repository of tcpdump itself. These keywords have been frozen since the migration to git in late 2008.
* ndo-ize print-ascii: hex_print_with_offset()Michael Richardson2014-01-011-4/+10
|
* whitespace changesMichael Richardson2014-01-011-12/+12
|
* 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