aboutsummaryrefslogtreecommitdiffstats
path: root/epan
AgeCommit message (Collapse)AuthorFilesLines
2001-11-24Update the Makefile.nmake files to reflect the move of "int-64bit.c" toGuy Harris1-0/+1
the "epan" subdirectory. Include "strptime.obj" in the list of object files used to build "text2pcap.exe". svn path=/trunk/; revision=4258
2001-11-22Moved int-64bit.{c,h} into epan/Ed Warnicke5-5/+619
svn path=/trunk/; revision=4248
2001-11-21Remove the pointer to the global packet_info from the table ofGilbert Ramirez1-3/+1
pointers used for plugins on win32. svn path=/trunk/; revision=4247
2001-11-21Remove the global packet_info called "pi". Dissectors now onlyGilbert Ramirez10-100/+62
access their own "pinfo". A packet_info is stored in epan_dissect_t, which is created for the dissection of a single packet. GUI functions which need to access the packet_info of the currently selected packet used to use "pi"; now they use cfile.edt->pi. cfile's "edt" member is the epan_dissect_t of the currently-selected packet. The functionality of blank_packetinfo() was moved into dissect_packet(), as that's the only place that called blank_packetinfo(), after a spurious call to blank_packetinfo() was removed from packet_list_select_cb(). svn path=/trunk/; revision=4246
2001-11-21Get rid of some unused variables.Guy Harris3-11/+3
svn path=/trunk/; revision=4239
2001-11-21Fix an earlier typo of mine.Guy Harris1-2/+2
svn path=/trunk/; revision=4238
2001-11-20Get rid of "tvb_compat()"; it's no longer needed (the one remaining callGuy Harris2-19/+3
to it returns data that's no longer used). svn path=/trunk/; revision=4237
2001-11-20Get rid of the "len" and "captured_len" members of the "packet_info"Guy Harris2-30/+3
structure; they're no longer used. svn path=/trunk/; revision=4236
2001-11-20Make the capture routines take an additional argument giving the amountGuy Harris1-8/+6
of packet data captured. Make the "BYTES_ARE_IN_FRAME()" macro take a "captured length of the packet" argument. Add some length checks to capture routines. svn path=/trunk/; revision=4235
2001-11-20"END_OF_FRAME" and "IS_DATA_IN_FRAME()" are no longer used; get rid ofGuy Harris1-13/+5
them. svn path=/trunk/; revision=4234
2001-11-20Allow the tvbuff pointer to various "proto_tree_add" routines to be nullGuy Harris1-3/+14
if (and only if) the length of the item being added is 0 (so that it has no data backing it). This means the data stream name pointer for the item in question is null; make sure we handle that. Use that for some "uses the value from the matching request" fields in the SMB Pipe protocol. svn path=/trunk/; revision=4231
2001-11-15Get rid of NullTVB, the "compat_top_tvb" member of the "packet_info"Guy Harris5-23/+7
structure, the check for a null tvbuff pointer in "alloc_field_info()", and the "tvb_create_from_top()" macro; they're no longer needed, as there's no non-tvbuffified dissector code remaining. svn path=/trunk/; revision=4205
2001-11-13Hopefully the last time I have to change my e-mail address.Gilbert Ramirez7-13/+13
svn path=/trunk/; revision=4199
2001-11-04Include "conversation.h", as the plugin API now includes the routines toGuy Harris1-1/+2
create and find conversations. svn path=/trunk/; revision=4155
2001-11-04Declare routines exported to plugins through the plugin API table asGuy Harris2-15/+15
extern, so that "plugin_api_defs.h" works on platforms where you have to use the plugin API table. svn path=/trunk/; revision=4151
2001-11-04Additional routines made available to plugins, from Tomas Kukosa.Guy Harris1-2/+9
svn path=/trunk/; revision=4150
2001-11-03Tvbuffification of Negotiate Protocol, from Ronnie Sahlberg.Guy Harris1-3/+15
Fix up Info column to put "Request" or "Response" *after* the name of the request. Give the Negotiate Protocol request its full name. svn path=/trunk/; revision=4139
2001-11-03TVBUFF_SUBSET tvbuffs share a "ds_name" with the parent tvbuff, so theirGuy Harris1-5/+11
"ds_name"s shouldn't be freed when the tvbuff is freed. (Thanks and a tip of the Hatlo hat to the FreeBSD memory allocator for complaining about multiple frees of the same string.) svn path=/trunk/; revision=4136
2001-11-03More indentation fixes.Guy Harris1-2/+2
svn path=/trunk/; revision=4135
2001-11-03When freeing the "gpa_hfinfo" pointer array, free the array itself, asGuy Harris1-3/+3
well as the structure containing it. svn path=/trunk/; revision=4131
2001-11-03Rename the "private" member of the "packet_info" structure toGuy Harris2-4/+4
"private_data", to keep C++ compilers from getting heartburn. svn path=/trunk/; revision=4130
2001-11-03Fix the indentation.Guy Harris1-4/+4
svn path=/trunk/; revision=4129
2001-11-02Fix leak of ds_name. Thanks to Sirop Erable <matrix_ottawa@yahoo.ca>Gilbert Ramirez1-1/+6
svn path=/trunk/; revision=4128
2001-11-02Add support for 64-bit signed integers in "int-64bit.[ch]", add anGuy Harris4-11/+267
FT_INT64 type, and make the Diameter dissector use it. Handle the 64-bit integer types in the display filter semantics checks. svn path=/trunk/; revision=4125
2001-10-31Put "extern" in front of a pile of function declarations.Guy Harris4-206/+222
It makes no difference if they really are function declarations; however, in plugins, when building on OSes that don't let dynamically-loaded modules access functions in the main program (e.g., Windows), when compiling a plugin, <plugin_api.h> defines the names of those functions as (*pointer_name), so they turn into declarations of pointer variables pointing to the functions in question, and, on platforms with a def/ref model in the linker, if a plugin has more than one source file that gets linked into the plugin, the linker may get upset at two definitions of the same variable. svn path=/trunk/; revision=4114
2001-10-31Get rid of a bunch of stuff that was there to support non-tvbuffifiedGuy Harris5-132/+30
dissectors and that's no longer needed. svn path=/trunk/; revision=4112
2001-10-29Stop using "tvb_get_ntohll()" and "%llX" in the BOOTP dissector, as theGuy Harris4-63/+4
former depends on having "guint64" and the latter depends on "%ll[douxX]" being what's used to print 64-bit integers, and there are platforms on which Etheeal runs that don't have "guint64" or that don't use "%ll[douxX]" to print 64-bit integers. Get rid of the routines to extract 64-bit integers into "gint64"s and "guint64"s, as per Ronnie Sahlberg's suggestion, to discourage people from writing code that won't work on all platforms; they should be using FT_UINT64, or the routines in "int-64bit.c", instead. svn path=/trunk/; revision=4102
2001-10-29From Ronnie Sahlberg: FT_UINT64 support, code to handle 64-bit integersGuy Harris4-6/+130
without requiring compiler support for them, and updates to the Diameter, L2TP, NFS, and NLM dissectors to use it and to the ONC RPC dissector to allow ONC RPC subdissectors to use it. svn path=/trunk/; revision=4099
2001-10-28Clean up another signed vs. unsigned comparison warning - ifGuy Harris1-2/+6
"snprintf()" returns a negative number, that's an error, and we assume "errno" was set and return NULL, otherwise we cast its return value to "size_t" and compare it with the size of the buffer we were given, and, if it was bigger, we know that "snprintf()" didn't generate all the characters it could be cause they wouldn't have fit, so we set "errno" to ENOSPC and return NULL. svn path=/trunk/; revision=4095
2001-10-28Check, in the configure script in the epan directory, whether we haveGuy Harris2-2/+6
"strptime()" and, if not, define NEED_STRPTIME_H. svn path=/trunk/; revision=4093
2001-10-28From Mike Frisch: Win32 systems don't have "strptime()", so we need toGuy Harris1-1/+2
use a replacement "strptime()" on those systems, and thus need to include "strptime.h" to declare "strptime()". svn path=/trunk/; revision=4092
2001-10-28"ftypes" and "dfilter" should depend on "config.h", so that if itGuy Harris1-2/+2
doesn't exist, or is out of date with respect to "config.h.win32", it's remade - stuff in "ftypes" and "dfilter" includes "config.h", and it should get the "config.h" in "epan". svn path=/trunk/; revision=4091
2001-10-26Fix some signed/unsigned comparison warnings. In the case of tvbuff.h,Gilbert Ramirez6-31/+34
there were 2 functions which accepted 'maxlength' == -1, but the function prototypes had maxlength as a guint --- fixed. svn path=/trunk/; revision=4087
2001-10-24Fix compile errors and code errors in the Win32 code.Guy Harris1-4/+9
svn path=/trunk/; revision=4073
2001-10-24Have a routine that takes a file name for a personal configuration fileGuy Harris4-28/+129
and generates the path name; have it, if the file is to be opened for reading on Win32, check whether it exists and, if not, check for it in the old home directory-based configuration directory and, if so, return that path instead, so that files saved with earlier versions of Ethereal will be seen. svn path=/trunk/; revision=4072
2001-10-24On Windows, put Ethereal configuration files under the "ApplicationGuy Harris2-20/+72
Data\Ethereal" directory under the user's profile, as that appears to be the Windows 2000 standard. svn path=/trunk/; revision=4071
2001-10-23Include <direct.h> on Windows systems, to declare "mkdir()".Guy Harris1-42/+15
On Windows, put the ".ethereal" directory under the user profile directory rather than the home directory. Update the documentation to reflect that, and to fix other out-of-date information, as well as some typos. svn path=/trunk/; revision=4068
2001-10-23When putting protocols into the list of protocols, do a case-insensitiveGuy Harris1-2/+2
sort. Give iSCSI the short name "iSCSI" rather than "ISCSI". svn path=/trunk/; revision=4067
2001-10-23Add a new routine to create the ".ethereal" directory for a user.Guy Harris2-2/+44
Use that routine rather than duplicating that code in the routines to write out the preference file and filter files. Use it in the code for the color filter dialog, so that the directory in question is created if necessary. As that routine returns an error indication, have the code that calls that routine put up a message box if the attempt fails. svn path=/trunk/; revision=4065
2001-10-23Include <stdio.h> to declare "sprintf()".Guy Harris1-1/+2
svn path=/trunk/; revision=4063
2001-10-22The only reason we care about the user's home directory is that theirGuy Harris2-49/+38
".ethereal" directory is under it; get rid of "get_home_dir()", and put its code inside "get_persconffile_dir()". (The personal configuration file directory may move, on Windows, to the user's profile directory.) svn path=/trunk/; revision=4062
2001-10-22Add a routine to get the directory in which personal configuration filesGuy Harris4-26/+50
reside. Use it, rather than concatenating the user's home directory and ".ethereal" in a number of files. Fix up some additional places to use G_DIR_SEPARATOR_S as the pathname separator. svn path=/trunk/; revision=4061
2001-10-21Use G_DIR_SEPARATOR_S rather than "/" as a pathname separator in formatGuy Harris5-59/+65
strings used to generate pathnames. Move the definition of PF_DIR from <epan/epan.h> to <epan/filesystem.h>, so that files requiring only the definition of PF_DIR don't have to include <epan/epan.h>, and get rid of no-longer-necessary includes of <epan/epan.h>. Add a routine to get the directory for "system files" such as "/etc/ethers" - it's "/etc" on UNIX, and the datafile directory on Windows (as there's no "/etc" on Windows). Use that to construct the pathname of the ethers and ipxnet files. svn path=/trunk/; revision=4056
2001-10-21On Windows, get the "ethers" and "ipxnets" file from the directory inGuy Harris1-10/+44
which the Ethereal binary is found; there's no notion of "/etc" or of "/etc/ethers" or "/etc/ipxnets" files on Windows. Update the documentation to reflect that, and fix a typo in the Ethereal and Tethereal man pages. svn path=/trunk/; revision=4055
2001-10-12Get NEWS current up to July 31, update version to 0.8.20.Gerald Combs1-2/+2
svn path=/trunk/; revision=4021
2001-10-01Have a flag in the "packet_info" structure, which indicates whether theGuy Harris2-2/+5
stuff currently being dissected is part of a packet included in an error packet (e.g., an ICMP Unreachable packet). Have the TCP dissector not bother doing reassembly if the TCP segment is part of an error packet, rather than an actual TCP transmission; other dissectors might want to treat those packets specially as well. Add to the "tcpinfo" structure a flag indicating whether the URG flag was set, rather than having the zero or non-zero value of the urgent pointer indicate that. (Yes, at least as I read RFC 793, a zero urgent pointer value isn't useful, as it means "the stuff before this segment is urgent", but it's certainly possible to put onto the wire a TCP segment with URG set and a zero urgent pointer.) Don't dissect the TCP header by grabbing the entire header with "tvb_memcpy()" and then pulling stuff out of it - extract stuff with individual tvbuff calls, and put stuff into the protocol tree and the Info column as we extract it, so that we can dissect a partial header. This lets us, for example, get the source and destination ports from the TCP header of the part of a TCP segment included in a minimum-length ICMPv4 error packet. svn path=/trunk/; revision=3986
2001-09-14To check whether something is a directory, call "test_for_directory()"Guy Harris1-2/+2
on it and check whether it returned EISDIR, not whether it returns 0 - EISDIR means it's a directory, 0 means it isn't. svn path=/trunk/; revision=3939
2001-09-14Make the resolution for time values be nanoseconds rather thanGuy Harris2-1/+37
microseconds. Fix some "signed vs. unsigned" comparison warnings. svn path=/trunk/; revision=3937
2001-09-14Get rid of no-longer-necessary includes of <sys/time.h>.Guy Harris4-20/+4
svn path=/trunk/; revision=3936
2001-09-14Make the resolution for time values be nanoseconds rather thanGuy Harris7-92/+115
microseconds. Fix some "signed vs. unsigned" comparison warnings. svn path=/trunk/; revision=3934