Commit Graph

21 Commits

Author SHA1 Message Date
Guy Harris
11f73ad248 Don't require IPv6 library support in order to support IPv6 addresses.
Have our own routines to convert between IPv4/IPv6 addresses and
strings; that helps if, for example, we want to build binary versions of
tcpdump for Windows that can run both on NT 5 (W2K/WXP), which doesn't
have inet_ntop() or inet_pton(), and NT 6 (Vista/7/8/10), which do.  It
also means that we don't require IPv6 library support on UN*X to print
addresses (if somebody wants to build tcpdump for older UN*Xes lacking
IPv6 support in the system library or in add-on libraries).

Get rid of files in the missing directory that we don't need, and
various no-longer-necessary autoconf tests.
2015-09-17 14:56:44 -07: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
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
Francois-Xavier Le Bail
86f3cae06d delete trailing spaces/tabs 2014-05-12 10:20:58 +02: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
64e53f90ca NDOize EAP, IEEE CFM, lwres, SIP & Syslog decoders 2014-04-01 19:46:05 +04:00
Denis Ovsienko
51670d1949 NDOize safeputs() and safeputchar() 2014-04-01 19:46:05 +04:00
Hannes Gredler
ae2020e842 from Swaathi Vetrivel:
update Linktrace Reply Flags as per the latest spec:
IEEE 802.1ag Standard, June 18, 2007. Page 199, Section 21.9.2, table 21-26
2014-03-17 11:38:32 +01: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
Denis Ovsienko
5aed2384cb fix two printf format strings 2013-04-14 18:20:26 -04:00
Guy Harris
4cc68d7f36 Initialize the appropriate member of the msg_ptr union in all case arms
where it's used.
2009-06-09 17:19:33 -07:00
hannes
fd59ca36b1 squelch some signedness compiler warnings 2007-07-24 16:01:42 +00:00
guy
2f7795dba5 From Florent Drouin: don't call ip6addr_string() if IPv4 isn't enabled. 2007-02-01 02:28:38 +00:00
hannes
ec950b64f2 add support for CFM Link-trace msg, Link-trace-Reply msg, Sender-ID tlv, private tlv 2006-10-29 23:10:07 +00:00
hannes
255477bbc9 fix TLV parser, add support for port, interface status TLV 2006-10-20 18:07:55 +00:00
hannes
1226a40cb0 add skeleton support for 802.1ag CFM 2006-10-12 10:26:12 +00:00