Commit Graph

24 Commits

Author SHA1 Message Date
Hannes Gredler
ff8464bffd zero change: update Hannes Gredler's email 2017-07-28 17:44:12 +02:00
Guy Harris
c6415c9854 Fix bugs, add checks.
Add multiple bounds and length checks to make sure we don't run past the
end of the packet.

Don't check the length of "end of TLV" indicators; 802.3 says it should
be ignored.

The Event Notification OAMPDU has a sequence number; report it.
2017-01-18 09:16:40 +01:00
Francois-Xavier Le Bail
ca54d72376 Declare some variables as static 2016-09-11 21:45:26 +02:00
Francois-Xavier Le Bail
11d3a01319 Move the printer summaries from INSTALL.txt to each printer
with the tag '\summary:' for greping.
Remark: Currently some printers have no summary line.

Moreover:
Summarize all printers with a single line in INSTALL.txt
2016-08-14 17:03:43 +02:00
Francois-Xavier Le Bail
99c91c3aec Rename 'tcpdump-stdinc.h' to 'netdissect-stdinc.h'
Get the full log via: git log --follow netdissect-stdinc.h
2015-09-10 08:50:40 +02:00
Francois-Xavier Le Bail
c1c3c77463 Printers must include 'netdissect.h', not 'interface.h' 2015-09-05 23:35:58 +02:00
Guy Harris
69cb46af91 Fix a bunch of de-constifications. 2015-04-26 17:24:42 -07:00
Denis Ovsienko
38700c7f24 dismiss NETDISSECT_REWORKED macro
The purpose of this macro was to enable the file-by-file switch to NDO,
after which only tcpdump.c had a use of it and the definitions guarded
by it. Update tcpdump.c not to require them any more and dismiss the
unused definitions.
2015-03-22 10:06:15 +00:00
Denis Ovsienko
60a835d80f clean K&R style up in function declarations a bit
The function body should have its opening brace on the next line.
2015-03-05 10:35:03 +00:00
Guy Harris
ed85e20e4d u_intN_t is dead, long live uintN_t.
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.
2014-04-23 00:20:40 -07:00
Guy Harris
1cde6435df Netdissectify the to-name resolution routines.
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.
2014-04-04 00:43:46 -07:00
Denis Ovsienko
5663cdab5e NDOize OpenFlow, IEEE slow and telnet decoders 2014-03-17 19:18:47 +04:00
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
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
e928e06bc0 add support for 802.3ah loopback ctrl msg 2006-10-12 05:44:33 +00:00
guy
9bdbb51f41 Fix some "unsigned int" vs. "size_t" issues (they're not necessarily the
same).
2006-08-19 06:59:17 +00:00
hannes
939a69c898 bugfixes: change oam_pdu_config to 16 bits as per the spec and clean the mixup between mux-action state and parse-action state 2006-06-23 01:53:28 +00:00
hannes
38a040b901 continue work on the 802.3AH printer:
-add support for link-event TLVs
  -clean up some confusion between shared and unshared
   TLV formats.
  -do per-TLV hexdumping
2006-05-18 08:23:26 +00:00
hannes
a333cd3aaf fix an infinite loop while processing OAM info PDUs 2006-05-16 21:57:26 +00:00
hannes
194e9d1e35 first cut of Ethernet 802.3AH OAM TLV parser code:
-add support for Code Information TLV
  FIXME boundary checks
2006-05-15 02:02:53 +00:00
hannes
c0de704a53 add basic support for Ethernet OAM Frames as per 802.3ah 2006-02-16 16:42:44 +00:00
hannes
c56e09a204 add support for the IEEE slow protocols LACP, MARKER as per 802.3ad 2005-07-10 14:41:34 +00:00