aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/catapult_dct2000.c
AgeCommit message (Collapse)AuthorFilesLines
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
2008-02-03More rewrite of prohibited APIs (sprintf, strcpy, strcat).Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=24258
2007-11-16Some comments and formatting.Martin Mathieson1-14/+51
svn path=/trunk/; revision=23473
2007-09-25Fix whitespace of newly added lines to match rest of fileBill Meier1-5/+5
svn path=/trunk/; revision=22965
2007-09-25Add error checking for fwrites; replacement for one of patches provided in ↵Bill Meier1-12/+38
bug #1864 svn path=/trunk/; revision=22964
2007-07-31Add "igmp" -> "ip" mapping.Martin Mathieson1-1/+2
svn path=/trunk/; revision=22430
2007-07-24More space needed for wimax frames.Martin Mathieson1-1/+1
svn path=/trunk/; revision=22395
2007-07-14Fix another cast of the argument to a ctype.h macro.Guy Harris1-1/+1
svn path=/trunk/; revision=22305
2007-07-13Fix more ctype.h calls - casting to "int" suppresses the warning, butGuy Harris1-10/+10
doesn't fix the problem, as the sign extension is still done; you have to cast to "guchar". svn path=/trunk/; revision=22304
2007-07-13"isdigit()" doesn't need to be cast to "int".Guy Harris1-1/+1
Its argument, however, needs to be cast to "guchar", so that if the high-order bit is set, it doesn't get sign-extended. svn path=/trunk/; revision=22303
2007-07-13Worked out properly the silly way aal header is encoded!Martin Mathieson1-8/+6
svn path=/trunk/; revision=22300
2007-06-29- Map gre -> IPMartin Mathieson1-0/+1
- Change a value string value to help an easily-frightened colleague svn path=/trunk/; revision=22224
2007-06-21Don't create & leak a hash table during unsuccessful open()Martin Mathieson1-16/+15
svn path=/trunk/; revision=22150
2007-05-29Work with isdn_l2.Martin Mathieson1-7/+13
svn path=/trunk/; revision=21986
2007-05-29Print a gint64 the right way.Guy Harris1-1/+2
svn path=/trunk/; revision=21976
2007-05-29From David Howells :Sebastien Tandel1-2/+2
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat 4.1.2-8). The failures fall into two categories: (1) Casts between pointers and 32-bit integers without an intermediary cast via 'long' or 'unsigned long'. This results in a compiler warning complaining about casts between a pointer and an integer of a different size. (2) Passing values to "%lld" or similar printf-style format options that the compiler thinks are a different size. Such values need to be cast to 'long long' or 'unsigned long long'. svn path=/trunk/; revision=21975
2007-05-21Fix some (incorrect but unforseeable)Jörg Mayer1-1/+1
"might be used uninitialized" warnings. svn path=/trunk/; revision=21862
2007-05-10mipv6 -> ipMartin Mathieson1-1/+3
svn path=/trunk/; revision=21741