Commit Graph

25 Commits

Author SHA1 Message Date
Denis Ovsienko
fe3253b9b8 remove tcpdump's own CVS keywords
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.
2014-01-03 00:59:08 +04:00
Michael Richardson
ac910c086e ndo-ize print-ascii: hex_print_with_offset() 2014-01-01 21:31:18 -05:00
Michael Richardson
a97fb2f3ae whitespace changes 2014-01-01 21:31:18 -05:00
Guy Harris
26687fd6b9 Add some attribute/TLV length checks.
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.
2012-06-08 19:07:20 -07:00
Sascha Wildner
684955d586 Fix a bunch of "sizeof(sizeof(XXX))".
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>
2011-12-07 10:42:12 -08:00
hannes
617f68b272 remove redundant TRUE|FALSE defs 2006-06-23 02:03:09 +00:00
hannes
95d8b612de add support for the MTU TLV as per rfc3988 2006-03-28 07:06:21 +00:00
hannes
50b4920bc5 move AF specific stuff to dedicated files 2006-02-21 10:27:40 +00:00
hannes
6b3e20d291 courtesy rick cheng (rcheng AT juniper dot net):
improve code readability:
  - LDP_TLV_ADDRESS_LIST printer
  - BFD_DISCRIMINATOR printer
2006-02-03 08:32:39 +00:00
hannes
cae86031a3 enable support for Address-Withdraw and Label-Withdraw Msgs, fix typos 2006-02-01 14:56:25 +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
guy
f123049cd0 Add some additional length checking. 2005-06-16 01:10:21 +00:00
hannes
1ee09c1510 add boundary, infinite loop checks 2005-05-03 08:21:09 +00:00
guy
df8ee09035 Change white space to match the version in the x.9 branch. 2005-04-27 19:16:21 +00:00
hannes
2baf228963 additional check against zero length messages 2005-04-27 18:55:51 +00:00
hannes
9e20fcfb91 don't call bittok2str() twice in a printf() statement, fix typo (cc_values vs cv_values) 2005-04-19 20:17:49 +00:00
hannes
3be3299894 -bugfix: attempt to print ldp messages as long there is something on the wire
-improve support (add interface paramter TLV parser) for the Martini FEC TLV
2005-04-19 19:41:02 +00:00
hannes
9974f43f2f import latest definition for Pseudowires from draft-ietf-pwe3-iana-allocation-04
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
2004-06-15 09:42:40 +00:00
guy
f5ad5cff18 From Steiner Haug: handle LDP-over-TCP, and do more complete LDP
decoding.
2004-05-27 21:20:49 +00:00
guy
bbc1cfa669 Have the configure script arrange that the Makefile define _U_
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.
2003-11-16 09:36:07 +00:00
guy
3824a6c041 From Neil Spring:
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".
2003-11-15 00:39:12 +00:00
hannes
36800730ae fixed typos, fixed bug in unknown message processing 2002-12-14 13:50:16 +00:00
hannes
a10d9485a6 added ldp_tlv_print() routine; support for Hello Message; support for common hello,IPv4/v6 transport address and Config Sequence Number TLVs 2002-12-14 13:27:56 +00:00
hannes
40cb269d42 cleaned up confusion between LDP Message TLVs and subTLVs which live inside those 2002-12-13 14:29:24 +00:00
hannes
8df276dff3 initial checkin for a Label Distribution Protocol dissector 2002-12-13 00:40:34 +00:00