aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
Commit message (Collapse)AuthorAgeFilesLines
* From Michael Tuexen:Guy Harris2002-04-151-6/+22
| | | | | | | | - support for current SCTP checksum - fix a bug for the -S parameter - fix a bug in the displayed output for the TSN and PPI. svn path=/trunk/; revision=5169
* From Michael Tuexen:Guy Harris2002-04-131-8/+44
| | | | | | | | | | | The -S option has been changed such that the payload protocol identifier can be specified instead of the verification tag. The error messages for -s -S have been corrected. Update the text2pcap man page to reflect the "-S" change. svn path=/trunk/; revision=5150
* Try defining just _USE_XOPEN and see if that gets "strptime()" declaredGuy Harris2002-01-301-16/+1
| | | | | | on most platforms; it works on Solaris, at least. svn path=/trunk/; revision=4630
* Alas, on Solaris, defining _XOPEN_SOURCE causes some things not in theGuy Harris2002-01-301-1/+13
| | | | | | | | | | X/Open specs *not* to be defined, so we also have to define __EXTENSIONS__. XXX - can we just define __USE_XOPEN, and not define _XOPEN_SOURCE? Is that sufficient to get "strptime()" declared on all platforms? svn path=/trunk/; revision=4629
* Use:Gilbert Ramirez2002-01-291-1/+12
| | | | | | | | | | | | | #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 500 #endif #define __USE_XOPEN #include <time.h> to get strptime() declared in time.h on various systems. I hope this helps more than it hurts. svn path=/trunk/; revision=4624
* From Hamish Moffatt: set the year to 1970 before parsing the date, inGuy Harris2002-01-231-2/+14
| | | | | | | | | case there's no date specified. Set the day-of-month to 1, as well, and set the "is DST" flag to "not known", i.e. -1. svn path=/trunk/; revision=4602
* From Michael Tuexen:Guy Harris2002-01-201-14/+167
| | | | | | | | | | put a CRC32C checksum into the header of SCTP packets; add a new "-S" option that is similar to "-s" but that also includes the DATA chunk header, for input files that contain only SCTP payloads. svn path=/trunk/; revision=4580
* SCTP support in text2pcap, and fix to usage message for "-u", fromGuy Harris2002-01-161-28/+92
| | | | | | | | Michael Tuexen. Documentation of SCTP support in text2pcap, from me. svn path=/trunk/; revision=4553
* Fix the usage message and man page for text2pcap.Guy Harris2001-11-241-10/+16
| | | | svn path=/trunk/; revision=4254
* Support for time stamping packets in text2pcap, from Gordon McKinney.Guy Harris2001-11-241-7/+150
| | | | svn path=/trunk/; revision=4252
* Fix the return value of a routine.Guy Harris2001-11-241-2/+2
| | | | svn path=/trunk/; revision=4251
* If the expected "next offset" doesn't match the offset we read, it mayGuy Harris2001-11-241-18/+36
| | | | | | | | | | | | | | | merely mean that we mistakenly treated stuff from the text-dump part of the file we're reading as if it were hex byte data (e.g., if the first non-white-space part of the text dump was a 2-digit hex number). If the offset we read is less than the expected next offset, assume that's the problem, and throw away enough extra bytes to make the offset we read the expected next offset. "getopt()" will never, for any option that the "getopt()" string says takes an argument, leave "optarg" null; if no argument was specified, it'll return an error, so there's no need to check for a null "optarg". svn path=/trunk/; revision=4250
* "getopt()" doesn't support multiple option arguments to a flag; haveGuy Harris2001-08-011-3/+12
| | | | | | "-u" take a single argument with two port numbers separated by a comma. svn path=/trunk/; revision=3802
* From Joerg Mayer:Guy Harris2001-07-131-2/+2
| | | | | | | | | | | | | | | * gcc 3.0 warning fixes: - text2pcap.c: The number of characters to scan should probably not be 0 - wiretap/csids.c: using preincrement on a variable used on both sides of an assignment might be undefined by the C99(?) standard * turn on additional warnings for epan and wiretap too - epan/configure.in - wiretap/configure.in * Fix some warnings (missing includes, signed/unsigned, missing initializers) found by turning on the warnings - all other files :-) svn path=/trunk/; revision=3709
* Build text2pcap on Windows.Guy Harris2001-05-211-31/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix text2pcap.c so that it can be compiled with Microsoft Visual C++ 6.0: protect some includes with #ifdefs, as not all the header files in question exist in the MSVC++ build environment; include <winsock.h> if we have it, to declare "ntohs()" and the like; include "getopt.h" if we need it, to declare stuff for "getopt()"; include "config.h" if we have it, so we know whether the header files in question exist or are needed; rename "BYTE" to "READ_BYTE", as <winsock.h> defines BYTE as well, and that definition causes a conflict; get rid of references to "__FUNCTION__", as MSVC++ doesn't define it (I suspect at least some UNIX compilers don't define it, either). svn path=/trunk/; revision=3428
* Added 'text2pcap', a utility to convert text hexdumps into pcapAshok Narayanan2001-05-161-0/+741
files. See text2pcap.1 (built from doc/text2pcap.pod) for details. Changed 'tethereal -x' output to match hex dump format of text2pcap, Ethereal and others. svn path=/trunk/; revision=3421