aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascend-int.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove some unneeded includes of <sys/time.h>.Guy Harris2015-02-281-4/+0
| | | | | | | Change-Id: I9e4e6efa9f8c7dbff7627f8d5fc3278ab383618d Reviewed-on: https://code.wireshark.org/review/7441 Petri-Dish: Guy Harris <guy@alum.mit.edu> Reviewed-by: Guy Harris <guy@alum.mit.edu>
* Remove all $Id$ from top of fileAlexis La Goutte2014-03-041-2/+0
| | | | | | | | | | (Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
* Have the seek-read routines take a Buffer rather than a guint8 pointerGuy Harris2013-06-161-1/+2
| | | | | | | | | | as the "where to put the packet data" argument. This lets more of the libwiretap code be common between the read and seek-read code paths, and also allows for more flexibility in the "fill in the data" path - we can expand the buffer as needed in both cases. svn path=/trunk/; revision=49949
* Hoist a bunch of common code between ascend_read() andGuy Harris2013-05-161-10/+8
| | | | | | | | ascend_seek_read() into parse_ascend(). Adjust the buffer size *before* attempting to fill it up. svn path=/trunk/; revision=49343
* Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey2013-03-011-4/+0
| | | | | | | Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
* Export libwiretap symbols using WS_DLL_PUBLIC defineBalint Reczey2013-02-281-0/+5
| | | | | | TODO: hide flex-generated functions svn path=/trunk/; revision=47948
* Update Free Software Foundation address.Jakub Zawadzki2012-06-281-1/+1
| | | | | | (COPYING will be updated in next commit) svn path=/trunk/; revision=43536
* Fix wiretap headers to allow error-free ABI dumping.Balint Reczey2011-06-041-0/+6
| | | | svn path=/trunk/; revision=37543
* Have parse_ascend() return:Guy Harris2010-02-251-1/+6
| | | | | | | | | | | | | | | | PARSED_RECORD if we got a packet; PARSED_NONRECORD if the parser succeeded but didn't see a packet; PARSE_FAILED if the parser failed. Treat anything other than PARSED_RECORD as a failure, for now; I'm not sure why we were treating "parser succeeded but didn't see a packet" as success, as that was causing us to recognize some non-Ascend-output text files as Ascend files and to return "records" with bogus caplen and len values. svn path=/trunk/; revision=32009
* set compiler option "treat warnings as errors" - to prevent new warnings for ↵Ulf Lamping2007-03-211-1/+1
| | | | | | | | | | wiretap remove all compiler warnings: a) prevent wrong malloc/free definitions by lex/yacc generated files b) add int/time_t casts - MSVC2005 is more "sensitive" about this than MSVC6 svn path=/trunk/; revision=21078
* change all file offsets from long to gint64 so we can - theoretically - ↵Ulf Lamping2006-11-051-1/+1
| | | | | | | | handle files > 2GB correct. Please distclean Win32 builds! svn path=/trunk/; revision=19814
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* Fix some warnings (and one of my previous 'fixes')Jörg Mayer2005-07-221-1/+1
| | | | svn path=/trunk/; revision=14997
* From Josh Bailey:Gerald Combs2005-02-051-1/+1
| | | | | | | | Attached is an update to Lucent/Ascend trace parsing: fix a few bugs, add support for ISDN and Ethernet captures - diffs to 0.10.9. svn path=/trunk/; revision=13311
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* Have the Wiretap open, read, and seek-and-read routines return, inGuy Harris2004-01-251-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | addition to an error code, an error info string, for WTAP_ERR_UNSUPPORTED, WTAP_ERR_UNSUPPORTED_ENCAP, and WTAP_ERR_BAD_RECORD errors. Replace the error messages logged with "g_message()" for those errors with g_strdup()ed or g_strdup_printf()ed strings returned as the error info string, and change the callers of those routines to, for those errors, put the info string into the printed message or alert box for the error. Add messages for cases where those errors were returned without printing an additional message. Nobody uses the error code from "cf_read()" - "cf_read()" puts up the alert box itself for failures; get rid of the error code, so it just returns a success/failure indication. Rename "file_read_error_message()" to "cf_read_error_message()", as it handles read errors from Wiretap, and have it take an error info string as an argument. (That handles a lot of the work of putting the info string into the error message.) Make some variables in "ascend-grammar.y" static. Check the return value of "erf_read_header()" in "erf_seek_read()". Get rid of an unused #define in "i4btrace.c". svn path=/trunk/; revision=9852
* Packet data is an array of "guint8"s, not an array of "char"s; declareGuy Harris2004-01-061-4/+3
| | | | | | | | variables appropriately. Put in a cast to squelch MSVC++ warnings. svn path=/trunk/; revision=9575
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-4/+4
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6115
* From Motonori Shindo: get rid of "send output to /dev/null" hack inGuy Harris2001-12-061-2/+2
| | | | | | Ascend/Lucent trace reading code's Flex scanner. svn path=/trunk/; revision=4346
* In "wdd" captures:Guy Harris2000-11-111-1/+2
| | | | | | | | | | | | | | | | | | fix the interpretation of the date and time reported in capture files; use that date and time only to set the start date and time of the capture, not to generate the time stamp for every packet. Make the "struct tm" used for that local to the code to handle that production in the grammar, rather than global. For all captures, we *can* now fstat a compressed file (and have been able to do so for a while, in fact), so revert to doing so and using the ctime of the capture file if we can't get a date and time from the file's contents. svn path=/trunk/; revision=2605
* In Wiretap, a file stream handle is a "FILE_T", not a "FILE_T *" (aGuy Harris2000-05-191-3/+3
| | | | | | | | "FILE_T" is either a "gzFile" or a "FILE *", depending on whether zlib support is enabled or not). Fix various function declarations and definitions. svn path=/trunk/; revision=1984
* Remove the "union pseudo_header" from the "frame_data" structure;Guy Harris2000-05-181-2/+3
| | | | | | | | | | | | | | | | | | | | there's no need to keep it around in memory - when the frame data is read in when handing a frame, read in the information, if any, necessary to reconstruct the frame header, and reconstruct it. This saves some memory. This requires that the seek-and-read function be implemented inside Wiretap, and that the Wiretap handle remain open even after we've finished reading the file sequentially. This also points out that we can't really do X.25-over-Ethernet correctly, as we don't know where the direction (DTE->DCE or DCE->DTE) flag is stored; it's not clear how the Ethernet type 0x0805 for X.25 Layer 3 is supposed to be handled in any case. We eliminate X.25-over-Ethernet support (until we find out what we're supposed to do). svn path=/trunk/; revision=1975
* Don't define "pseudo_header" in "ascend-scanner.l", as that may causeGuy Harris1999-11-241-1/+6
| | | | | | | | warnings about multiple declaration of "pseudo_header" as a common. Instead, define it only in "ascend-grammar.y", and declare it in "ascend-int.h" as an "extern". svn path=/trunk/; revision=1103
* The #defines to turn "yy{lex,error}" into names specific to theGuy Harris1999-10-101-11/+2
| | | | | | | | | parser/lexical analyzer in question are needed only in the ".c" files for the generated parser and lexical analyzer, and Flex and Byacc/Bison put them there; don't bother putting them in a header file, just directly declare the functions with the right names. svn path=/trunk/; revision=801
* Move some definitions of stuff not used outside the Lucent/AscendGuy Harris1999-10-081-1/+12
| | | | | | capture file reading code from "ascend.h" to "ascend-int.h". svn path=/trunk/; revision=788
* Add an "ascend-int.h" file, to declare routines used by more than one ofGuy Harris1999-10-081-0/+42
the files in the Lucent/Ascend capture file code. svn path=/trunk/; revision=787