aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/catapult_dct2000.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-15Add support for reading/writing 'sprint' lines from test scripts.Martin Mathieson1-13/+30
svn path=/trunk/; revision=47686
2012-12-28Always check the return value of read_new_line().Guy Harris1-20/+28
svn path=/trunk/; revision=46821
2012-12-21Squelch implicit 64-bit-to-32-bit conversion warnings.Guy Harris1-2/+2
svn path=/trunk/; revision=46650
2012-10-16Add wtap_pseudo_header union to wtap_pkthdr structure.Jakub Zawadzki1-5/+5
Use pkthdr instead of pseudo_header as argument for dissecting. svn path=/trunk/; revision=45601
2012-09-24Some improvements after looking at profile of large reordercap run.Martin Mathieson1-18/+89
- speed up writing timestamp by avoiding g_snprintf() - avoid call to strstr() - don't use g_snprintf() for writing a liternal string - avoid atio() for single-digit strings - avoid some strcmp() calls where the release number at the end wasn't important svn path=/trunk/; revision=45091
2012-09-20Shouldn't set the time in seek_read() after all. At least the pcapMartin Mathieson1-8/+0
support doesn't. svn path=/trunk/; revision=45022
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45015
2012-09-19Fix a couple of dumping issues seen while working on 'reorder'.Martin Mathieson1-4/+21
svn path=/trunk/; revision=45003
2012-08-21Avoid some calls to strlen() by remembering return value fromMartin Mathieson1-10/+11
g_strlcpy(). svn path=/trunk/; revision=44608
2012-08-11Ignore '\r' which will be found at the end of a line when a windows hostMartin Mathieson1-27/+32
writes a log. Also re-line-up args under function definitions. svn path=/trunk/; revision=44444
2012-07-26Fix another uninitialised bug (the same bug in _read() I fixedMartin Mathieson1-1/+1
yesterday, also in _seek_read()). Spotted by running 'valgrind-wireshark.sh -2'. svn path=/trunk/; revision=44043
2012-07-25Initialize a byte to avoid more valgrind warnings.Martin Mathieson1-1/+1
svn path=/trunk/; revision=44019
2012-07-25Don't write one payload byte too many. Spotted by valgrind!Martin Mathieson1-2/+2
svn path=/trunk/; revision=44016
2012-07-11memcpy() is quite a bit faster than g_strlcpy()!Martin Mathieson1-3/+2
svn path=/trunk/; revision=43675
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-02Try to squelch warningsAnders Broman1-2/+2
svn path=/trunk/; revision=42998
2012-05-16Fix a bunch of uninitialized variables found by Coverity Scan. CIDsGerald Combs1-3/+2
702403, 702404, 702405, 702406, 702407, 702408, 702409, 702410, 702411, and 702412. svn path=/trunk/; revision=42658
2012-05-04file_seek() used to be a wrapper around fseek() or gzseek(), both ofGuy Harris1-6/+3
which could use lseek() and were thus expensive due to system call overhead. To avoid making a system call for every packet on a sequential read, we maintained a data_offset field in the wtap structure for sequential reads. It's now a routine that just returns information from the FILE_T data structure, so it's cheap. Use it, rather than maintaining the data_offset field. Readers for some file formats need to maintain file offset themselves; have them do so in their private data structures. svn path=/trunk/; revision=42423
2012-04-15Fix a typo (just clearing my client out before I start doing diffs).Martin Mathieson1-1/+1
svn path=/trunk/; revision=42077
2012-04-03Set up table to help with ascii-hex -> hex conversion in advance toMartin Mathieson1-18/+26
avoid testing static for every conversion. svn path=/trunk/; revision=41900
2012-02-25Add a presence flag field to the packet information structure filled inGuy Harris1-0/+2
by Wiretap, to indicate whether certain fields in that structure actually have data in them. Use the "time stamp present" flag to omit showing time stamp information for packets (and "packets") that don't have time stamps; don't bother working very hard to "fake" a time stamp for data files. Use the "interface ID present" flag to omit the interface ID for packets that don't have an interface ID. We don't use the "captured length, separate from packet length, present" flag to omit the captured length; that flag might be present but equal to the packet length, and if you want to know if a packet was cut short by a snapshot length, comparing the values would be the way to do that. More work is needed to have wiretap/pcapng.c properly report the flags, e.g. reporting no time stamp being present for a Simple Packet Block. svn path=/trunk/; revision=41185
2011-12-27Tighten up format string used for date/time parse;Bill Meier1-21/+41
Use 'static' in function definitions to match function declarations; Do minor reformatting. svn path=/trunk/; revision=40305
2011-09-13Skip extra info if present (IP with LTE PDCP threading info).Martin Mathieson1-2/+12
svn path=/trunk/; revision=38983
2011-09-01Use guint8 rather than guchar for raw octets and pointers to arrays ofGuy Harris1-16/+16
same. Add to wiretap/pcap-common.c a routine to fill in the pseudo-header for ATM (by looking at the VPI, VCI, and packet data, and guessing) and Ethernet (setting the FCS length appropriately). Use it for both pcap and pcap-ng files. svn path=/trunk/; revision=38840
2011-07-12Speed up (slightly) reading of long text lines.Martin Mathieson1-10/+33
svn path=/trunk/; revision=37989
2011-07-08Change the way we scan past characters before the direction indicator.Martin Mathieson1-6/+9
svn path=/trunk/; revision=37940
2011-04-12"This file format can't be written to a pipe" and "this file formatGuy Harris1-1/+1
can't be saved in compress form" are both equivalent to "this file file format requires seeking when writing it". Change the "can compress" Boolean in the file format table to "writing requires seeking", give all the entries the proper value, and do the checks for attempting to write a file format to a pipe or write it in compressed format to common code. This means we don't need to pass the "can't seek" flag to the dump open routines. svn path=/trunk/; revision=36575
2011-03-16Avoid having large buffers on the stack (as noted in VS Code Analyzer warnings).Martin Mathieson1-3/+3
svn path=/trunk/; revision=36202
2011-02-16Fix errors found by the Visual C++ analyzer.Gerald Combs1-1/+1
svn path=/trunk/; revision=35954
2011-01-05Support FP_R8 over ATM, plus a couple of other tidying-ups.Martin Mathieson1-8/+7
svn path=/trunk/; revision=35373
2010-10-02Make it a bit clearer what's going on - ASCII '0' has the decimal valueGuy Harris1-1/+1
48, and that's converting '0'-'9' to 0-9. svn path=/trunk/; revision=34326
2010-07-16It makes (slightly) more sense for comments to be "sent" by the context than ↵Martin Mathieson1-1/+1
"received". svn path=/trunk/; revision=33552
2010-06-06Don't use fwrite directly when writing a dump file; call it throughGuy Harris1-30/+16
wtap_dump_file_write(). Replace various wrappers around fwrite() with wtap_dump_file_write(), or at least make the wrappers call wtap_dump_file_write(). svn path=/trunk/; revision=33116
2010-02-26Move the definitions of all the private data structures out ofGuy Harris1-30/+22
wtap-int.h, and change the unions of pointers to those private data structures into just void *'s. Have the generic wtap close routine free up the private data, rather than the type-specific close routine, just as the wtap_dumper close routine does for its private data. Get rid of close routines that don't do anything any more. svn path=/trunk/; revision=32015
2009-11-09Removed an unused assignment.Stig Bjørlykke1-2/+1
svn path=/trunk/; revision=30892
2009-10-26Note in comments that the dct2000_file_externals_t structure is used forGuy Harris1-6/+13
more than just dumping, indicate what stuff is used for dumping, and note that it probably shouldn't be used for that (one should not have to have a Catapult 2000 input file in order to write a Catapult 2000 output file). svn path=/trunk/; revision=30719
2009-10-26Try to fix win64 buildbot. Both fgets() and gzgets() take an int for the ↵Martin Mathieson1-1/+1
length. svn path=/trunk/; revision=30709
2009-10-26Get rid of capture.catapult_dct2000, move start time of capture into ↵Martin Mathieson1-34/+31
file_externals instead. Thanks Guy for helping to simplify this file! svn path=/trunk/; revision=30708
2009-10-26Global variables considered harmful - we don't want to rule out twoGuy Harris1-98/+101
threads reading from two different wtap_t's in different threads. file_externals_table considered unnecessary - a wtap_t has a member specifically intended to point to private data. Clean up indentation. svn path=/trunk/; revision=30707
2009-10-26Formatting changes only.Martin Mathieson1-240/+135
svn path=/trunk/; revision=30704
2009-10-26Fix:Anders Broman1-4/+4
Error: Found prohibited APIs in catapult_dct2000.c: sprintf,strcpy svn path=/trunk/; revision=30701
2009-10-26Add support for showing/filtering/resaving logged LTE strings.Martin Mathieson1-140/+218
svn path=/trunk/; revision=30700
2009-03-07Squelch warnings - none of those strings will be so long that theGuy Harris1-6/+6
difference between an int and a gsize/size_t matters. svn path=/trunk/; revision=27637
2009-02-27Some context names now do include '-', so allow it.Martin Mathieson1-1/+1
svn path=/trunk/; revision=27562
2009-01-08Fix a bug where a space character wasn't being written back to save files.Martin Mathieson1-3/+6
svn path=/trunk/; revision=27198
2008-10-13Allow really long lines.Martin Mathieson1-1/+1
svn path=/trunk/; revision=26429
2008-05-27Fix subtle bugs introduced by recent change to safer APIs.Martin Mathieson1-2/+2
I was counting the length without the terminating NULL, and didn't want one to be written to the string and copied into the file. svn path=/trunk/; revision=25383
2008-05-20Enable FP R7 support.Martin Mathieson1-1/+2
This commit adds a header file needed by my PDCP dissector. (not yet ready to be added). svn path=/trunk/; revision=25326
2008-05-08Use g_strlcpy() rather than strcpy(), strncpy().Martin Mathieson1-14/+15
svn path=/trunk/; revision=25256
2008-04-04Allocate size of data pointed to (64 bits) rather than size of pointer to ↵Martin Mathieson1-1/+1
data... svn path=/trunk/; revision=24765