aboutsummaryrefslogtreecommitdiffstats
path: root/epan
AgeCommit message (Collapse)AuthorFilesLines
2003-11-03Use "g_get_tmp_dir()" to get the pathname of the temporary fileGuy Harris1-15/+6
directory. svn path=/trunk/; revision=8872
2003-11-03Make get_tempfile_path() work like get_datafile_path(), which removesGerald Combs1-6/+8
a dependency on PATH_MAX (which apparently isn't defined under Windows). svn path=/trunk/; revision=8862
2003-11-02Bump the version number to 0.9.16.Gerald Combs1-2/+2
svn path=/trunk/; revision=8861
2003-11-02From Gisle Vanem:Gerald Combs2-2/+34
* Added a new function get_file_in_temp() to epan/filesystem.c. This because of asn1.dll plugin which had code to write to a log-file "c:\temp\ethereal.log". I feel this patch makes this safer; I don't even have a c:\temp dir. * Patched packet-asn1.c to use get_file_in_temp(). * Added some #undef to packet-snmp.c to silence gcc. * Changed "%u" -> "%lu" formats in util.c Rename get_file_in_temp() to get_tempfile_path() to match other function names. svn path=/trunk/; revision=8859
2003-10-30From Dinesh Dutt:Guy Harris1-3/+14
- Dissector for FICON - Dissector for FC-SP (Security Protocol for Fibre Channel) - Patches to correct the reassembly of FC fragments. - Support for new MDS Port Analyzer Adapters that carry the frame length for truncated frames. svn path=/trunk/; revision=8823
2003-10-29Make the "fvalue_set" methods for types whose value is allocated freeGuy Harris5-7/+65
any previously-allocated version first, so that they don't leak memory. From Olivier Biot: add a "proto_item_append_string()" routine, to append to the string value a protocol tree item has. svn path=/trunk/; revision=8821
2003-10-27Allow + and , in unparsed strings, so that you can use + as a sign in aGuy Harris1-2/+2
number or exponent and so that floating-point numbers can use , as well as . as a decimal point. svn path=/trunk/; revision=8791
2003-10-23Add a new EXCEPT_CODE macro to get the exception code for the currentGuy Harris1-0/+2
exception, for use in CATCH_ALL handlers, so you can catch all exceptions and then pass the exception code on to a routine that handles different exceptions differently. svn path=/trunk/; revision=8757
2003-10-21Catch exceptions when dissecting a verifier, so we still dissect theGuy Harris1-2/+1
stub data even if there's a problem dissecting the verifier. Show stub data as "Encrypted stub data" if it's encrypted, "Decrypted stub data" if it was encrypted but we decrypted it, and "Stub data" if it wasn't encrypted. Don't attempt to decrypt data unless it was encrypted (i.e., the authentication level is "Packet privacy". Get rid of "decrypted_data" member of "packet_info" structure - we don't need it any more. svn path=/trunk/; revision=8743
2003-10-14From Matthias Melchior: parenthesize check for RESOLV_CONCURRENT.Guy Harris1-2/+2
Get rid of "!= 0" check - other tests for a bit being on in g_resolv_flags don't do that. svn path=/trunk/; revision=8684
2003-10-13From Ulf Lamping: add some missing "cd .."s. (I guess the currentGuy Harris1-1/+3
directory in nmake files persists across targets; presumably all commands, or, at least, all "cd" commands, are run in the same process.) svn path=/trunk/; revision=8682
2003-10-10Give every Makefile.nmake file a "distclean" rule, and have "distclean"Guy Harris3-8/+15
recurse into subdirectories doing "nmake -f Makefile.nmake distclean". Have "nmake -f Makefile.nmake clean" not remove stuff that "make clean" doesn't remove (such as Flex/Bison output and config.h files) - and have "nmake -f Makefile.nmake distclean" remove stuff that "make distclean" removes, including "tethereal-tap-register.c" and "ethereal-tap-register.c". svn path=/trunk/; revision=8672
2003-10-07Get rid of an out-of-date comment.Guy Harris1-3/+1
svn path=/trunk/; revision=8643
2003-10-06When registering a field, make sure its ID is -1 or 0 - if it's not,Guy Harris1-1/+11
that probably means you've registered two fields with the same field ID variable, which is an error. Fix the bugs doing so found. svn path=/trunk/; revision=8629
2003-10-01Have a pseudo-header for Ethernet packets, giving the size of the FCS -Guy Harris1-2/+2
0 means "there is no FCS in the packet data", 4 means "there is an FCS in the packet data", -1 means "I don't know whether there's an FCS in the packet data, guess based on the packet size". Assume that Ethernet encapsulated inside other protocols has no FCS, by having the "eth" dissector assume that (and not check for an Ethernet pseudo-header). Have "ethertype()" take an argument giving the FCS size; pass 0 when appropriate. Fix up Wiretap routines to set the pseudo-header. This means we no longer use the "generic" seek-and-read routine, so get rid of it. svn path=/trunk/; revision=8574
2003-09-28"compute_offset_length()" must, if it returns FALSE, and "exception" isGuy Harris1-5/+5
non-null, set "*exception" to the appropriate exception - its callers rely on it. Now that it does that, there's no need for "check_offset_length()" to check for a length of -1, as "compute_offset_length()" does so, and therefore "check_offset_length_no_exception()" does so. svn path=/trunk/; revision=8562
2003-09-24From Tomas Kukosa:Guy Harris1-3/+1
Remove the internal packet-per.c functions "dissect_per_length_determinant()" and "dissect_per_normally_small_nonnegative_whole_number()" from the plugin API, as they shouldn't be used outside the PER dissector. Remove the H.225/H.245 functions "dissect_h225_TransportAddress()" and "dissect_h245_NonStandardParameter()" from the plugin API until we really need them in plugins. Add the string dissector table functions to the plugin API. svn path=/trunk/; revision=8532
2003-09-15From Graeme Hewson:Guy Harris1-1/+3
Don't crash if "-z" is used on the command line when a live capture is being done (e.g., with "-k -S" - in that case, "cfile.filename" is null when the window is created), just don't display the file name in the title. Don't set the title of a non-existent window - create the window first. svn path=/trunk/; revision=8472
2003-09-12Added TimeReference frames.Ronnie Sahlberg2-7/+33
One can now select a packet and mark it as a TimeReference packet using the menu. A TimeReference packet will be indicated by having all timestamp related column entries replaced by the string *REF* A TimeReference packet will always be displayed in the packet pane, and overrides any display filters. When a frame is a TimeReference frame, all later frames will calculate the TimeRelativeToFirstPacket relative to the timestamp of the TimeReference frame instead of the first frame of the capture. You can have any number of TimeReference frames you like. svn path=/trunk/; revision=8459
2003-09-10Make tvb_find_tvb() return -1 if either tvb length is 0. Otherwise, anGerald Combs1-1/+5
assertion happens 'xxxx contains ""'. svn path=/trunk/; revision=8450
2003-09-10Void functions don't return values.Guy Harris1-2/+2
svn path=/trunk/; revision=8442
2003-09-09Add "dissector_get_string_handle()" for string dissector tables, similarGuy Harris2-2/+22
to "dissector_get_port_handle()" for uint dissector tables. svn path=/trunk/; revision=8434
2003-09-08Bump the version to 0.9.15. Update the NEWS and ChangeLog to August 27. MoreGerald Combs1-2/+2
updates to come. svn path=/trunk/; revision=8410
2003-09-07Support string dissector tables in the Tethereal "decode as" stuff.Guy Harris2-10/+16
Make the Ethereal "decode as" stuff not blow up with string dissector tables. Selectors for uint dissector tables are unsigned, not signed. svn path=/trunk/; revision=8408
2003-09-06When registering a dissector table, choose what type of hash andGuy Harris2-32/+344
comparison function to use based on the type value passed in. For the traditional unsigned integer table, require FT_UINT{8,16,24,32}; if the type is FT_STRING or FT_STRINGZ, use the string hashing functions instead. Add routines for manipulating entries and looking up dissectors in string dissector tables. svn path=/trunk/; revision=8407
2003-09-03And for Cal,Ronnie Sahlberg3-3/+9
Ethereal presents a column to display culmulative bytes into the capture. A new column type is added : Culmulative Bytes. While PacketLength column type specifies the number of bytes in the current packet, Culmulative Bytes specifies the culmulative number of bytes from the start of the capture. svn path=/trunk/; revision=8359
2003-08-27Include <string.h> to get "strlen()" declared.Guy Harris1-1/+2
svn path=/trunk/; revision=8281
2003-08-27Add a "contains" operator for byte-strings, strings, and tvbuffs (protocols).Gilbert Ramirez23-76/+396
The search uses a naive approach; more work is required to add a Boyer-Moore Search algorithm. svn path=/trunk/; revision=8280
2003-08-26Fix macro logic to allow classical resolution even if we have HAVE_GNU_ADNSGerald Combs1-3/+2
defined. svn path=/trunk/; revision=8274
2003-08-26In "col_set_addr()", don't do anything other than clearing the columnGuy Harris1-1/+3
expression information if the address type is AT_NONE - "address_to_str_buf()" panics if passed an AT_NONE address, as there's nothing sensible one can do with them. (A null string wouldn't be appropriate here, as a dissector might have set the address columns to a string.) svn path=/trunk/; revision=8269
2003-08-26Use "address_to_str_buf()" to generate column data for non-resolvedGuy Harris1-68/+32
addresses. svn path=/trunk/; revision=8262
2003-08-26Include "osi-utils.h" to define "print_nsap_net_buf()".Guy Harris1-1/+2
svn path=/trunk/; revision=8261
2003-08-26Create an "address_to_str_buf()" routine, called by "address_to_str()",Guy Harris9-129/+185
which fills in a caller-supplied buffer. Create "_buf()" versions of various "to_str" routines for various address types, and create a routine to map SNA FIDs to strings, and use them to finish up "address_to_str_buf()". Get rid of the declaration of "sna_fid_type_4_addr_to_str()" in "packet-sna.h", as that routine has been swallowed up in "sna_fid_to_str()". svn path=/trunk/; revision=8260
2003-08-25Include the header files required by new APIs in the plugin API table.Guy Harris1-1/+4
svn path=/trunk/; revision=8252
2003-08-25From Matthijs Melchior:Guy Harris2-84/+87
support for registering fields after all the protocol registration routines are called (i.e., adding fields to the named field tree as they're registered); fix the GTK 2.x version of the field list dialog to show the correct name. svn path=/trunk/; revision=8248
2003-08-24Put in some comments about possible future work on "address_to_str()".Guy Harris1-4/+25
Put in some additional "case AT_" statements to 1) squelch compiler warnings; 2) add AT_ARCNET (cheap and easy); 3) add placeholders for some other address types. svn path=/trunk/; revision=8243
2003-08-24Add endpoint talker support for IPXRonnie Sahlberg1-1/+6
svn path=/trunk/; revision=8240
2003-08-24Update address_to_str to handle FC and ETH addresses as well.Ronnie Sahlberg1-2/+13
Update the fc and eth and tr endpoint talker list to use the new api svn path=/trunk/; revision=8235
2003-08-24Add a new function address_to_str to to_str.cRonnie Sahlberg2-2/+41
Implement conersion from address to string for IPv4 and IPv6 and update the conversation tables to use the new interface. svn path=/trunk/; revision=8234
2003-08-24FC addresses are no longer extracted into guint32s, so "fc32_to_str()"Guy Harris2-21/+2
is no longer needed. svn path=/trunk/; revision=8226
2003-08-23Update the UDP and the TCP conversation list tool so that it can handle IPv6 ↵Ronnie Sahlberg1-4/+11
as well. Make no distinction between UDP/TCP over IPv4 and UDP/TCP over IPv6 and present them in the same list. svn path=/trunk/; revision=8224
2003-08-23Add FibreChannel to the types of protocols we can show a conversation list forRonnie Sahlberg2-7/+6
svn path=/trunk/; revision=8223
2003-08-21Fix up --with messages that include square brackets.Guy Harris1-2/+4
Put --with-plugins on the left margin, as the rest of the messages are. svn path=/trunk/; revision=8202
2003-08-21Note that the "=DIR" argument to "--with-adns" is optional.Guy Harris1-2/+5
svn path=/trunk/; revision=8201
2003-08-19Void functions don't return values, even though GCC likes to pretendGuy Harris1-2/+2
that they do. svn path=/trunk/; revision=8193
2003-08-18From Matthijs Melchior:Guy Harris1-8/+5
move the initialization of the addresses in the plugin interface structure from run-time to link time; don't attempt to rebuild the X* files automatically, just warn that they're out of date and show the command used to rebuild them (not everybody has GCC installed, but it's required in order to rebuild them). Get rid of the checked-in Xepan_plugins.c, as it's no longer generated or used. Fix Makefile.am now that Xepan_plugins.c has been replaced by Xass-list. Give plugin_gen.py an RCS ID. svn path=/trunk/; revision=8186
2003-08-18From Gisle Vanem: <ws2tcpip.h> is needed for INET6 code in epan/resolv.cGuy Harris1-1/+5
(at least with MingW + gcc 3.3.1). svn path=/trunk/; revision=8184
2003-08-12Save and restore the value of pinfo->current_proto when calling aTim Potter1-1/+12
dissector in call_dissector_through_handle(). svn path=/trunk/; revision=8160
2003-08-08A bufsize of 0 makes no sense in either "tvb_get_nstringz()" orGuy Harris1-11/+8
"tvb_get_nstringz0()", as it means there's no room even for the terminating NUL; abort if "_tvb_get_nstringz()" is passed a bufsize of 0. Don't throw an exception in "tvb_get_nstringz0()" if "_tvb_get_nstringz()" returns 0 - that just means we have an empty string. svn path=/trunk/; revision=8150
2003-08-01From Chris Heath: fix up the check for printable ASCII done on WindowsGuy Harris1-13/+14
not to include DEL as printable ASCII. Also change the check in strutil.c to do it by redefining "isprint()", as is done in "gtk/gtkglobals.h", rather than by #ifdeffing the point at which the test is done. svn path=/trunk/; revision=8118