obnox/wireshark/wip.git
19 years agobugfix: when no packets were captured, don't call cf_cb_live_capture_finished after...
ulfl [Sun, 10 Apr 2005 15:35:41 +0000 (15:35 +0000)]
bugfix: when no packets were captured, don't call cf_cb_live_capture_finished after closing the capture file

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14039 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agorefactoring of the capture startup (while the capture parent waits for the child...
ulfl [Sun, 10 Apr 2005 14:29:12 +0000 (14:29 +0000)]
refactoring of the capture startup (while the capture parent waits for the child to start)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14038 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agofix descriptive texts, so they fit into the window
ulfl [Sun, 10 Apr 2005 13:43:07 +0000 (13:43 +0000)]
fix descriptive texts, so they fit into the window

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14037 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoClean up indentation.
guy [Sun, 10 Apr 2005 08:55:56 +0000 (08:55 +0000)]
Clean up indentation.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14036 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoClean up white space, and tweak a comment slightly ("message" in the
guy [Sun, 10 Apr 2005 08:51:46 +0000 (08:51 +0000)]
Clean up white space, and tweak a comment slightly ("message" in the
error message case referred to the error message text, not the message
on the pipe).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14035 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFix indentation.
guy [Sun, 10 Apr 2005 08:31:27 +0000 (08:31 +0000)]
Fix indentation.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14034 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoMake it slightly clearer that the bitwise AND operator evaluates to a
guy [Sun, 10 Apr 2005 08:28:08 +0000 (08:28 +0000)]
Make it slightly clearer that the bitwise AND operator evaluates to a
Boolean value that's true if any of the bits in question are set and
false if none of them are, not to an integer or slice value with the
only the bits set in both values set.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14033 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoKRB_ERROR can be returned and it is not encapsulated
sahlberg [Sat, 9 Apr 2005 01:28:23 +0000 (01:28 +0000)]
KRB_ERROR can be returned and it is not encapsulated

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14032 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFix brokenness from previous patch.
gerald [Fri, 8 Apr 2005 20:28:24 +0000 (20:28 +0000)]
Fix brokenness from previous patch.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14031 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd a length check.
gerald [Fri, 8 Apr 2005 19:14:05 +0000 (19:14 +0000)]
Add a length check.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14030 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd a length check, fix up some comments.
gerald [Fri, 8 Apr 2005 19:09:46 +0000 (19:09 +0000)]
Add a length check, fix up some comments.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14029 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Martin M
sahlberg [Fri, 8 Apr 2005 11:25:18 +0000 (11:25 +0000)]
From Martin M
updates to MGCP
checked in per Anders B request   hope it compiles

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14028 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Neil Kettle
sahlberg [Fri, 8 Apr 2005 10:28:44 +0000 (10:28 +0000)]
From Neil Kettle
Fix two potential buffer overflow bugs in fc els

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14027 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Didier:
sahlberg [Thu, 7 Apr 2005 12:00:03 +0000 (12:00 +0000)]
From Didier:

optimization for COLUMNS to make ethereal faster when filtering

optimization to make the slow find_protocol_by_id() fast.
(idea from Didier, implementation modified by me to be less intrusive)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14026 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoupdating Mark C Browns information
sahlberg [Thu, 7 Apr 2005 10:04:50 +0000 (10:04 +0000)]
updating Mark C Browns information

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14025 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agomake the ip ip field we use as the reassembly key a bit more
sahlberg [Thu, 7 Apr 2005 09:44:58 +0000 (09:44 +0000)]
make the ip ip field we use as the reassembly key a bit more
"unique" by mixing in the source and destination address.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14024 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Francisco Alcoba
sahlberg [Thu, 7 Apr 2005 09:14:35 +0000 (09:14 +0000)]
From Francisco Alcoba
Very cool ASCII art version of viop graphs

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14023 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Greg Morris
sahlberg [Thu, 7 Apr 2005 08:32:49 +0000 (08:32 +0000)]
From Greg Morris
Fix the breakage from my previous patch

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14022 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoadd Ilya Konstantinov
ulfl [Wed, 6 Apr 2005 21:28:02 +0000 (21:28 +0000)]
add Ilya Konstantinov

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14021 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agofrom Ilya Konstantinov: fixed a bug as DND wasn't working with GNOME, I've also added...
ulfl [Wed, 6 Apr 2005 21:24:00 +0000 (21:24 +0000)]
from Ilya Konstantinov: fixed a bug as DND wasn't working with GNOME, I've also added a comment how GNOME handles these things

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14020 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agouse proto_item_appent_text() instead of proto_item_append_string() since the hf field...
sahlberg [Tue, 5 Apr 2005 20:20:21 +0000 (20:20 +0000)]
use proto_item_appent_text() instead of proto_item_append_string() since the hf field is not neccessarily a FT_STRING value always.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14019 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoTry not to call proto_tree_add_text() with negative lengths in error messages.
gerald [Tue, 5 Apr 2005 14:40:59 +0000 (14:40 +0000)]
Try not to call proto_tree_add_text() with negative lengths in error messages.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14018 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Francisco Alcoba
sahlberg [Tue, 5 Apr 2005 08:14:58 +0000 (08:14 +0000)]
From Francisco Alcoba
patch for viop analysis to fix the breakage from the tap reordering patch

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14017 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd length checks so that we don't overflow buffers.
gerald [Mon, 4 Apr 2005 21:44:53 +0000 (21:44 +0000)]
Add length checks so that we don't overflow buffers.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14016 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Lars Ruoff
sahlberg [Mon, 4 Apr 2005 20:12:18 +0000 (20:12 +0000)]
From Lars Ruoff
Make it possible to tap 4 PDUs from one frame

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14015 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoDon't generate a "dissector bug" warning in cases where a dissector calls
gerald [Mon, 4 Apr 2005 18:10:42 +0000 (18:10 +0000)]
Don't generate a "dissector bug" warning in cases where a dissector calls

    proto_tree_add_*(tree, tvb, offset, 0, ...);

and "offset" is greater than the length remaining in the tvbuff.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14014 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Cvetan Ivanov
sahlberg [Mon, 4 Apr 2005 07:40:07 +0000 (07:40 +0000)]
From Cvetan Ivanov

Updates to Q931, SM and ISUP

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14013 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agothe definition of tcp address structure changed between version 3 and version 4
sahlberg [Mon, 4 Apr 2005 05:56:57 +0000 (05:56 +0000)]
the definition of tcp address structure changed between version 3 and version 4

make version 4 dissect tcp addr structure properly

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14012 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Kenny Shumard
sahlberg [Mon, 4 Apr 2005 05:10:45 +0000 (05:10 +0000)]
From Kenny Shumard
Update for IAX2

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14011 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Martin Mathieson
sahlberg [Mon, 4 Apr 2005 04:51:47 +0000 (04:51 +0000)]
From Martin Mathieson

small update for SIP request/response matching.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14010 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agothe netware dissector is the only dissector that accesses fvalue_ functions directly.
sahlberg [Mon, 4 Apr 2005 04:14:41 +0000 (04:14 +0000)]
the netware dissector is the only dissector that accesses fvalue_ functions directly.

this made it crash for some packets when the filter speedup patch was enabled, since some of these finfo nodes did no longer exist.

as far as i can tell the only other instances of fvalue_ usage is from some tap based functions but all those do take care to make sure that the fields being accessed are all part of a filter, and will thus never be optimized away.

The patch does two things

1, refactor the code but do not change the logic to reduce the number of places where the external fvalue_ functions are called from.

2, add code to force the tree to be visible (and thus change the code) so that the speedup patch will not optimize these fiuelds away.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14009 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd a couple of length checks.
gerald [Mon, 4 Apr 2005 03:01:40 +0000 (03:01 +0000)]
Add a couple of length checks.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14008 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFix up the table of encapsulation type strings to match the new set of
guy [Sun, 3 Apr 2005 12:05:05 +0000 (12:05 +0000)]
Fix up the table of encapsulation type strings to match the new set of
encapsulation types.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14007 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoMake editcap use wtap_read(); that eliminates the last user of
guy [Sun, 3 Apr 2005 11:00:49 +0000 (11:00 +0000)]
Make editcap use wtap_read(); that eliminates the last user of
wtap_loop(), so eliminate wtap_loop().

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14006 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Tim Endean:
etxrab [Sat, 2 Apr 2005 18:51:38 +0000 (18:51 +0000)]
From Tim Endean:
 1) Return errors.
 2) Return rejects.

 Numerous other bugs fixed.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14005 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Tim Endean:
etxrab [Sat, 2 Apr 2005 18:50:57 +0000 (18:50 +0000)]
From Tim Endean:
 1) Return errors.
 2) Return rejects.

 Numerous other bugs fixed.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14004 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agofrom Jeremy Jouglet
sahlberg [Fri, 1 Apr 2005 21:23:40 +0000 (21:23 +0000)]
from Jeremy Jouglet
some GTP updates  and some tips for those using cygwin

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14003 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoupdate for padbyte on old juniper boxens
sahlberg [Fri, 1 Apr 2005 21:04:55 +0000 (21:04 +0000)]
update for padbyte on old juniper boxens

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14002 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agofrom Lars R
sahlberg [Fri, 1 Apr 2005 20:55:33 +0000 (20:55 +0000)]
from Lars R
TAP order of caller update

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14001 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agotiny bugfix for gsmmap
sahlberg [Fri, 1 Apr 2005 11:12:32 +0000 (11:12 +0000)]
tiny bugfix for gsmmap

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14000 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Mark C Brown NETTL updates
sahlberg [Fri, 1 Apr 2005 10:17:05 +0000 (10:17 +0000)]
From Mark C Brown   NETTL updates

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13999 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoGive it an RCS ID.
guy [Fri, 1 Apr 2005 10:04:32 +0000 (10:04 +0000)]
Give it an RCS ID.

Set the svn:keywords and svn:eol-style properties to the standard values.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13998 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Giles Scott
sahlberg [Fri, 1 Apr 2005 09:48:34 +0000 (09:48 +0000)]
From Giles Scott
New protocol  ARUBA ADP

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13997 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Charlie Lenahan: support for some HP switch protocol.
guy [Fri, 1 Apr 2005 09:43:19 +0000 (09:43 +0000)]
From Charlie Lenahan: support for some HP switch protocol.

Fix some damage to the AUTHORS file.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13996 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoGet rid of an unused variable.
guy [Fri, 1 Apr 2005 09:20:39 +0000 (09:20 +0000)]
Get rid of an unused variable.

Include "packet-gsm_map.h", not "packet-gsm_map.c".

Check in the regenerated CAMEL dissector.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13995 f5534014-38df-0310-8fa8-9805f1628bb7

19 years ago"get_conv_info()" doesn't use the tvbuff passed to it, so don't pass it
guy [Fri, 1 Apr 2005 09:19:29 +0000 (09:19 +0000)]
"get_conv_info()" doesn't use the tvbuff passed to it, so don't pass it
one.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13994 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoRename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as
guy [Fri, 1 Apr 2005 09:08:27 +0000 (09:08 +0000)]
Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as
it's used to register a callback for a tap listener invoked if the
specified command line argument is specified to the "-z" flag.

Move it, along with routines to:

look up a "-z" argument in the table constructed by
"register_tap_listener_cmd_arg()" and either save the full
argument to "-z" and the corresponding listener if it's found or
return a failure indication if it isn't;

list the available tap listeners;

call the "init" routines for the tap listeners saved in the
table above;

and have Ethereal and Tethereal use those routines.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13993 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoEdits, update to current "all GTK+ stuff is common" state.
guy [Fri, 1 Apr 2005 08:47:42 +0000 (08:47 +0000)]
Edits, update to current "all GTK+ stuff is common" state.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13992 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoDon't assume only one "-z" argument will be given on the command line;
guy [Fri, 1 Apr 2005 05:45:08 +0000 (05:45 +0000)]
Don't assume only one "-z" argument will be given on the command line;
add information for each tap to a list, and set up all the taps in the
list.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13991 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoGive the RFC number for IGMPv3.
guy [Fri, 1 Apr 2005 04:19:28 +0000 (04:19 +0000)]
Give the RFC number for IGMPv3.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13990 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFix a couple of "proto_tree_add_text()" calls to pass the right arguments.
guy [Thu, 31 Mar 2005 23:48:08 +0000 (23:48 +0000)]
Fix a couple of "proto_tree_add_text()" calls to pass the right arguments.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13989 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd a link to a more recent Apple page describing DSI.
guy [Thu, 31 Mar 2005 22:04:59 +0000 (22:04 +0000)]
Add a link to a more recent Apple page describing DSI.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13988 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoIncluded packet-gsm_map.h and removed unpack_digits as it now is exported from gsm_ma...
etxrab [Thu, 31 Mar 2005 18:51:14 +0000 (18:51 +0000)]
Included packet-gsm_map.h and removed unpack_digits as it now is exported from gsm_map, as it isn't used
yet no need to regenerate the dissector now.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13987 f5534014-38df-0310-8fa8-9805f1628bb7

19 years ago From Jacques, Olivier: Length of digit_str wrongly calculated.
etxrab [Thu, 31 Mar 2005 18:41:44 +0000 (18:41 +0000)]
 From Jacques, Olivier: Length of digit_str wrongly calculated.

 Free the string, fix dissection of some elements.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13986 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Jacques, Olivier: Length of digit_str wrongly calculated.
etxrab [Thu, 31 Mar 2005 18:39:45 +0000 (18:39 +0000)]
From Jacques, Olivier: Length of digit_str wrongly calculated.

Free the string, fix dissection of some elements.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13985 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Jacques, Olivier: Length of digit_str wrongly calculated.
etxrab [Thu, 31 Mar 2005 18:34:25 +0000 (18:34 +0000)]
From Jacques, Olivier: Length of digit_str wrongly calculated.

Free the string, fix dissection of some elements.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13984 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agohttp://www.shaftnet.org/~pizza/software/capturefrm.txt is currently not
guy [Thu, 31 Mar 2005 07:59:43 +0000 (07:59 +0000)]
shaftnet.org/~pizza/software/capturefrm.txt is currently not
available; add an archive.org URL for it.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13983 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFurther IE dissection updates.
etxrab [Thu, 31 Mar 2005 04:50:48 +0000 (04:50 +0000)]
Further IE dissection updates.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13982 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoSmall bug fix
etxrab [Wed, 30 Mar 2005 19:10:26 +0000 (19:10 +0000)]
Small bug fix

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13981 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoImprove some debug messages.
etxrab [Wed, 30 Mar 2005 19:09:48 +0000 (19:09 +0000)]
Improve some debug messages.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13980 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoUpdate and small bugfix
etxrab [Wed, 30 Mar 2005 19:08:39 +0000 (19:08 +0000)]
Update and small bugfix

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13979 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFix the handling of the length parameter in the DATA chunk.
tuexen [Wed, 30 Mar 2005 16:16:07 +0000 (16:16 +0000)]
Fix the handling of the length parameter in the DATA chunk.
This is a quick fix. A systematic follows...

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13978 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Ulf Lamping:
etxrab [Wed, 30 Mar 2005 13:37:27 +0000 (13:37 +0000)]
From Ulf Lamping:
Fix a "off by one" error.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13977 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Tim
sahlberg [Wed, 30 Mar 2005 09:18:25 +0000 (09:18 +0000)]
From Tim
small bugfix for packet-ber.c if packet is malformed, prevent dereferenceing a null pointer

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13976 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoMake it a bit clearer that what "-w" writes is raw binary packet data,
guy [Wed, 30 Mar 2005 01:06:12 +0000 (01:06 +0000)]
Make it a bit clearer that what "-w" writes is raw binary packet data,
not the result of dissecting that data.

Note that "-F" applies to the output of "-w", that "-S" says "dissect
and print even if you're doing '-w'", and that "-T" applies to the
dissected output, not the "-w" output.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13975 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd a tvb_ensure_bytes_exist() and fix a few other offset-related bugs.
gerald [Tue, 29 Mar 2005 22:23:09 +0000 (22:23 +0000)]
Add a tvb_ensure_bytes_exist() and fix a few other offset-related bugs.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13974 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Martin Mathieson:
etxrab [Tue, 29 Mar 2005 20:58:03 +0000 (20:58 +0000)]
From Martin Mathieson:
- bump up SDP_MAX_PAYLOAD_TYPES to 20 (I have an mgcp capture where a media
gateway responded with 12 media types, resulting in a crash).  Probably more
care needs to be taken while parsing the list of media types though...

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13973 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Martin Mathieson :
etxrab [Tue, 29 Mar 2005 20:56:42 +0000 (20:56 +0000)]
From Martin Mathieson :

- allow dissector to show "MGCP/SDP" in the Protocol column, at least when
the 'Display the number of MGCP messages' preference is switched off
- when displaying the command verb, show in the tree the full verb name as
well as the 4-letter code
- show the links to response and request messages as being [generated]
- fixed some indentation problems

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13972 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoRemove a g_assert() left over from debugging.
gerald [Tue, 29 Mar 2005 19:52:04 +0000 (19:52 +0000)]
Remove a g_assert() left over from debugging.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13971 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoUse an offset of 0 in PER_NOT_DECODED_YET() so that we don't generate a
gerald [Tue, 29 Mar 2005 16:11:11 +0000 (16:11 +0000)]
Use an offset of 0 in PER_NOT_DECODED_YET() so that we don't generate a
dissector bug error.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13970 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFix a compiler warning.
gerald [Tue, 29 Mar 2005 16:02:02 +0000 (16:02 +0000)]
Fix a compiler warning.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13969 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd a tvb_ensure_bytes_exist().
gerald [Tue, 29 Mar 2005 15:38:11 +0000 (15:38 +0000)]
Add a tvb_ensure_bytes_exist().

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13968 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoREADME.developer says:
gerald [Tue, 29 Mar 2005 14:56:09 +0000 (14:56 +0000)]
README.developer says:

"PROTOABBREV     A name for the protocol for use in filter expressions;
                 it should contain only lower-case letters, digits, and
                 hyphens."

In proto_register_protocol(), generate a warning if PROTOABBREV contains
invalid characters.  Along with the list above, allow underscores and
periods.  Fix up whitespace.

Lower-case PROTOABBREV in several dissectors.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13967 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agofrom Sid
sahlberg [Tue, 29 Mar 2005 12:36:40 +0000 (12:36 +0000)]
from Sid
updates to FTAM

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13966 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agofrom Sid
sahlberg [Tue, 29 Mar 2005 12:27:13 +0000 (12:27 +0000)]
from Sid
bugfix for ACSE

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13965 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agofrom Lars Ruoff
sahlberg [Tue, 29 Mar 2005 10:58:08 +0000 (10:58 +0000)]
from Lars Ruoff
rtp analysis optimization

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13964 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd a tvb_ensure_bytes_exist().
gerald [Mon, 28 Mar 2005 22:35:35 +0000 (22:35 +0000)]
Add a tvb_ensure_bytes_exist().

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13963 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agosome minor changes
ulfl [Mon, 28 Mar 2005 21:35:21 +0000 (21:35 +0000)]
some minor changes

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13962 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agobugfixes: bring non real-time captures back to former behaviour, other minor fixes
ulfl [Mon, 28 Mar 2005 21:05:53 +0000 (21:05 +0000)]
bugfixes: bring non real-time captures back to former behaviour, other minor fixes

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13961 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoMinor change to Call-ID dissector to set up object line.
ashokn [Mon, 28 Mar 2005 19:32:39 +0000 (19:32 +0000)]
Minor change to Call-ID dissector to set up object line.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13960 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoPass a NULL instead of an empty string in the value_string/true_false_string
gerald [Mon, 28 Mar 2005 19:19:19 +0000 (19:19 +0000)]
Pass a NULL instead of an empty string in the value_string/true_false_string
field of hf_rtp_payload_type.  This should fix the "values output" test failures
in the FreeBSD builder.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13959 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agobugfix: don't call tvb_length_remaining() if tvb is NULL
ulfl [Mon, 28 Mar 2005 18:08:31 +0000 (18:08 +0000)]
bugfix: don't call tvb_length_remaining() if tvb is NULL
but what to do instead?

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13958 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agovarious (minor) capture code cleanup
ulfl [Mon, 28 Mar 2005 18:04:09 +0000 (18:04 +0000)]
various (minor) capture code cleanup

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13957 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agofix Solaris build (I've removed O_BINARY)
ulfl [Mon, 28 Mar 2005 16:14:34 +0000 (16:14 +0000)]
fix Solaris build (I've removed O_BINARY)

rename sync_mode to real_time_mode, as we using sync_mode all the time now, so the name is misleading

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13956 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoIn tvb_get_string(), throw an exception if our length is less than zero.
gerald [Mon, 28 Mar 2005 15:55:47 +0000 (15:55 +0000)]
In tvb_get_string(), throw an exception if our length is less than zero.

Add a message block length check to the AIM dissector.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13955 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoremove capture_child flag from capture_opts as it's no longer required
ulfl [Mon, 28 Mar 2005 15:31:13 +0000 (15:31 +0000)]
remove capture_child flag from capture_opts as it's no longer required

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13954 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoa lot more capture engine code cleanup
ulfl [Mon, 28 Mar 2005 14:39:31 +0000 (14:39 +0000)]
a lot more capture engine code cleanup

most notably:

- moved opening of safe_file to the capture child (capture_loop.c)
- removed save_file_fd from capture_opts (no longer need to have it global)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13953 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoThe "cf" field of a "capture_options" structure is a "void *" and, in
guy [Mon, 28 Mar 2005 03:08:29 +0000 (03:08 +0000)]
The "cf" field of a "capture_options" structure is a "void *" and, in
practice, it points to a "capture_file" structure; print it with "%p",
not "%s".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13952 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoThe "application_context_version" variables in the CAMEL and GSM MAP
guy [Mon, 28 Mar 2005 02:53:49 +0000 (02:53 +0000)]
The "application_context_version" variables in the CAMEL and GSM MAP
dissectors aren't needed outside the dissectors, and having more than
one of them exported causes build problems, at least on OS X - make them
static.

Fix indentation.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13951 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoMake hf_oampdu_info_state_parser "BASE_HEX" instead of "8", so that we don't
gerald [Mon, 28 Mar 2005 02:03:45 +0000 (02:03 +0000)]
Make hf_oampdu_info_state_parser "BASE_HEX" instead of "8", so that we don't
throw an assertion in hfinfo_uint_vals_format().

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13950 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agomajor capture engine rework: use two task model for EVERY capture mode
ulfl [Mon, 28 Mar 2005 00:19:02 +0000 (00:19 +0000)]
major capture engine rework: use two task model for EVERY capture mode

rework of the -b command line parameter (for Ethereal and Tethereal)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13949 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agomake skinny compile again
sahlberg [Sun, 27 Mar 2005 22:56:32 +0000 (22:56 +0000)]
make skinny compile again

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13948 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFix a typo
etxrab [Sun, 27 Mar 2005 22:11:09 +0000 (22:11 +0000)]
Fix a typo

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13947 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoAdd Jacques, Olivier as the Camel dissector author.
etxrab [Sun, 27 Mar 2005 21:53:28 +0000 (21:53 +0000)]
Add Jacques, Olivier as the Camel dissector author.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13946 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Jacques, Olivier:
etxrab [Sun, 27 Mar 2005 21:44:26 +0000 (21:44 +0000)]
From Jacques, Olivier:
Camel dissector

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13945 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoGet rid of an unused variabnle
etxrab [Sun, 27 Mar 2005 21:40:27 +0000 (21:40 +0000)]
Get rid of an unused variabnle

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13944 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoFrom Jacques, Olivier:
etxrab [Sun, 27 Mar 2005 21:39:38 +0000 (21:39 +0000)]
From Jacques, Olivier:
The patch attached fixes it by creating a table of unique files at the
time of file deletion. This way, current asn2eth behaviour is not
modified.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13943 f5534014-38df-0310-8fa8-9805f1628bb7

19 years ago From Alejandro Vaquero :
etxrab [Sun, 27 Mar 2005 21:37:05 +0000 (21:37 +0000)]
 From  Alejandro Vaquero :
 Find attached a patch for SDP sessions to:
 - Dissect Dynamic payload types in RTP packets
 - Add the dynamic payload type description in RTP packets
 - Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13942 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoPrevious commit failed doing them one by one.
etxrab [Sun, 27 Mar 2005 21:14:48 +0000 (21:14 +0000)]
Previous commit failed doing them one by one.
 From  Alejandro Vaquero :
 Find attached a patch for SDP sessions to:
 - Dissect Dynamic payload types in RTP packets
 - Add the dynamic payload type description in RTP packets
 - Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13941 f5534014-38df-0310-8fa8-9805f1628bb7

19 years agoPrevious commit failed doing them one by one.
etxrab [Sun, 27 Mar 2005 21:14:15 +0000 (21:14 +0000)]
Previous commit failed doing them one by one.
 From  Alejandro Vaquero :
 Find attached a patch for SDP sessions to:
 - Dissect Dynamic payload types in RTP packets
 - Add the dynamic payload type description in RTP packets
 - Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13940 f5534014-38df-0310-8fa8-9805f1628bb7