Commit Graph

3009 Commits

Author SHA1 Message Date
Ronnie Sahlberg ac6b2c68c4 add some symbols to libethereal.def
svn path=/trunk/; revision=15305
2005-08-12 09:47:33 +00:00
Ronnie Sahlberg 0a06795b00 oops forgot to delete a variable
svn path=/trunk/; revision=15304
2005-08-12 09:31:07 +00:00
Ronnie Sahlberg ec7942851e get rid of some unnessecary GMemChunks.
These GMemChunks are used here because :
1, GMemChunks are cheap to allocate and cheap to free
2, We always unconditionally free the entire chunk When and only when we load a new capture.

==>
se_alloc() does exactly the same thing but with significantly less code

==>
se_alloc() is a much better fit to out allocation requirements and useage than GMemChunks



svn path=/trunk/; revision=15303
2005-08-12 09:30:24 +00:00
Michael Tüxen d1db771cec Fix handling of ASAP_ENDPOINT_KEEP_ALIVE message.
svn path=/trunk/; revision=15302
2005-08-12 09:16:51 +00:00
Ronnie Sahlberg 055e2596d9 Add beginning of seasonal allocation in addition to the existing ephemeral ones.
svn path=/trunk/; revision=15301
2005-08-12 08:51:08 +00:00
Guy Harris 960f9cb5e7 In an "address" structure, "data" is a pointer; dereferencing "&data"
doesn't give you the address value, it gives a pointer to the address
value.

Don't assume that pointer is aligned on a 32-bit boundary.

svn path=/trunk/; revision=15300
2005-08-12 07:47:27 +00:00
Jörg Mayer 86b6922604 Beginnings of a EDP, ESRP and EAPS dissector
svn path=/trunk/; revision=15299
2005-08-12 04:06:04 +00:00
Luis Ontanon 03c8023311 avoid throwing a malformed packet
svn path=/trunk/; revision=15298
2005-08-11 23:51:35 +00:00
Jörg Mayer 39e5ff4ed1 Add Extreme OUI, reorder alphabetically
svn path=/trunk/; revision=15297
2005-08-11 23:18:46 +00:00
Anders Broman 0c69d44dba From Rene Pilz:
The MCC/MNC in de_gmm_rai is not correct decoded

svn path=/trunk/; revision=15296
2005-08-11 20:47:09 +00:00
Anders Broman c61a9fddad From W. Borgert:
three trivial corrections for the GIOP dissector:

- allow filtering GIOP exceptions, e.g. "giop.replystatus = 2"
  or "giop.exceptionid matches MyError", older patch at
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314835

- show IDLs sequence<octet> more compact, not one line per
  octet, older patch at
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314836

- decode _is_a requests and replies, older patch at
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314871

With a change to not create a malformed packet in the "stub data".

svn path=/trunk/; revision=15295
2005-08-11 20:14:41 +00:00
Luis Ontanon 1480f629dc Change a switch into an "if else if else if else" that fixes the "too large for switch" in HP-UX 10.20 .
The generated file has a lot of indentation changes due probably to a change in asn2eth.

The underlying reason for which I added this code (dissect_ber_integer() would not add as a "filterable" field if it is larger than 4 bytes, should be handled in dissect_ber_integer() ) remains there.

Should we change dissect_ber_integer() itself to make sure that a 5 byte unsigned integer which fits in 4 bytes gets added to the tree as "filterable"?


svn path=/trunk/; revision=15294
2005-08-11 18:21:23 +00:00
Gerald Combs 699bd0fa60 Add checks for infinite loops. Fixes recent Buildbot failures.
svn path=/trunk/; revision=15292
2005-08-11 15:35:17 +00:00
Ronnie Sahlberg 1f0993e47e Fix for bug 342
If we encounter a frame we have already seen (i.e. visited==1)  but we can not fing the ISCSI command inside the _matched table, this just means there were no response pdu nor any data pdu with the S bit set.
So, then just pick the cdata structure up from the _unmatched table instead.

The SCSI CDB  dissector really really want a real CDATA structure passed to it.




svn path=/trunk/; revision=15291
2005-08-11 10:08:45 +00:00
Ronnie Sahlberg 030981ff55 We use heuristics to detect what MIGHT be onc-rpc packets.
as heuristics they are not 100% perfect, else they would not be heuristics.


IF the preference option "Dissect unknown RPC program numbers" are enabled,
add a sanity check to see that program_version is <=10
  (no one uses versions >10 ?)
to avoid trying to add 2 bilion different versions to the program->version linked list
in case we mistook the packet for ONC-RPC and the "version" field contains a huge random number.


This bug would only trigger a hang/crash IFF the option above is enabled.


svn path=/trunk/; revision=15290
2005-08-11 09:20:23 +00:00
Ronnie Sahlberg 216cc15b46 fix several bugs where we might dereference a null pointer
svn path=/trunk/; revision=15289
2005-08-11 08:15:52 +00:00
Ronnie Sahlberg e3a0e74e8d some more tcv_get_stringz() to tvb_get_ephemeral_stringz() conversions
svn path=/trunk/; revision=15288
2005-08-11 07:44:38 +00:00
Gerald Combs 4e4aa78bcc Remove proprietary information at the author's request.
svn path=/trunk/; revision=15282
2005-08-10 19:31:21 +00:00
Gerald Combs 4744466e97 ep_tvb_get_string -> tvb_get_ephemeral_string
svn path=/trunk/; revision=15281
2005-08-10 19:28:08 +00:00
Gerald Combs db28b74a97 Don't overflow a buffer. This might fix bug 327.
Don't print non-pritable characters.

svn path=/trunk/; revision=15279
2005-08-10 18:50:36 +00:00
Gerald Combs 06cc81aa5f When we receive junk data, mark it as a malformed packet instead of
a dissector bug.  This keeps buildbot from opening unnecessary bugs
during fuzz testing.

When we create a new scsi_task_data_t struct make sure all of its
members are initialized.

svn path=/trunk/; revision=15278
2005-08-10 16:05:50 +00:00
Ronnie Sahlberg 0fbaa6140f tvb_get_stringz() to tvb_get_ephemeral_stringz() conversion
svn path=/trunk/; revision=15276
2005-08-10 14:37:52 +00:00
Ronnie Sahlberg 74fff802f9 tvb_get_stringz() to tvb_get_ephemeral_stringz() conversion.
svn path=/trunk/; revision=15275
2005-08-10 14:35:24 +00:00
Ronnie Sahlberg 39ab2568aa convert to tvb_get_ephemeral_stringz() and fix an obvious memleak
svn path=/trunk/; revision=15274
2005-08-10 14:28:18 +00:00
Ronnie Sahlberg 9599cf9e3b add new function tvb_get_ephemeral_stringz()
svn path=/trunk/; revision=15273
2005-08-10 14:25:59 +00:00
Ronnie Sahlberg efa1f43005 convert some tvb_fake_unicode() to tvb_get_ephemeral_faked_unicode()
svn path=/trunk/; revision=15272
2005-08-10 14:17:27 +00:00
Ronnie Sahlberg b4441e6748 rename ep_tvb_fake_unicode() to tvb_get_ephemeral_faked_unicode() and update the README file.
svn path=/trunk/; revision=15271
2005-08-10 13:56:34 +00:00
Ronnie Sahlberg ec3ab9ec3e rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the documentation in README.developer
svn path=/trunk/; revision=15270
2005-08-10 13:41:13 +00:00
Ronnie Sahlberg 19dd9f8159 ememify tywo more tvb_get_string()
svn path=/trunk/; revision=15269
2005-08-10 13:01:16 +00:00
Ulf Lamping 0dc9fb3d4a various code cleanup:
-use g_snprintf instead of sprintf and snprintf
-use g_strdup_printf where appropriate
-remove #include "snprintf.h" (as only g_snprintf should be used)
-replace some more alloc/realloc/calloc/free with their glib pendants

svn path=/trunk/; revision=15264
2005-08-08 18:50:39 +00:00
Jörg Mayer 979636e8f7 OK, so Didier was probably right using $^ :-)
svn path=/trunk/; revision=15262
2005-08-08 16:53:09 +00:00
Jörg Mayer 83461b1e6a Didier Gautheron:
A small patch for compiling ethereal outside the source tree.


svn path=/trunk/; revision=15261
2005-08-08 14:17:42 +00:00
Ronnie Sahlberg f3f2f6312b From
Eric Wedel

Add a preference to RPC (default off) that will heuristically attempt to find
PDUs starting in the middle of a segment.



svn path=/trunk/; revision=15260
2005-08-08 09:52:59 +00:00
Ronnie Sahlberg 3c0f522818 updates from Anders B
Regenerate gsm ss and gsm map



svn path=/trunk/; revision=15259
2005-08-08 08:53:05 +00:00
Guy Harris 4c20433d0b Centralize the code to create the subtree for RSVP objects and to put
the length and object class items into that tree.  Put the object class
item into the tree as a visible item, rather than as a hidden item and
as a text entry.

Add some additional length checks.

svn path=/trunk/; revision=15258
2005-08-08 07:27:14 +00:00
Ronnie Sahlberg a5aad765f3 from Dominique Bastien
small update for slowprotocols


svn path=/trunk/; revision=15257
2005-08-07 23:39:00 +00:00
Guy Harris 3d3dbb9b15 DHCP Failover runs over TCP; use tcp_dissect_pdus.
There's no need to build a list of all the options and then dissect them
individually; just have one loop that dissects them.  (The full list
wasn't being freed, so we were leaking memory.)

Add some more sanity checks.

Clean up a bunch of other things.

svn path=/trunk/; revision=15255
2005-08-07 20:06:01 +00:00
Guy Harris 194fdb6676 Fix the spelling of "transferred".
Fix the sizes of some items to match what's in the I-D and what's being
fetched from the packet.

Check for the length of items before doing *anything* with the item,
including fetching the data from the packet.  Just put a "bad length"
indication into the protocol tree; don't abort the dissection (we can
just move on to the next TLV).

svn path=/trunk/; revision=15254
2005-08-07 18:03:34 +00:00
Guy Harris 84cf5472e9 If a dissector writer directly throws DissectorError, don't punish the
user by crashing due to a null pointer dereference, punish the dissector
writer by saying he or she didn't bother providing an explanation of the
error.

The exception message isn't a const string any more; make the
"exception_message" argument to "show_exception()" a "char *", not a
"const char *".

svn path=/trunk/; revision=15251
2005-08-06 21:38:43 +00:00
Guy Harris f618b54d36 Support throwing an exception with a null message pointer, and have the
message not be const (as we generate messages with "g_strdup_sprintf()",
which means they need to be freed; using a null message means that we
don't have to use a special string for exceptions with no message, and
don't have to worry about not freeing that).

Have THROW() throw an exception with a null message pointer.  (This
means that you crash if you throw DissectorError with THROW().  Don't do
that - it means you don't get a more detailed explanation of the
dissector problem.  Use the DISSECTOR_ASSERT, etc. macros in
epan/proto.h instead.)

Free the exception message for DissectorError, as it's mallocated.

svn path=/trunk/; revision=15250
2005-08-06 19:58:45 +00:00
Gerald Combs b226f35d6d Increase the size of some variables so that we don't overflow them and loop
forever.  Fixes bug 320.

svn path=/trunk/; revision=15245
2005-08-06 15:18:45 +00:00
Michael Tüxen fd79f5eb9c Update to
* http://www.ietf.org/internet-drafts/draft-ietf-rserpool-common-param-09.txt
 * http://www.ietf.org/internet-drafts/draft-ietf-rserpool-enrp-12.txt
 * http://www.ietf.org/internet-drafts/draft-ietf-rserpool-asap-12.txt


svn path=/trunk/; revision=15243
2005-08-06 12:02:34 +00:00
Guy Harris b8bb6b495c Squelch more const pointer warnings.
svn path=/trunk/; revision=15242
2005-08-06 10:31:27 +00:00
Guy Harris ca6ddf3e8d Don't assign "" to a string that's only used after it's assigned to.
"tvb_fake_unicode()" never returns a null pointer, so there's no need to
check for it; there's also no need to check that it's not an empty
string before freeing it, as it's always assigned a g_malloc()ed string.

It also takes as an argument the number of Unicode characters in the
string, not the number of bytes in the string.

Use "format_text()" when adding a string to the Info column, in case
it has non-printable characters.

Don't use "proto_tree_add_string_format()" if you don't have to.

svn path=/trunk/; revision=15239
2005-08-06 09:23:28 +00:00
Guy Harris 4ce075fb78 Use a NULL value for di->xfer as an indication that we don't know the
transfer context; that way, we don't have to make "di->xfer" a "const"
pointer, and can thus pass it to "g_free()" (if non-null) without
the compiler whining at us.

Note that telling the user to "click on ASSOC request" is not the best
thing to do, unless we simply cannot determine the right ASSOC request
to click on.

svn path=/trunk/; revision=15238
2005-08-06 09:18:52 +00:00
Guy Harris 7b31da8b11 DissectorError is not supposed to be directly thrown; one should use the
various DISSECTOR_ macros, so the error message includes an indication
of the problem, and the file and line number.

svn path=/trunk/; revision=15237
2005-08-06 04:01:38 +00:00
Guy Harris 5fb6e97fb4 Squelch more const warnings (and fix some memory leaks that found).
_U_-ify some unused arguments, rather than assigning them to themselves.

Un-constify one variable that gets assigned a mallocated pointer.

Clean up indentation.

svn path=/trunk/; revision=15236
2005-08-06 03:44:55 +00:00
Gerald Combs b992c73391 In packet-frame.c, don't free static memory when we throw a
DissectorError.  In packet-kerberos.c, restore pinfo->private_data if
we throw an exception, which keeps the SMB dissector from throwing
a DissectorError.  Initialize variables in other places to squelch
valgrind warnings.

svn path=/trunk/; revision=15235
2005-08-06 03:43:42 +00:00
Guy Harris 312c524a4c Squelch another const warning.
svn path=/trunk/; revision=15234
2005-08-06 01:39:51 +00:00
Ulf Lamping 149786d563 replace malloc and alike calls by their GLib pendants -> g_malloc
svn path=/trunk/; revision=15232
2005-08-05 23:58:58 +00:00