Commit Graph

17673 Commits

Author SHA1 Message Date
Ronnie Sahlberg 9c18c35c38 remove a test for NULL we dont need since itlq can not be null here and thus we
dont need to test for it.

this unnecessary test for itlq==NULL was shown by coverity issue 151



svn path=/trunk/; revision=18052
2006-05-01 07:32:09 +00:00
Guy Harris 0dfbc73cbe Handle the case where we *can't* determine the pathname in which to find
programs, by reporting it with a dialog box that at least attempts to
indicate what the problem is, and by giving up early on running dumpcap.

svn path=/trunk/; revision=18051
2006-05-01 06:51:14 +00:00
Guy Harris 56728f40ed Have "pdu_store_sequencenumber_of_next_pdu()" return the newly-allocated
"struct tcp_multisegment_pdu"; that lets it be used in one case where
the code in it was duplicated.

Make "desegment_tcp()" loop rather than recursing - not all compilers
will necessarily recognize the tail recursion.

Catch heuristic dissectors that reject a packet but also request
(whether deliberately or accidentally) that more data be added.

svn path=/trunk/; revision=18050
2006-05-01 02:32:16 +00:00
Guy Harris 5179074cd1 UDP and SCTP aren't byte-stream protocols, so they don't offer TCP-style
reassembly.  UDP has no notion of reassembly - that's done at the IP
layer - and SCTP has its own notions of reassembly which it currently
doesn't provide.  As such, TCP-style reassembly isn't possible for
JXTA-over-UDP or JXTA-over-SCTP.

As for TCP, a heuristic dissector for a TCP-based protocol can't request
more data if it's rejecting a packet; make it not do so.  That should
fix the recent buildbot crash, although there are still some reassembly
problems with that capture (c05-http-reply-r1.pcap.gz in the menagerie
and on the SampleCaptures page of the Wiki) that aren't fixed yet.

svn path=/trunk/; revision=18049
2006-05-01 02:28:01 +00:00
Graeme Lunt 84764fec29 Operational Attributes and Syntaxes
svn path=/trunk/; revision=18048
2006-04-30 12:53:26 +00:00
Jaap Keuter 1ce378de2a Fix for bug 881. Adding processing of error packet when server greeting is expected.
svn path=/trunk/; revision=18047
2006-04-30 10:33:36 +00:00
Ronnie Sahlberg 0c1d1e600f tcp reassembly updates
use tcp_multisegment_pdu and se_tree_lookup32_le()   to track pdu boundaries for tcp reassembly just as this structure is used for the same purpose when reassembly is not enabled.

get rid of a hashtable and two memchunks we no longer need
tcp_segment_table    tcp_segment_key_chunk and   tcp_segment_address_chunk


This makes tcp reassembly work for out-of-order segments   as well as when reassembly completes in one segment and when the tail of the segment contains the head of the next pdu  which we did not handle before.


tcp reassembly should be much better and efficient now    modulo introduced regressions.




svn path=/trunk/; revision=18046
2006-04-30 10:27:55 +00:00
Guy Harris a41668ca27 Get rid of extra semicolon - GCC warns that ISO C doesn't allow it.
svn path=/trunk/; revision=18045
2006-04-30 09:25:34 +00:00
Guy Harris bb0bd36d00 Constify some stuff, to eliminate compiler warnings and to make a table
that isn't written const.

svn path=/trunk/; revision=18044
2006-04-30 09:14:42 +00:00
Guy Harris 075dac4aad No C++/C99 comments, please (GCC warns about them in the Solaris
buildbot build, even though the code is #if 0'ed out).

svn path=/trunk/; revision=18043
2006-04-30 08:59:26 +00:00
Graeme Lunt 4efe0f2423 Request/result matching, port preference and display tweaks
svn path=/trunk/; revision=18042
2006-04-30 07:23:42 +00:00
Guy Harris 8113782873 Add "file_dlg.h" to declare "set_last_open_dir()".
Try leaving "dlg_utils.h" out.

svn path=/trunk/; revision=18041
2006-04-30 06:57:01 +00:00
Guy Harris 7698ee3eae Include <errno.h> to get errnos.
svn path=/trunk/; revision=18040
2006-04-30 06:54:25 +00:00
Guy Harris 8cc7c815d8 See whether <stdio.h> will get EISDIR defined.
svn path=/trunk/; revision=18039
2006-04-30 03:22:39 +00:00
Guy Harris 8e2807aa31 We use stuff from dlg_utils.h.
svn path=/trunk/; revision=18038
2006-04-30 03:19:59 +00:00
Guy Harris 546e3f53ad We need <gdk/gdkkeysyms.h> to define GDK_VoidSymbol.
svn path=/trunk/; revision=18037
2006-04-30 03:19:11 +00:00
Guy Harris 84aef00bad Move the file selection dialog routines to file_dlg.c, and give it a
header file.

#if 0 out some includes; if none of the builds have a problem with
that, I'll remove them.

svn path=/trunk/; revision=18036
2006-04-30 01:47:58 +00:00
Guy Harris d53bc56f03 Fix the idempotent-include #define.
svn path=/trunk/; revision=18035
2006-04-29 23:18:47 +00:00
Guy Harris 0ce9a23b25 Most of the stuff in file_dlg.c is specific to capture files, so rename
it to capture_file_dlg.c, and rename its header file.  We might want to
move the generic file dialog stuff to a file_dlg.c file (it's currently
in dlg_utils.c), and move the non-capture-file dialog stuff in
capture_file_dlg.c to another file.

svn path=/trunk/; revision=18034
2006-04-29 23:03:57 +00:00
Guy Harris fe6af4d65d Add some simple sanity checking of BVLC packets, so if you're unlucky
enough to have a non-BVLC packet from or to port 47808, we're likely to
reject it and let another dissector try it.  Fixes bug 855 (in which an
MS Messenger packet was unlucky enough to have come from that port).

Add value_string tables to some fields, and just use
proto_tree_add_uint() to add them to the protocol tree, rather than
generating our own text for them.

svn path=/trunk/; revision=18033
2006-04-29 18:54:54 +00:00
Guy Harris 25e8c37489 Have the ring buffer routines take a pointer to a "bytes written" count
as an argument, rather than keeping the count to themselves, so the
count kept by the capturing program can be updated correctly - including
getting reset when files are switched.  Fixes bug 895.

svn path=/trunk/; revision=18032
2006-04-29 17:54:46 +00:00
Guy Harris f3d1963924 Clean up indentation; use 2-space indentation throughout.
Save the media encoding name in the transport_info_t structure rather
than in a global variable.  Allocate it with tvb_get_ephemeral_string()
so it's released after the packet is completely processed.  Do *NOT*
assume it's necessarily non-null in decode_sdp_fmtp(), as the code flow
doesn't guarantee that to be true.

proto_tree_add_string() now suffices for adding a particular SDP item -
strings are now displayed "safely", with escaping of non-printable
characters done.

Update a comment (we no longer have the Big Transfer Vector to allow
plugins to call dissector functions in Windows, we have those functions
in a DLL).

svn path=/trunk/; revision=18031
2006-04-29 17:31:20 +00:00
Jörg Mayer 8661cd1846 chrisaudley@yahoo.com:
Patch to fix:
[Bug 904] FIX protocol dissector missing some message types


svn path=/trunk/; revision=18030
2006-04-29 15:25:44 +00:00
Guy Harris e5d0659195 A dissector called from tcp_dissect_pdus() has to return void. (If you
want to have a dissector capable of rejecting packets, you need to
reject the packet before you call tcp_dissect_pdus() - once you're doing
reassembly, etc., it's too late to reject the packet.)

svn path=/trunk/; revision=18029
2006-04-29 09:30:09 +00:00
Anders Broman 13d178a3fc Check Payload type before dissecting fmtp parameters.
svn path=/trunk/; revision=18028
2006-04-28 21:42:18 +00:00
Anders Broman 039e39d8b4 Fix bug 896 by using tcp_dissect_pdus() .
svn path=/trunk/; revision=18027
2006-04-28 21:41:13 +00:00
Gerald Combs 9b59165a4d Fetch a combobox control handle before we try to use it. Add some needed
_T macros.  Remove some extraneous comments.

svn path=/trunk/; revision=18026
2006-04-28 18:43:33 +00:00
Gerald Combs e58dbf5e91 Fix logic used to test protection under Windows OT. Only initialize
our page size and OS version information once.

svn path=/trunk/; revision=18025
2006-04-28 16:40:39 +00:00
Ronnie Sahlberg 703869d3d6 tcp analysis updates to prepare for later tcp reassembly updates
now that we have se_tree_lookup32_le   we can do the tracking of pdu boundaries much more efficiently.

track pdu boundaries by a new  tcp_multisegment_pdu  structure that is indexed by sequence numbers and let this structure replace the older tcp_next_pdu structure.

with se_tree_lookup32_le  we no longer need to track segment by segment and can get rid of the two hash tables
tcp_pdu_tracking_table
tcp_pdu_skipping_table
Neither do we need the tree   tcp_pdu_time_table anymore so that one is gone as well.

remove various other functions that are no longer needed due to removing the structure and the tables/tree


this part of the code shoul;d be much more readable now   and also a bit faster



svn path=/trunk/; revision=18024
2006-04-28 09:44:02 +00:00
Tomas Kukosa fe88a09c26 - fix Bug 890
- remove c2asn() which did not work exactly

svn path=/trunk/; revision=18023
2006-04-28 06:47:51 +00:00
Guy Harris d44c620df0 Don't change rflags for any properties other than
IEEE80211_RADIOTAP_FLAGS.

svn path=/trunk/; revision=18022
2006-04-28 06:29:19 +00:00
Ulf Lamping 4674161ed0 add some higher packet length values
svn path=/trunk/; revision=18021
2006-04-27 22:13:29 +00:00
Guy Harris 4a84a894d9 This was completely broken, as the "length" variable actually reflected
the amount of data left in the radiotap header after the fields we've
processed so far, not the total length of the header, so it couldn't be
used to skip past the radiotap header and get a tvbuff of the packet
data.  Fix that.

svn path=/trunk/; revision=18020
2006-04-27 19:58:32 +00:00
Guy Harris 89ff9ef701 From Diego Petteno and Daniel Black: add more libraries to the list of
libraries with which we link libethereal, fixing the reopened bug 878.

svn path=/trunk/; revision=18019
2006-04-27 19:12:50 +00:00
Gerald Combs 784334b322 Add an extra null pointer check. Fixes Coverity CID 154.
svn path=/trunk/; revision=18018
2006-04-27 18:46:05 +00:00
Gerald Combs 36b80f1043 Properly grow our buffers for utf_8to16().
svn path=/trunk/; revision=18017
2006-04-27 14:58:46 +00:00
Anders Broman a345eab556 From Martin Mathieson:
Fix typo in menu item name

svn path=/trunk/; revision=18016
2006-04-27 05:02:57 +00:00
Jaap Keuter b1c230fb59 From Mark C. Brown:
The code was incorrectly bounds checking AndXOffset.  AndXOffset is only
relevant when AndXCommand is not 0xFF.  This patch corrects erroneous
"Malformed packet" exceptions.

svn path=/trunk/; revision=18015
2006-04-26 22:53:00 +00:00
Gerald Combs 056b3d977a Properly set our export file name before we try to use it. Fixes bug 894.
svn path=/trunk/; revision=18012
2006-04-26 21:15:51 +00:00
Gerald Combs 301a5f1e32 If we're running under Windows 95/98/Me, don't abort if we can't protect
our guard pages.

svn path=/trunk/; revision=18011
2006-04-26 21:06:52 +00:00
Anders Broman fd42a33307 Add dissection of MPEG4 fmtp parameter.
svn path=/trunk/; revision=18010
2006-04-26 20:16:57 +00:00
Ulf Lamping 4b4eba7993 minor enhancements
svn path=/trunk/; revision=18009
2006-04-26 20:13:33 +00:00
Gilbert Ramirez 1c57b51e9e Check for NULL return value from wtap_dump_open().
Fixes coverity bug 159.

svn path=/trunk/; revision=18005
2006-04-26 17:31:56 +00:00
Jörg Mayer dbbd8cd9a1 authesserre samuel <sauthess@gmail.com>:
The current ssl decryption code does not work for 3des session.
The attached patch fixes the problem.


svn path=/trunk/; revision=18004
2006-04-26 15:10:23 +00:00
Ronnie Sahlberg 1df4fecef5 add tracking of ndmp conversations and use this to track the version used if we have seen the CONNECT_OPEN request.
rename the preference to DEFAULT protocol version   to indicate it is only used for those conversation where we have not automatically detected the version used.




svn path=/trunk/; revision=18003
2006-04-26 09:40:49 +00:00
Ronnie Sahlberg 59f9aa6a8c NOTIFY_[DATA|MOVER]_HALTED requests no longer take an XDR string containing the reason for version 4 of ndmp and forward.
svn path=/trunk/; revision=18002
2006-04-26 07:58:45 +00:00
Jaap Keuter 7f5fc8b8d9 Workaround for bug 852. Force a line break so that the text view doesn't blow up on excessive long lines.
svn path=/trunk/; revision=18001
2006-04-26 06:37:46 +00:00
Anders Broman f9468fe33f Add some more ANSI Message types and Parameters dissect ANSI cause.
svn path=/trunk/; revision=18000
2006-04-25 19:12:08 +00:00
Guy Harris a6930fe4ae Add distclean and maintainerclean rules.
svn path=/trunk/; revision=17999
2006-04-25 18:45:08 +00:00
Guy Harris 09eeb3902c Add distclean and maintainerclean rules.
svn path=/trunk/; revision=17998
2006-04-25 18:35:15 +00:00