Commit graph

8948 commits

Author SHA1 Message Date
Guy Harris
cbfc93b82e Use "$(OBJECTS)" whenever a complete list of .obj files appears, rather
than repeating the list from the setting of OBJECTS.

svn path=/trunk/; revision=8893
2003-11-06 09:05:14 +00:00
Guy Harris
fbbcf9f9e6 Add a mechanism to handle various entity headers, allowing their
(string) values to be put into the protocol tree as fields and allowing
some headers to get special treatment, and use it for Authorization,
Proxy-Authorization, WWW-Authenticate, and Proxy-Authenticate.

svn path=/trunk/; revision=8892
2003-11-06 08:54:31 +00:00
Ronnie Sahlberg
95c969adb8 Fix for TCP.
If we have short or malformed PDUs in protocols above TCP this will generate
an exception and thus some of the stateful things such as keeping track of
and printing the tcp analysis data will be shourcutted and not called.

Add a wrapper around the call to the subdissectors above TCP so that
if an exception is generated we will still catch it and explicitely
call tcp_print_sequence_number_analysis() so that also short packets are
handled well.

svn path=/trunk/; revision=8891
2003-11-06 08:51:21 +00:00
Ronnie Sahlberg
25911d8c86 Bugfix for dcerpc parsing of encrypted short packets.
Sometimes if we cant decrypt a DCERPC packet decrypted_tvb is NULL.

do not pass a NULL pointer to show_stub_data() since this will dump
core.

svn path=/trunk/; revision=8890
2003-11-06 07:44:13 +00:00
Guy Harris
ada2c17a99 Get rid of includes of <gmodule.h> (we're not loading any code at
run-time in the dissector itself), and <sys/types.h> and <netinet/in.h>
(we shouldn't need either of those, and they might be responsible for
dragging in <sys/procset.h> on Digital UNIX - that header defines P_SID
in a way that conflicts with our definition).

svn path=/trunk/; revision=8889
2003-11-05 20:19:39 +00:00
Guy Harris
14d0def0a4 Update from Erwin Rol.
svn path=/trunk/; revision=8888
2003-11-05 20:10:54 +00:00
Guy Harris
83dd8480b8 A "GHashFunc()" returns a "guint", not a "gint".
svn path=/trunk/; revision=8887
2003-11-05 20:10:00 +00:00
Ronnie Sahlberg
de20fa6a54 the LDAP service response time dialog
svn path=/trunk/; revision=8886
2003-11-05 09:04:51 +00:00
Ronnie Sahlberg
f16f83b154 update for LDAP
measure the response time for some LDAP commands and
add a service response time dialog for it

svn path=/trunk/; revision=8885
2003-11-05 09:04:17 +00:00
Guy Harris
0046470812 From Olivier Biot: have a separate subtree ett_ value for concatenated
PDUs.

svn path=/trunk/; revision=8884
2003-11-05 04:23:59 +00:00
Guy Harris
7fc668fbf9 Sigh. Some snoop files have 6 bytes of padding; assume the file is a
snoop file unless it has enoguh padding to hold a Shomiti trailer
record.  (DEAR SUN MICROSYSTEMS: PLEASE DO NOT STUFF 16 OR MORE BYTES OF
PADDING INTO A SNOOP PACKET.  THANK YOU.  HAVE A NICE DAY.)

Add a little paranoia about the record and captured data lengths.

svn path=/trunk/; revision=8883
2003-11-04 22:14:50 +00:00
Guy Harris
307ec13512 Get rid of all the UDP-encapsulated IPSec stuff.
draft-ietf-ipsec-udp-encaps-06 says "The UDP port numbers are the same
as used by IKE traffic, as defined in [Kiv05]", and "[Kiv05]" is
draft-ietf-ipsec-nat-t-ike-05, which has been superseded by
draft-ietf-ipsec-nat-t-ike-07; the latter appears to imply that it goes
over port 4500, not port 500.

We already have a draft-ietf-ipsec-udp-encaps-06 dissector for port
4500 (packet-ipsec-udp.c), and it's not entirely clear to me how, if
draft-ietf-ipsec-udp-encaps-06 traffic *did* go over port 500, you'd
distinguish it from regular ISAKMP traffic.

svn path=/trunk/; revision=8882
2003-11-04 21:44:27 +00:00
Guy Harris
7089251f68 Skip the check for the module if a page doesn't have a module.
svn path=/trunk/; revision=8881
2003-11-04 20:33:13 +00:00
Guy Harris
343a178e33 Clean up the way we find the properties page for a given protocol
somewhat; this fixes a bug wherein we were assuming all modules
necessarily had preference pages (they won't, if the only preferences
for the module are obsolete preferences).

svn path=/trunk/; revision=8880
2003-11-04 20:22:21 +00:00
Guy Harris
8df7feb67d From Olivier Biot:
* Extra headers: Encoding-Version, WWW-Authenticate,
	  Proxy-Authenticate

	* Fix memory allocate/free in header parsing functions & macros

	* Add missing "ok = TRUE" for some header parsing functions

	* Header subfields all share the same subtree identifier (more
	  intuitive)

	* Get rid of unused header fields and subtrees

	* Some whitespace changes

svn path=/trunk/; revision=8879
2003-11-04 19:47:29 +00:00
Guy Harris
07697e98d3 From Masaki Chikama: fix static compilation of "generic ASN.1" and
Gryphon plugins.

svn path=/trunk/; revision=8878
2003-11-04 18:38:53 +00:00
Gerald Combs
af59706124 #ifdef out "#include <gtk/gtk.h>", so that --disable-ethereal works again.
svn path=/trunk/; revision=8877
2003-11-04 16:44:25 +00:00
Guy Harris
82b4c946d1 If we've already constructed a subset tvbuff, don't construct an
identical one and throw away the first one.

svn path=/trunk/; revision=8876
2003-11-04 08:16:02 +00:00
Gerald Combs
9c3c9899c6 Fix a typo in the filter documentation link.
svn path=/trunk/; revision=8874
2003-11-04 01:08:03 +00:00
Gerald Combs
f5ffa46463 Final (?) updates for 0.9.16.
svn path=/trunk/; revision=8873
2003-11-03 23:28:01 +00:00
Guy Harris
d2db02c521 Use "g_get_tmp_dir()" to get the pathname of the temporary file
directory.

svn path=/trunk/; revision=8872
2003-11-03 22:32:36 +00:00
Guy Harris
85773d34c3 From Olivier Abad: Insert the GTK+ 2.2.4
"gtk_tree_view_expand_to_path()" when building with GTK+ 2.0[.x], so
that we can build with 2.0[.x].

svn path=/trunk/; revision=8871
2003-11-03 21:00:05 +00:00
Guy Harris
9e1e2b2e85 Apply Anders Broman's changes to the Q.931 dissector to the Q.933
dissector:

	fix the meaning of the extension bit, and add some more
	bitfields.

svn path=/trunk/; revision=8870
2003-11-03 20:57:36 +00:00
Guy Harris
5cbc6cac02 Fro Anders Broman: fix the meaning of the extension bit, and add some
more bitfields.

svn path=/trunk/; revision=8869
2003-11-03 20:49:16 +00:00
Guy Harris
c682c10915 From Lars Ruoff: fix a problem with wrong maximum delay calculation -
first or marked packets are now ignored when calculating maximum delay.

svn path=/trunk/; revision=8868
2003-11-03 20:45:25 +00:00
Guy Harris
ce51c5c700 Don't try to get the list of link-layer header types for an interface if
the interface isn't in the list of known (local) interfaces - that way
we don't try to get entries if the user's in the middle of changing the
"Interface:" text, or if the interface is an rpcap: URL (getting the
link-layer header type list for a remote interface is currently
impossible, and even just getting its *default* interface type could
hang for a long time if the remote machine isn't responding).

Free the link-layer header type list when we're done with it.

Label the option menu for that list "Link-layer header type", as it
doesn't control the data link type of the interface in the only case I
know of where it's settable, namely 802.11 interfaces - it just controls
whether the packets you get from the interface have a fake Ethernet
header or a real 802.11 header.

svn path=/trunk/; revision=8867
2003-11-03 10:40:51 +00:00
Guy Harris
c0f8032621 "g_list_first()" takes an arbitrary list entry as an argument; you don't
need to call it if you already have a pointer to the first entry in the
list, which is what "a pointer to the list" is.

svn path=/trunk/; revision=8866
2003-11-03 10:36:45 +00:00
Guy Harris
12e8688326 From Olivier Biot:
* Use function reference arrays for header parse function lookup
	  (avoids switch())

	* Use macros for the common parts of the header parse functions

	* Use macros for identical header dissection functions

	* Implement many missing header parse functions

	* Automatic header parse error notification

	* Some minor edits

	* Add HTTP equivalents to WSP status codes

svn path=/trunk/; revision=8865
2003-11-03 10:16:00 +00:00
Gerald Combs
fe76df1f83 Update to 0.9.16.
svn path=/trunk/; revision=8864
2003-11-03 02:50:11 +00:00
Gerald Combs
ef0c23b546 Export get_tempfile_path() to the plugins.
svn path=/trunk/; revision=8863
2003-11-03 02:46:00 +00:00
Gerald Combs
5903ff03a3 Make get_tempfile_path() work like get_datafile_path(), which removes
a dependency on PATH_MAX (which apparently isn't defined under Windows).

svn path=/trunk/; revision=8862
2003-11-03 02:41:07 +00:00
Gerald Combs
cb452773c2 Bump the version number to 0.9.16.
svn path=/trunk/; revision=8861
2003-11-02 23:36:01 +00:00
Gerald Combs
4e77ada79e From Michael Lum: Add decode of Bearer Capability parameter.
svn path=/trunk/; revision=8860
2003-11-02 23:24:48 +00:00
Gerald Combs
031db8b9c8 From Gisle Vanem:
* 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-11-02 23:12:35 +00:00
Gerald Combs
b8d155186c Add an entry for Novell NCS heartbeats (ID 0xE0).
svn path=/trunk/; revision=8858
2003-11-02 22:12:35 +00:00
Gerald Combs
2bdac88860 The recent link-layer type additions broke "-r". Make it work again.
svn path=/trunk/; revision=8857
2003-11-02 19:31:20 +00:00
Tim Potter
d084a16f92 In a secure channel verifier, sometimes the nonce isn't present; not sure
why this is so.

svn path=/trunk/; revision=8856
2003-11-02 03:55:32 +00:00
Guy Harris
4b5d30e724 From Greg Morris:
1. Add several return values
	2. Fix the reply structure for NCP 22/48, 23/122
	3. Fix the request structure for NCP 23/121
	4. ServerID should be displayed as a hex value.
	5. ServerStationLong should be LE.
	6. JobNumberList should be JobNumberLong.
	7. Fix 87/64, 87/65, 87/66, 87/68, 87/69 - These are not Advanced Audit
	   Service, they really 64 bit file support NCP's.

svn path=/trunk/; revision=8855
2003-11-01 04:42:19 +00:00
Guy Harris
1cfad682cb The time in Observer files is in nanoseconds since midnight, January 1,
2000, 00:00:00 *local* time.  The amount to add to that is just the UNIX
time stamp value for that point in time; get it with "mktime()".

svn path=/trunk/; revision=8854
2003-11-01 03:38:10 +00:00
Guy Harris
b70a7d7f1c From Charlie Duke: add more functions to the plugin API.
svn path=/trunk/; revision=8853
2003-11-01 03:10:48 +00:00
Guy Harris
0fc4e38c65 "End" means end, not "almost the end".
svn path=/trunk/; revision=8852
2003-11-01 03:10:03 +00:00
Guy Harris
86206cae5a Move the new functions to the end of the list, so we don't change the
ordinal numbers of the routines already in the list (that breaks binary
compatibility).

svn path=/trunk/; revision=8851
2003-11-01 03:08:37 +00:00
Guy Harris
cde598fa35 From Charlie Duke: add more functions to the plugin API.
svn path=/trunk/; revision=8850
2003-11-01 03:06:55 +00:00
Guy Harris
3c2706c338 Return FALSE from the configure event handler, so that anybody else
who's registered for it can get notified about it.

svn path=/trunk/; revision=8849
2003-11-01 03:03:25 +00:00
Guy Harris
219b6cefa2 Based on a patch from Brian Fundakowski Feldman, add support for setting
link-layer type when capturing, using the "pcap_set_datalink()" and
related APIs.

svn path=/trunk/; revision=8848
2003-11-01 02:30:18 +00:00
Guy Harris
9ac0cce997 From Martin Regner: fix a problem with vendorIdentifier in some H.225
messages.

svn path=/trunk/; revision=8847
2003-10-31 19:48:29 +00:00
Guy Harris
3a6a79c3c9 From Lars Ruoff:
- fix missing detection of first packet when writing payload.
	- fix bug of erroneous handling of confort noise when writing payload.
	- fix bug of possible endless silence insertion on first packet when
	  writing payload.

svn path=/trunk/; revision=8846
2003-10-31 19:45:16 +00:00
Guy Harris
aabe3ec729 From Erwin Rol: update.
svn path=/trunk/; revision=8845
2003-10-31 18:28:32 +00:00
Guy Harris
9ac6d053f0 Update the list of supported capture formats.
svn path=/trunk/; revision=8844
2003-10-31 08:15:14 +00:00
Guy Harris
d5185e2b0e Fix some warnings from pod2man.
svn path=/trunk/; revision=8843
2003-10-31 08:13:07 +00:00