Commit Graph

74 Commits

Author SHA1 Message Date
Herwin Weststrate
df511af670 Fix tab/spaces in GNUmakefile of win32 2018-10-03 20:23:20 +02:00
Francois-Xavier Le Bail
34b59a8011 Remove the no more used gmt2local() function 2018-08-07 20:27:46 +02:00
Francois-Xavier Le Bail
38e32cdf14 Remove trailing spaces/tabs 2018-05-25 09:56:04 +02:00
Guy Harris
0d9efb9596 On Windows, we have our own ether_ntohost(); declare it.
Move the source to our own ether_ntohost() to the "missing" directory,
just as we do in libpcap for the Windows snprintf() wrapper around
_snprintf().

Add a header file for it, and include it in both the wrapper and in
addrtoname.c on Windows.
2018-01-23 09:28:44 -08:00
Guy Harris
fb2479d733 Always include <config.h> rather than "config.h".
This can prevent bizarre failures if, for example, you've done a
configuration in the top-level source directory, leaving behind one
config.h file, and then do an out-of-tree build in another directory,
with different configuration options.  This way, we always pick up the
same config.h, in the build directory.
2018-01-21 12:27:28 -08:00
Guy Harris
e9306685c6 Use MAC_ADDR_LEN, and don't include ether.h.
We no longer have an ether.h header; the only thing we used from it is
ETHER_ADDR_LEN, and netdissect.h defines MAC_ADDR_LEN, so use that
instead.
2017-12-13 09:44:09 -08:00
Guy Harris
1277da2b7f Update Visual Studio files.
Update the list of source files, and the command-line flags (for
example, don't define INET6, as we no longer check it, or WIN32, as we
no longer check it - we check the standard _WIN32 instead).
2015-09-18 12:40:03 -07:00
Guy Harris
4c19cf87e5 Call pcap_wsockinit(), not wsockinit(), and print a message if it fails.
Get rid of w32_fzs.h while we're at it.
2015-09-11 11:09:35 -07:00
Francois-Xavier Le Bail
f5fe14663d libnetdissect code must include 'netdissect.h', not 'interface.h'
Moreover:
Remove netdissect.h include in interface.h
Move thiszone declaration in netdissect.h
Update a comment
2015-09-11 13:22:56 +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
Guy Harris
3dd9240cc3 Do case-insensitive comparisons assuming ASCII strings.
Do the case-insensitive comparisons in a locale-independent fashion that
only maps ASCII letters, in the standard English-language fashion; that
way, we don't get bitten by, for example, Turkish having separate "i
with dot" and "i without dot" letters, with lower-case "i with dot" being
mapped to upper-case "I with dot" rather than being mapped to "I".
2015-06-11 15:47:44 -07:00
Gisle Vanem
4350b85ea0 Update WinDump.dsp
Update for using win32/Src/ether_ntohost.c. (Untested .dsp file)
2014-05-02 06:58:18 -07:00
Gisle Vanem
97afc73f8d Update WinDump.vcproj
Update for using ./win32/Src/ether_ntohost.c. Hope the .vcproj is correct (untested).
2014-05-02 06:53:45 -07:00
Gisle Vanem
9f953f92bf Create ether_ntohost.c
It's a major hassle to use 'pcap_next_etherent()' in Windump. So simply add a local 'ether_ntohost()' here.
2014-05-02 06:45:18 -07:00
Gisle Vanem
983c6f368f Delete errno.h
Don't let this local errno.h mess with the system's <errno.h>. Ref. inclusion of <errno.h> in tcpdump-stdinc.h.
2014-05-02 04:32:18 -07:00
Guy Harris
040c96487c It's getopt_long.c, not getopt.c 2014-05-01 09:37:10 -07:00
Guy Harris
6b9e3a5a85 Use getopt_long().
This requires us to check for it in the configure script and to include
a version of getopt_long() for the benefit of platforms that don't have
it; we pick up the FreeBSD version and tweak it a bit (eliminating some
features specific to the BSD version of getopt_long(), as we want to use
it only in a fashion portable to Linux/*BSD/Solaris/etc.)

We also get rid of the version of getopt() we supply for Windows in
favor of the version of getopt_long() we provide.
2014-04-30 15:28:06 -07:00
Guy Harris
dbddfda2c8 More getting rid of old u_intN_t. 2014-04-23 00:45:13 -07:00
Michael Richardson
af93fa5461 rename file to single case version 2013-02-22 11:05:19 -05:00
Hannes Gredler
917f5f341f add support for the RPKI/Router Protocol as per draft-ietf-sidr-rpki-rtr-12 2011-06-16 17:17:20 +02:00
Guy Harris
53d7d1c12b Get rid of another unused win32/Include header. 2010-08-23 03:38:32 -07:00
Guy Harris
36791a862e Get rid of some more include files we no longer need.
We have our own copies of those include files, which we use; we haven't
used the system versions for a long time, so we don't need to drag them
along for compiling WinDump.
2010-08-23 03:30:54 -07:00
Guy Harris
6c9745e5cb Clean up handling of tftp.h.
Don't include the win32/Include/Arpa copy in print-udp.c; don't put that
copy into the release tarball; and don't talk about <arpa/tftp.h>, or
work around its deficiencies in some OSes, as we no longer include it,
we include our own tftp.h, which has a th_stuff array in its structure
definition.
2010-08-23 03:22:25 -07:00
Guy Harris
9b2d37151d Don't define any of the SIZEOF_ values. 2010-04-04 13:41:27 -07:00
test2
8781649e5e Added a missing source file to the cygwin makefile. 2010-03-09 12:33:23 -08:00
test2
5b9f86469e Added the Windows VS2005 projects. 2010-03-09 12:31:20 -08:00
guy
1789f57c36 From Andrew Silent: Realtek Remote Control Protocol support (see
OpenRRCP.org.ru for details).
2008-02-06 10:47:53 +00:00
gianluca
9744b475e2 Added a missing file (print-bt.c) to the project. 2007-10-13 00:43:37 +00:00
gianluca
989d961ab8 Fixed a typo (print-udlp.o instead of print-udld.o). 2007-09-13 18:53:07 +00:00
gianluca
8e00cc96e2 Fixed a compilation problem: getnameinfo() was not linked. 2007-09-13 18:49:47 +00:00
gianluca
84d59b1d5b Removed print-pflog.c from the sources. 2007-09-13 18:01:36 +00:00
hannes
e7dc0250ec from Carles Kishimoto <carles.kishimoto@gmail.com>: add support for the SFLOW protocol 2007-08-08 17:20:58 +00:00
hannes
bbb4050969 add basic support for the IEEE Link Discovery Protocol as per 802.1ab 2007-08-03 11:03:19 +00:00
hannes
f89e58426d From Carles Kishimoto <carles.kishimoto@gmail.com>:
add initial support for the Light Weight Access Point Protocol
as per draft-ohara-capwap-lwapp-04
2007-07-24 16:07:29 +00:00
hannes
cb08bf9e3e add basic skeleton for printing olsr packets as per rfc3626
add a line break in verbose mode fro the ip printer.
2007-03-27 10:44:09 +00:00
hannes
9f2e33e713 From From Carles Kishimoto <carles.kishimoto@gmail.com>:
add support for the cisco propriatry 'dynamic trunking protocol'
2007-03-23 08:12:00 +00:00
hannes
61fb61ab08 From Carles Kishimoto <carles.kishimoto@gmail.com>:
add support for the cisco proprietary VTP protocol
2007-03-21 07:35:00 +00:00
hannes
83dc1abf9c From Carles Kishimoto <carles.kishimoto@gmail.com>:
add support for unidirectional link detection as per
http://www.ietf.org/internet-drafts/draft-foschiano-udld-02.txt
2007-03-19 15:14:14 +00:00
hannes
1226a40cb0 add skeleton support for 802.1ag CFM 2006-10-12 10:26:12 +00:00
hannes
b9a93a401e from Carles Kishimoto <Carles.Kishimoto@bsc.es>:
basic support for Ciscos prop. VQP protocol
2006-03-03 22:31:16 +00:00
hannes
50b4920bc5 move AF specific stuff to dedicated files 2006-02-21 10:27:40 +00:00
hannes
0860434f38 add basic support for MPCP 802.3ah frame printer 2006-02-10 04:52:25 +00:00
hannes
f4e5130617 move the crc10 verification to a new file checksum.c (will add other checksumming routines later to this file), init shred checksumming tables with init_checksum(), assume network byte order for tag correlation ID in the ATM OAM cell printer 2006-02-09 20:33:49 +00:00
gianluca
023b119fb3 Added print-dccp.c to the MSVC and Cygnus makefiles. 2006-01-22 19:12:20 +00:00
risso
6c6ae0d48d Added a missing source file (print-slow.c) in the Cygnus and VC6 projects. 2005-07-13 06:25:13 +00:00
risso
8ae98ea6ea Updated a library so that tcpdump links correctly under cygnus. 2005-07-09 21:10:06 +00:00
risso
9044e8997a Defined INET6 in the Windows project to prevent compilation errors of print-dhcp6.c 2005-06-04 22:08:26 +00:00
guy
e0e7bf9965 Update definitions to match libpcap 0.9 as it'd be on Windows. 2005-06-03 22:33:50 +00:00
risso
e60d2e629d Added print-pgm.c to the WinDump gcc project. 2005-05-22 17:12:53 +00:00
risso
5bc50900e3 Added print-pgm.c to the WinDump VC6 project. 2005-05-22 17:09:40 +00:00