Commit Graph

20438 Commits

Author SHA1 Message Date
Jeff Morriss 44328ec205 From David Buechi:
- don't show EPL src- and dst-address of SoC frame (same as SoA)
- show SoA requested service only if it's not "NO_SERVICE"
- NMT state in StatusResponse in words, not numbers
- don't show MC and PS flags in SoC (it's now configurable via "Preferences")

Furthermore I extended the value_string struct for the NMT-Command-IDs
(asnd_cid_vals). This change is used to fully decode the NMTRequest frames.

svn path=/trunk/; revision=21017
2007-03-10 15:06:11 +00:00
Jeff Morriss e9ca912aab From Joost Yervante Damad via bug 1383: support for Erlang Port Mapper Daemon
message dissection.

http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1383

svn path=/trunk/; revision=21016
2007-03-10 08:36:24 +00:00
Luis Ontanon 0c8d5247b6 Make sure ENDTRY is evaluated.
On windows if ENDTRY is not evaluated after a exception is being thrown wireshark will crash in dissect_packet() while attempting to pop the last frame of the exception stack.

svn path=/trunk/; revision=21015
2007-03-10 02:13:00 +00:00
Luis Ontanon 403fa20bf1 Make sure ENDTRY is evaluated.
On windows if ENDTRY is not evaluated after a exception is being thrown wireshark will crash in dissect_packet() while attempting to pop the last frame of the exception stack.

svn path=/trunk/; revision=21014
2007-03-10 02:11:51 +00:00
Luis Ontanon 9be42ac4dc Major cleanup of debug code and whitespace changes.
svn path=/trunk/; revision=21013
2007-03-10 02:04:57 +00:00
Ronnie Sahlberg 10588355f9 move some variable declarations to the start of the block.
many compilers do not support the nonstandard feature to declare variables in the middle of a block.



svn path=/trunk/; revision=21012
2007-03-09 20:02:25 +00:00
Jörg Mayer fb820f0a07 GCC warning fixes
epan/dissectors/
packet-bctp.c:
	no newline at end of file
packet-epl.c:
	C++ style comments are not allowed in ISO C90
packet-sccp.c:
	missing initializer
packet-sccp.h:
	comma at end of enumerator list
packet-sctp.c:
	suggest parentheses around assignment used as truth value
packet-vnc.c:
	control reaches end of non-void function
	pointer targets in passing argument 1 of 'g_strtod' differ in
		signedness
	pointer targets in passing argument 3 of 'vnc_client_to_server'
		differ in signedness
gtk/
main.c:
	C++ style comments are not allowed in ISO C90
u3.h:
	function declaration isn't a prototype

Other (trivial) stuff
packet-sccp.h:
	Add svn properties


svn path=/trunk/; revision=21011
2007-03-09 13:14:09 +00:00
Jörg Mayer 147d66441e dcerpc_procedure_name is actually a const char*, not just char*
svn path=/trunk/; revision=21010
2007-03-09 13:13:44 +00:00
Jörg Mayer f9560b982a Regenerated with current pidl compiler
svn path=/trunk/; revision=21009
2007-03-09 13:11:33 +00:00
Michael Tüxen da56836f74 Add HMAC Algo constants.
svn path=/trunk/; revision=21008
2007-03-09 10:49:23 +00:00
Gerald Combs 0e181d05c8 Fix for bug 1264 from Julian Cable:
I've refactored the offending code branch and added some comments so
  hopefully the intent is a bit clearer. The loop termination conditions
  are now obviously independent of the content on the wire (they were
  meant to be before, but I admit it was obscure). I've tried using the
  ephemeral memory routines.

Add a check for a maximum fragment count, and bail out of reassembly instead
of triggering an ep_alloc exception.  Add Julian to AUTHORS.  Update the 
release notes.

svn path=/trunk/; revision=21007
2007-03-09 01:40:30 +00:00
Ulf Lamping 3810cc0891 remove the separator above the "Export Selected Packet Bytes" context menu item
svn path=/trunk/; revision=21006
2007-03-08 23:48:59 +00:00
Ulf Lamping acefba187a from Sake Blok:
I have changed the patch according to your suggestions and also changed
the doc[book] files accordingly. I tested the patch and it does seem to
work fine on my test-system.

ULFL: In addition, I've added the en-/disabling to the other (already existing) Copy menu items - some just did nothing, some crashed if nothing was selected.
I've also sligthly changed the menu seperators and made both context menus look a bit more identical.

svn path=/trunk/; revision=21005
2007-03-08 23:37:55 +00:00
Luis Ontanon 78028f02b5 fix Bug 1370
LUA function all_field_infos() causes wire shark to terminate.

svn path=/trunk/; revision=21004
2007-03-08 23:00:28 +00:00
Luis Ontanon 7f413f1325 actually compile H.248.7
svn path=/trunk/; revision=21003
2007-03-08 22:59:44 +00:00
Jörg Mayer 736e5fdfef Whitespace changes
svn path=/trunk/; revision=21002
2007-03-08 14:49:14 +00:00
Luis Ontanon a3099a387c Yet another H.248 package: H.248.7 Gateway control protocol: Generic Announcement package
svn path=/trunk/; revision=21001
2007-03-08 09:59:16 +00:00
Luis Ontanon b6ab56f26d fix a syntax error on the last check-in...
svn path=/trunk/; revision=21000
2007-03-08 00:43:08 +00:00
Luis Ontanon 8c8595e496 avoid using an "uninitialized" start variable on gap blocks
svn path=/trunk/; revision=20999
2007-03-08 00:37:07 +00:00
Luis Ontanon cf0379278b in TSN tracking: handle the TSN rollover.
I'll keep TSN tracking disabled by default, as it slows down dissection significantly and eats tons of memory!

svn path=/trunk/; revision=20998
2007-03-08 00:18:25 +00:00
Stephen Fisher 7389b3fabd Add a "Bits/Tick" option to the IO Stats dialog to complement the
"Bytes/Tick" option.


svn path=/trunk/; revision=20997
2007-03-07 23:39:45 +00:00
Michael Tüxen af7bdd06db Add support for draft-ietf-rserpool-policies-04.txt.
svn path=/trunk/; revision=20996
2007-03-07 20:28:48 +00:00
Michael Tüxen 0204c1dc93 Fix a crash: You can not combine unsinged types like FT_INT32 and BASE_HEX.
svn path=/trunk/; revision=20995
2007-03-07 18:37:56 +00:00
Luis Ontanon 99f6a7feef props
svn path=/trunk/; revision=20994
2007-03-07 14:17:08 +00:00
Luis Ontanon 28764c409b another (very small) H.248 package, H.248.10 : Media gateway resource congestion handling package
svn path=/trunk/; revision=20993
2007-03-07 14:13:56 +00:00
Jörg Mayer d4ead590a1 Update from samba tree revision 21565 to 21739
============================ Samba log start ============
------------------------------------------------------------------------
r21567 | jelmer | 2007-02-27 21:35:56 +0100 (Tue, 27 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/tests/wireshark-ndr.pl

Add some more wireshark tests.
------------------------------------------------------------------------
r21568 | jelmer | 2007-02-27 22:37:31 +0100 (Tue, 27 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/tests/wireshark-ndr.pl

More tests.
------------------------------------------------------------------------
r21572 | jelmer | 2007-02-28 00:47:07 +0100 (Wed, 28 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm
   M /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
   M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
   M /branches/SAMBA_4_0/source/pidl/tests/typelist.pl

More work towards supporting tagged types.
------------------------------------------------------------------------
r21573 | jelmer | 2007-02-28 01:19:57 +0100 (Wed, 28 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm
   M /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
   M /branches/SAMBA_4_0/source/pidl/tests/typelist.pl

Remove more code that assumed all types are typedefs.
------------------------------------------------------------------------
r21574 | jelmer | 2007-02-28 01:28:14 +0100 (Wed, 28 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm
   M /branches/SAMBA_4_0/source/pidl/tests/ndr.pl

Fix handling of DECLARE.
------------------------------------------------------------------------
r21575 | jelmer | 2007-02-28 01:35:21 +0100 (Wed, 28 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm
   M /branches/SAMBA_4_0/source/pidl/tests/typelist.pl

Fix handling of is_scalar() for declares.
------------------------------------------------------------------------
r21578 | jelmer | 2007-02-28 02:51:37 +0100 (Wed, 28 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/README
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
   M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
   M /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl

Use utility function for naming pull/push/print functions.
------------------------------------------------------------------------
r21579 | jelmer | 2007-02-28 03:01:58 +0100 (Wed, 28 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
   M /branches/SAMBA_4_0/source/pidl/tests/samba-ejs.pl

Use utility function to determine function names in ejs code.
------------------------------------------------------------------------
r21584 | jelmer | 2007-02-28 14:25:53 +0100 (Wed, 28 Feb 2007) | 6 lines
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/librpc/idl/echo.idl
   M /branches/SAMBA_4_0/source/pidl/README
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm
   M /branches/SAMBA_4_0/source/pidl/tests/header.pl
   M /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
   M /branches/SAMBA_4_0/source/pidl/tests/typelist.pl

Support for tagged types has landed!

It's now possible to use "struct foo" without a typedef in IDL files.

echo_info4 is the first type that's been converted.

------------------------------------------------------------------------
r21586 | jelmer | 2007-02-28 15:56:46 +0100 (Wed, 28 Feb 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/MANIFEST

update manifest
------------------------------------------------------------------------
r21654 | jelmer | 2007-03-02 15:05:52 +0100 (Fri, 02 Mar 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
   M /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl

Add simple test for print functions.
------------------------------------------------------------------------
r21656 | jelmer | 2007-03-02 15:53:09 +0100 (Fri, 02 Mar 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   A /branches/SAMBA_4_0/source/lib/registry/tests
   A /branches/SAMBA_4_0/source/lib/registry/tests/generic.c (from /branches/SAMBA_4_0/source/torture/local/registry.c:21654)
   A /branches/SAMBA_4_0/source/lib/socket/testsuite.c (from /branches/SAMBA_4_0/source/torture/local/socket.c:21654)
   A /branches/SAMBA_4_0/source/lib/tdr/testsuite.c (from /branches/SAMBA_4_0/source/torture/local/tdr.c:21654)
   A /branches/SAMBA_4_0/source/lib/util/tests
   A /branches/SAMBA_4_0/source/lib/util/tests/file.c (from /branches/SAMBA_4_0/source/torture/local/util_file.c:21654)
   A /branches/SAMBA_4_0/source/lib/util/tests/idtree.c (from /branches/SAMBA_4_0/source/torture/local/idtree.c:21654)
   A /branches/SAMBA_4_0/source/lib/util/tests/strlist.c (from /branches/SAMBA_4_0/source/torture/local/util_strlist.c:21654)
   A /branches/SAMBA_4_0/source/librpc/tests
   A /branches/SAMBA_4_0/source/librpc/tests/binding_string.c (from /branches/SAMBA_4_0/source/torture/local/binding_string.c:21654)
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
   D /branches/SAMBA_4_0/source/torture/local/binding_string.c
   M /branches/SAMBA_4_0/source/torture/local/config.mk
   D /branches/SAMBA_4_0/source/torture/local/idtree.c
   D /branches/SAMBA_4_0/source/torture/local/registry.c
   D /branches/SAMBA_4_0/source/torture/local/socket.c
   D /branches/SAMBA_4_0/source/torture/local/tdr.c
   D /branches/SAMBA_4_0/source/torture/local/util_file.c
   D /branches/SAMBA_4_0/source/torture/local/util_strlist.c

Move tests a bit closer to the things they test, should make syncing with samba3 easier.
------------------------------------------------------------------------
r21681 | jelmer | 2007-03-04 15:16:52 +0100 (Sun, 04 Mar 2007) | 5 lines
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/TODO
   M /branches/SAMBA_4_0/source/pidl/idl.yp
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/tests/header.pl
   M /branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl

Fix bug in the parsing code that parsed "struct foo;" the same as 
"struct foo {};". 

Reported by one of the OpenChange folks, thanks!

------------------------------------------------------------------------
r21682 | jelmer | 2007-03-04 15:31:18 +0100 (Sun, 04 Mar 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm

Remove accidently committed debug command.
------------------------------------------------------------------------
r21690 | jelmer | 2007-03-05 01:03:44 +0100 (Mon, 05 Mar 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/tests/header.pl
   M /branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl

Test use of typedef /and/ struct name
------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============

svn path=/trunk/; revision=20992
2007-03-07 07:55:00 +00:00
Jörg Mayer 83ee2dbcfa Update manuf and faq
svn path=/trunk/; revision=20991
2007-03-07 07:50:48 +00:00
Gerald Combs b7d30175c0 Fix a couple of off-by-one overflows reported in bug 1415. Update the
release notes accordingly.

svn path=/trunk/; revision=20990
2007-03-07 01:17:24 +00:00
Gerald Combs 773cd3dee8 Under Windows, try to use the first interface that looks like Ethernet
as the capture interface.  This should fix the capture test failures on
the Windows builder.

svn path=/trunk/; revision=20989
2007-03-06 23:55:00 +00:00
Luis Ontanon 7a213ffb15 two inverted value_strings
svn path=/trunk/; revision=20988
2007-03-06 23:23:59 +00:00
Luis Ontanon 170386ac5b terminate an array!
svn path=/trunk/; revision=20987
2007-03-06 23:16:59 +00:00
Luis Ontanon 37802e5e21 Pubate Satienpoch keeps finding typos and incongruences in H.248 packages:
- for Q.1950 I used the value_string for GB events as the value_string for the parameters of BNC change.

> In observed event descriptor, it is called “eventName”, but in event descriptor,
> it is called “pkgdName”. It should be “eventName” in both cases.

svn path=/trunk/; revision=20986
2007-03-06 22:13:12 +00:00
Ulf Lamping e30640be45 PROFINET RT frames can also be transported over UDP Port 0x8892 - to be routable
svn path=/trunk/; revision=20985
2007-03-06 21:54:53 +00:00
Anders Broman ecbf96d04e From Stig Bjørlykke:
When dumping elements in a constructor in dissect_unknown_ber the last element is not put in the correct subtree, because the while- loop does not include the header length when checking for the end.

svn path=/trunk/; revision=20984
2007-03-06 21:03:27 +00:00
Anders Broman fd3a3c5d52 More dissecting of H.263 according to RFC 4629.
svn path=/trunk/; revision=20983
2007-03-06 20:58:14 +00:00
Martin Mathieson 262de6677a Append ms calculation to DLSR field.
Show number of bytes derived from length field.

svn path=/trunk/; revision=20982
2007-03-06 13:37:39 +00:00
Luis Ontanon c0a373d26b + get the Acks in the block where they belong.
+ change the ack tree root to be the TSN being acked and have the chunk frame and rtt under it.

still to do: TSN wrap

svn path=/trunk/; revision=20981
2007-03-06 00:48:46 +00:00
Stephen Fisher 2865e52843 Export Object code/documentation updates:
- Note in the user's guide that export object is not available 
   in GTK1 builds of Wireshark.
 - Make scanning through the slists more efficient
 - Use new tap.c function called have_tap_listener() to only save
   object payload data when the export object listener is actively
   listening for it.
 - Save objects in the HTTP dissector with g_malloc() instead of
   se_malloc() and free it when we're done with it - when the
   export object window is closed (Fixes bug #1412)
 - Various minor improvements


svn path=/trunk/; revision=20980
2007-03-06 00:36:25 +00:00
Stephen Fisher 8d8452b419 Introduce a new function called have_tap_listener(int tap_id) to
tell if a specific tap id is currently listening for data.
This complements the function have_tap_listeners(), which checks
to see if any tap is currently listening.


svn path=/trunk/; revision=20979
2007-03-06 00:35:35 +00:00
Luis Ontanon 61c8b55913 prepare for in-tree call tracing of bssap and ranap.
svn path=/trunk/; revision=20978
2007-03-05 23:50:08 +00:00
Anders Broman fc16dece75 From Mikael Magnusson:
This patch adds support for key-mgmt session attributes in SDP (defined in RFC 4567). The patch also contains a Multimedia Internet KEYing (MIKEY is defined in RFC 3830) dissector plugin for "mikey" key-mgmt data.

svn path=/trunk/; revision=20977
2007-03-05 23:11:11 +00:00
Luis Ontanon 1b65a2e986 + Quick and dirty fix in association matching code to avoid a vtag==0 (init) to "curse" an entire association. Yes, it has to be reworked... but I need it for debugging purposes.
+ Add the fields sctp.sack_gap_block_start_tsn and sctp.sack_gap_block_end_tsn so that one can filter over a tsn ack acked by a gap block.


svn path=/trunk/; revision=20976
2007-03-05 22:47:40 +00:00
Anders Broman 9e973c4e1d Add Dave Butt to the AUTHORS file.
svn path=/trunk/; revision=20975
2007-03-05 22:04:51 +00:00
Jaap Keuter 88a508d407 From Richard van der Hoff:
I've had a good look at the code in packet-tcp.c, and whilst it's
somewhat impenetrable, I've come to the conclusion that it just doesn't
support multiple pdus as described.

That's not entirely unreasonable in itself; my objection is solely to
the fact that README.developer is completely misleading. In fact, even
the example dissect_cstr won't work on the tcp dissector, because if you
set desegment_len=1 the tcp dissector believes that you know what you
are doing and doesn't let you change your mind later.

Furthermore, 2.7.2 says that you can set desegment_len=-1; that doesn't
work either, because the tcp dissector expects
DESEGMENT_ONE_MORE_SEGMENT, which is 0x0fffffff, which is nowhere near -1.

In short, I think the relevant section of README.developer needs a
rewrite. I attach a patch - comments welcome.

svn path=/trunk/; revision=20974
2007-03-05 20:25:54 +00:00
Jörg Mayer 1cbc97b03d Some updates to the tunnel protocol decoding.
Make tapa.discover.x and tapa.tunnel.y more consistent.

svn path=/trunk/; revision=20973
2007-03-04 21:26:47 +00:00
Luis Ontanon 2688c9b3f3 do not return before ENDTRY when handling an exception, this would leave the fat stack without the top and cause the dereferencing of a null pointer later on when popping in the next ENDTRY.
Oddly enough this shows up only on windows. Maybe there's something good in my Mac's temporary disability!

svn path=/trunk/; revision=20972
2007-03-04 16:00:05 +00:00
Jörg Mayer 379a3e53ec The beginnings of a TAPA dissector (Trapeze Access Point Access Protocol).
Admittedly not much, so if you have any ideas what the rest means or where
I'm wrong please provide feedback.

As tapa uses udp 5000 and ip protocol 4, I needed to add a hack for the
ip part to properly dispatch betweeen ipip and tapa-tunnel (actually I
was unable to turn the ipip dissector into a heuristic dissector :-)

svn path=/trunk/; revision=20971
2007-03-04 11:48:07 +00:00
Luis Ontanon 4b4d4fed2a protect callbacks of derived windows from dereferencing a null pointer if the main table has being closed in the meanwhile.
svn path=/trunk/; revision=20970
2007-03-04 02:27:11 +00:00
Luis Ontanon 3b8dd4e462 add sections for the various user tables.
svn path=/trunk/; revision=20969
2007-03-04 01:55:02 +00:00
Ronnie Sahlberg 22ba8c3ad5 add dissection of the WINREG specific bits in the accessmask for WINREG objects
svn path=/trunk/; revision=20968
2007-03-04 01:15:44 +00:00