Commit Graph

11250 Commits

Author SHA1 Message Date
Kovarththanan Rajaratnam 00670c55c6 Custom columfication:
* Deprecate COL_HPUX_DEVID (HP-UX Device ID). Use nettl.devid

svn path=/trunk/; revision=29517
2009-08-23 10:25:51 +00:00
Kovarththanan Rajaratnam 205129d25c Custom columfication:
* Deprecate COL_HPUX_SUBSYS (HP-UX Nettl Subsystem). Use nettl.subsys

svn path=/trunk/; revision=29516
2009-08-23 10:20:42 +00:00
Kovarththanan Rajaratnam 56369978ae Custom columfication:
* Deprecate COL_CIRCUIT_ID (Circuit ID). Use iax2.call

svn path=/trunk/; revision=29515
2009-08-23 09:52:57 +00:00
Kovarththanan Rajaratnam 53586615aa Add initial code to handle the migration to custom columns by mapping the deprecated columns into their custom column counterparts when we read the preference file.
There are still many todos in this area:

1) We need to either warn the user that he/she needs to click "Save" in the preference dialog so we can "flush" the old predefined column or apply this change ourself silently.
2) The predefined columns need to be removed from the "Columns" UI.
3) ....

svn path=/trunk/; revision=29514
2009-08-23 09:16:58 +00:00
Kovarththanan Rajaratnam 6b89de8393 Custom columfication:
* Deprecate COL_COS_VALUE (L2 COS Value (802.1p)). Use vlan.priority

svn path=/trunk/; revision=29513
2009-08-23 09:07:54 +00:00
Jörg Mayer dfac9e4091 Get rid of a bunch of "warning: redundant redeclaration of" messages.
In that process, include the contents of packet-fmp_notify.h directly
in packet-fmp_notify.c - it wasn't used anywhere else.

svn path=/trunk/; revision=29512
2009-08-23 06:57:16 +00:00
Kovarththanan Rajaratnam 6444abbf7e Avoid 'cast to pointer from integer of different size'
svn path=/trunk/; revision=29511
2009-08-23 05:20:30 +00:00
Balint Reczey 035231b534 From Frederic Peters (made endian-aware by me):
fixed segfault with some GIOP packets

svn path=/trunk/; revision=29509
2009-08-22 22:46:41 +00:00
Kovarththanan Rajaratnam 602e3a09e0 Remove col_check() guard wrt. COL_REL_CONV_TIME/COL_DELTA_CONV_TIME
svn path=/trunk/; revision=29508
2009-08-22 19:53:54 +00:00
Kovarththanan Rajaratnam 3d740a490f We initialize col_expr and col_expr_val in col_init() so there's no need to initialize them again in col_set_xxx()
svn path=/trunk/; revision=29507
2009-08-22 19:29:44 +00:00
Jaap Keuter fdf21357fc From Ivan Sy:
NSEC3PARAM RR (RFC 5155),  APL RR (RFC 3123), PX RR (RFC 2163), GPOS RR (RFC 1712), 
NSAP RR (RFC 1706), NSAP-PTR RR (RFC 1348), AFSDB, RP, X25, ISDN, RT, RR (RFC 1183).
Also cleanup of protocol tree dependancies.

svn path=/trunk/; revision=29506
2009-08-22 17:28:54 +00:00
Bill Meier 2d91ad03f9 Additional validation of 'len' for crc32_ccitt_tvb... fcns;
(-1 is not a valid length);
First of 2 fixes for crash reported in Bug #3925.

svn path=/trunk/; revision=29505
2009-08-22 17:12:33 +00:00
Kovarththanan Rajaratnam da1e555499 Don't dereference pointer before checking for NULL
svn path=/trunk/; revision=29503
2009-08-21 23:02:59 +00:00
Kovarththanan Rajaratnam 2046b144d9 Sanitize epan includes
svn path=/trunk/; revision=29502
2009-08-21 20:51:13 +00:00
Kovarththanan Rajaratnam 66afe84075 Use <gcrypt.h> instead of 'gcrypt.h'
svn path=/trunk/; revision=29501
2009-08-21 20:40:49 +00:00
Kovarththanan Rajaratnam 17c9803cac Sanitize epan includes
svn path=/trunk/; revision=29499
2009-08-21 20:25:24 +00:00
Kovarththanan Rajaratnam 9661baf237 Remove unneeded #includes
svn path=/trunk/; revision=29497
2009-08-21 19:48:11 +00:00
Kovarththanan Rajaratnam 8a3f4f53eb Delay TRY_TO_FAKE_THIS_ITEM() in proto_tree_add_bits_ret_val() until we know it is safe.
Thanks to Martin for pointing this out in r29493.

svn path=/trunk/; revision=29494
2009-08-21 17:11:02 +00:00
Martin Mathieson 044aabb9ea Don't try TRY_TO_FAKE_THIS_ITEM in proto_tree_add_bits_ret_val(), as otherwise
the side effect 'return_value' getting set doesn't happen.

svn path=/trunk/; revision=29493
2009-08-21 15:16:27 +00:00
Kovarththanan Rajaratnam 2afdee256c Handle a text NULL pointer more gracefully
svn path=/trunk/; revision=29491
2009-08-21 11:31:21 +00:00
Kovarththanan Rajaratnam 27f7d88c84 Also fake empty field_info's by gracefully handling NULL field_info pointer elsewhere.
svn path=/trunk/; revision=29490
2009-08-21 11:03:30 +00:00
Anders Broman 1108352f00 Use col_text in frame data.
- colum-utils needs more work, based on
 Didier Gautherons optimizations patch http://wiki.wireshark.org/Development/Optimization

svn path=/trunk/; revision=29489
2009-08-21 10:12:47 +00:00
Jaap Keuter 55597ea161 List the new DOCSIS dissector file here as well.
svn path=/trunk/; revision=29488
2009-08-21 05:37:33 +00:00
Anders Broman 0819c36d3a Prepare to store column text in frame data directly.
svn path=/trunk/; revision=29483
2009-08-20 09:49:32 +00:00
Anders Broman 7945bf1bc9 From Harald Welte :
Connect RRLP to GSM A DTAP application info message.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3919

From me try to fix missuse of pinfo.

svn path=/trunk/; revision=29482
2009-08-20 07:26:16 +00:00
Kovarththanan Rajaratnam 0f6b75b7ea Move TRY_TO_FAKE_THIS_ITEM to all public proto_xxx methods. Currently we rely on our internal (static) helper functions to do the faking. However, when they fake a protocol tree, they usually return a valid tree (although a dummy tree it is still a valid one). This means that we end up calling proto_tree_set_representation + friends on it for no reason. By moving TRY_TO_FAKE_THIS_ITEM to the public proto_xxx methods we're able to bail immediately (when we're allowed to do so).
svn path=/trunk/; revision=29480
2009-08-19 19:08:34 +00:00
Anders Broman 7ec476b88a From Didier Gautheron:
Part 2
Extracted from optimizations patch http://wiki.wireshark.org/Development/Optimization
Optimize expert info.
Slightly changed by me.

svn path=/trunk/; revision=29478
2009-08-19 18:37:13 +00:00
Jörg Mayer 283dbb4414 As pointed out by Alexis La Goutte via PM, r29474 didn't
support the different MAC formats (eui48 and eui64) properly.
Now, eui48 is printed as mac, the rest is still handled as
blob.

svn path=/trunk/; revision=29476
2009-08-19 15:42:24 +00:00
Jörg Mayer 69069395df Add support for Radio Mac/Wireless Specific Information optional
header fields. This patch lacks handling of padding since a) I don't
have a trace containing padding and b) I don't understand the
wording in the rfc (it's to ambigous for my liking).

svn path=/trunk/; revision=29474
2009-08-19 12:25:40 +00:00
Anders Broman 8e00a20710 From Jochen Bartl:
EIGRP dissector enhancements (IPv6, Stub routing, Authentication TLVs)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3907

svn path=/trunk/; revision=29473
2009-08-19 11:34:40 +00:00
Anders Broman 87da96be52 From Jan Lübbe:
packet-gsm_a_rr.c: flip gsm_a_rr_mv_vals, 0 means vaild.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3915

svn path=/trunk/; revision=29472
2009-08-19 09:32:56 +00:00
Anders Broman 100aeddafe From Didier Gautheron:
Extracted from optimizations patch http://wiki.wireshark.org/Development/Optimization
Make col_expr const gchar.

svn path=/trunk/; revision=29471
2009-08-19 07:55:11 +00:00
Anders Broman 43cbf13ad4 Minor clean up.
svn path=/trunk/; revision=29466
2009-08-18 14:39:32 +00:00
Jeff Morriss b62e6545b9 Add an expert info noting that an ANSI message with the national indicator set to 0 (international) is unusual.
svn path=/trunk/; revision=29464
2009-08-18 13:25:49 +00:00
Anders Broman c8ec27c000 Make build bot happy?
svn path=/trunk/; revision=29463
2009-08-18 12:15:36 +00:00
Anders Broman a4109274e2 Typo: parameter_tvb to be used.
svn path=/trunk/; revision=29462
2009-08-18 11:39:55 +00:00
Jaap Keuter a4e174b7f8 From Swapnil Barai:
Minor Bug in Bearer Context in Packet-gtpv2.c fixed.

svn path=/trunk/; revision=29460
2009-08-18 06:41:12 +00:00
Stephen Fisher d777d1dfed Display Microsoft's Remote Desktop Protocol (RDP) extension to the X.224
connection request that shows the session load balancing information.  There
appears to be more dissecting that can be done for this field, but I don't
have any sample captures to test this.
 

svn path=/trunk/; revision=29459
2009-08-18 00:32:11 +00:00
Kovarththanan Rajaratnam 5417a21bac As pointed out by Guy, we should probably explain why the gulong -> size_t cast is 'safe'
svn path=/trunk/; revision=29458
2009-08-17 20:14:59 +00:00
Kovarththanan Rajaratnam 8de8a1cb6e setbit() is (AFAIK) defined in <sys/param.h> (OpenBSD) so rename to dect_setbit() to avoid clash. getbit() is also renamed for consistency.
Fixes the issue reported by Stan: http://www.wireshark.org/lists/wireshark-users/200908/msg00128.html

svn path=/trunk/; revision=29456
2009-08-17 17:19:31 +00:00
Anders Broman a1a129abb5 Prepare to store column data from pinfo.
svn path=/trunk/; revision=29454
2009-08-17 15:05:43 +00:00
Kovarththanan Rajaratnam 460eacaae1 Move the NULL pointer 'tree' check under TRY_TO_FAKE_THIS_ITEMs umbrella
svn path=/trunk/; revision=29453
2009-08-17 11:21:33 +00:00
Kovarththanan Rajaratnam 69babcb4a6 Don't do PROTO_REGISTRAR_GET_NTH twice.
svn path=/trunk/; revision=29452
2009-08-17 11:13:36 +00:00
Kovarththanan Rajaratnam e4e9b91275 Add proper type cast.
Thanks to Martin for reporting this.

svn path=/trunk/; revision=29451
2009-08-17 04:23:47 +00:00
Gerald Combs 79c49bfe54 [Automatic manuf and enterprise-numbers update for 2009-08-16]
svn path=/trunk/; revision=29447
2009-08-16 15:03:26 +00:00
Kovarththanan Rajaratnam 8b515e9340 Switch a bunch of dissectors over to using tvb_new_subset_remaining()
svn path=/trunk/; revision=29446
2009-08-16 12:36:22 +00:00
Kovarththanan Rajaratnam fe6f8b92c7 Add a new function, tvb_new_subset_remaining(), which is a sligtly optimized version of tvb_new_subset(). The latter can be mapped to the former by tvb_new_subset(tvb, offset, -1 /* backing_length */, -1 /* reported_length */). We can disable some bounds checking because 'backing_length' and 'reported_length' are hardcoded to -1.
The current implementation of tvb_new_subset_remaining() only has the THROW_ON(reported_length < 1) check removed when compared to tvb_new_subset(). So there's room for improvement in this function. We should be able to disable some more (redundant) bounds checking.

svn path=/trunk/; revision=29445
2009-08-16 10:53:47 +00:00
Kovarththanan Rajaratnam c795851beb Remove unused parameters
svn path=/trunk/; revision=29444
2009-08-16 09:48:25 +00:00
Kovarththanan Rajaratnam 6cd59f3799 Remove the non-thread safe usage of 'last_tvb' variable in tvb_new_subset()
svn path=/trunk/; revision=29443
2009-08-16 09:18:17 +00:00
Kovarththanan Rajaratnam 998ee3a2e0 Make some of the check_XXX functions accept the length/reported length of the tvbuff as arguments instead the tvbuff. We'll need this feature in order to remove the non-thread usage of the 'last_tvb' variable in tvb_new_subset()
svn path=/trunk/; revision=29442
2009-08-16 08:18:17 +00:00
Kovarththanan Rajaratnam 01abc372e6 Remove a non thread-safe usage (useful when/if we ever support threading) of a static tvbuff in tvb_new_real_data(). The current version uses a static 'last_tvb' to keep track of the last allocated tvbuff. This is needed because some of the function we call can throw an exception. This patch improves this strategy by throwing an exception (if needed) before we try to allocate the tvbuff. This way we avoid a memleak _and_ we don't have to track the 'last_tvb' tvbuff.
svn path=/trunk/; revision=29441
2009-08-16 07:29:11 +00:00
Kovarththanan Rajaratnam 7cb17ecec0 Use the slice allocator if GLIB >= 2,10,0
svn path=/trunk/; revision=29440
2009-08-16 04:54:33 +00:00
Kovarththanan Rajaratnam aed905a6c9 Use the slice allocator if GLIB >= 2,10,0 as suggested by Anders Broman
svn path=/trunk/; revision=29434
2009-08-15 13:24:59 +00:00
Kovarththanan Rajaratnam 623db2e71e Add a missing DISSECTOR_ASSERT in tvb_init()
svn path=/trunk/; revision=29433
2009-08-15 12:41:24 +00:00
Kovarththanan Rajaratnam ef68d63745 Make mem chunk static
svn path=/trunk/; revision=29432
2009-08-15 12:29:25 +00:00
Kovarththanan Rajaratnam 154de60393 Switch over to using GLib's g_malloc/g_free in the name of consistency.
svn path=/trunk/; revision=29430
2009-08-15 09:13:16 +00:00
Kovarththanan Rajaratnam da97c3e2b6 This should have been part of r29428. This patch forces proto_field_is_referenced() to respect the fake_protocols flag set by Protocol Hierarchy stats tap.
svn path=/trunk/; revision=29429
2009-08-15 08:38:50 +00:00
Kovarththanan Rajaratnam 96b2c411dd The frame dissector contains a kludge to workaround the fact that the Protocol Hierarchy stats tap always needs the protocol node to appear even though no color, display filter etc. reference it. This is no longer needed due to r29380.
svn path=/trunk/; revision=29428
2009-08-15 08:05:10 +00:00
Kovarththanan Rajaratnam 7d44262406 This patch introduces packet_add_new_data_source() which effectively deprecates add_new_data_source(). This is based on the following observation:
1) The tvb + name (aka. data_source) is only used when the protocol tree is visible

The current implementation of add_new_data_source() doesn't take this into account and simply allocates a data_source regardless. This is what packet_add_new_data_source() tries to rectify.

A couple of dissectors have already been switched over to the new packet_add_new_data_source(). Many are still missing. Help appreciated!

svn path=/trunk/; revision=29427
2009-08-15 06:38:10 +00:00
Martin Mathieson 8760a6b49d Allow s1ap not to be dissected (to avoid seeing errors, possibly due to proprietary variants).
svn path=/trunk/; revision=29420
2009-08-15 01:29:29 +00:00
Kovarththanan Rajaratnam 80a6d3fbcf Introduce epan_dissect_init()/epan_dissect_cleanup(). These are used to initialise/cleanup stack allocated 'edt' structures. This should speed up dissection since we avoid some malloc traffic.
svn path=/trunk/; revision=29404
2009-08-13 19:42:46 +00:00
Kovarththanan Rajaratnam 97fda7386c Make sure that we find the "data" dissector during handoff else we might crash if the received payload was less than 2 bytes.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3893

svn path=/trunk/; revision=29403
2009-08-13 12:17:20 +00:00
Tomas Kukosa e7ed279da9 fix build failure without GnuTLS
svn path=/trunk/; revision=29402
2009-08-13 11:12:35 +00:00
Tomas Kukosa ae5e82dc11 use G_GSIZE_MODIFIER instead of %zd which is not supported by MSVC
svn path=/trunk/; revision=29401
2009-08-13 10:36:53 +00:00
Tomas Kukosa ebc78f0a07 Fix SSL decryption failure if client and server have the same TCP port
svn path=/trunk/; revision=29400
2009-08-13 09:07:03 +00:00
Anders Broman 6aed88fadc From Gerasimos Dimitriadis:
DTAP decoding of Mobile Station Classmark 3 (R7 and R8)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3891

svn path=/trunk/; revision=29399
2009-08-13 07:56:13 +00:00
Anders Broman 088110624e From Gerasimos Dimitriadis:
DTAP decoding of Mobile Station Classmark 3 (R6).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3886

svn path=/trunk/; revision=29398
2009-08-12 22:40:13 +00:00
Kovarththanan Rajaratnam 8fd6301ddc White space changes
svn path=/trunk/; revision=29397
2009-08-12 19:32:54 +00:00
Kovarththanan Rajaratnam 9eec025c49 DISSECTOR_ASSERT on FT_PCRE in construct_match_selected_string().
svn path=/trunk/; revision=29396
2009-08-12 18:24:49 +00:00
Kovarththanan Rajaratnam 5bd6d8eaaf From William Preston via. 3549:
A typo in 2 of the field names causes the apn not to be displayed.

svn path=/trunk/; revision=29394
2009-08-12 15:12:19 +00:00
Balint Reczey 181f4c8364 Fix COL_INFO and COL_PROTOCOL for Teredo Direct IPv6 Connectivity Test
svn path=/trunk/; revision=29393
2009-08-12 12:55:27 +00:00
Tomas Kukosa cb5415d399 fix memoryleak causing crash with long SSL traces
svn path=/trunk/; revision=29392
2009-08-12 06:10:08 +00:00
Jaap Keuter 7267ec9782 Complete the fix in r29389.
svn path=/trunk/; revision=29390
2009-08-11 23:52:04 +00:00
Gerald Combs 4bfcd5993a Instead of calling DISSECTOR_ASSERT_NOT_REACHED, just say the subchannel
is unknown. Fixes bug 3864.

svn path=/trunk/; revision=29389
2009-08-11 23:44:22 +00:00
Gerald Combs 1f3776bf8b Add some length checks.
svn path=/trunk/; revision=29388
2009-08-11 23:29:21 +00:00
Balint Reczey 80fbe4959a From Ivan Sy (with minor modifications):
Show Teredo Connectivity tests.
Fix offset of ICMPv6 sequence number.

svn path=/trunk/; revision=29387
2009-08-11 23:20:03 +00:00
Anders Broman 07900e7a1a From swapnil:
Small Bug in TFT (Flow label) and ULI.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3876

svn path=/trunk/; revision=29386
2009-08-11 21:27:36 +00:00
Gerald Combs f625c7131d Use the right size for FT_UINT16.
svn path=/trunk/; revision=29385
2009-08-11 21:11:12 +00:00
Gerald Combs 809fb769b4 Add some length checks. Fixes a few recent fuzz bugs.
svn path=/trunk/; revision=29384
2009-08-11 20:58:36 +00:00
Gerald Combs 0ff1dd7142 Add a bunch of length checks. Fixes bug 3826.
svn path=/trunk/; revision=29383
2009-08-11 18:37:59 +00:00
Kovarththanan Rajaratnam e1c5ffd553 (Trivial change) move ensure_contiguous() to reflect call hierarchy
svn path=/trunk/; revision=29382
2009-08-11 18:28:10 +00:00
Kovarththanan Rajaratnam 158827a5e7 Turn a comment in fast_ensure_contiguous() into a DISSECTOR_ASSERT() to make the implied requirement explicit.
svn path=/trunk/; revision=29381
2009-08-11 18:16:55 +00:00
Kovarththanan Rajaratnam 261a8406bc TRY_TO_FAKE_THIS_ITEM now fakes FT_PROTOCOL per default. If there are any users (e.g. proto_hier_stats.c, others?) that relies on FT_PROTOCOL nodes being created they'll now need to call the newly introduced epan_dissect_fake_protocols() to disable this optimization.
Also make use of TRY_TO_FAKE_THIS_ITEM in proto_tree_add_text_node(), proto_tree_add_none_format() and proto_tree_add_protocol_format().

svn path=/trunk/; revision=29380
2009-08-11 18:08:03 +00:00
Gerald Combs 8b9d2f7490 Be a little more explicit in our description of tvb_get_ptr.
svn path=/trunk/; revision=29379
2009-08-11 17:53:39 +00:00
Bill Meier ca1cba6f30 Don't coerce a (void *) to a (guint32 *).
The (void *) pointer in this case may point to
"unaligned" data.

svn path=/trunk/; revision=29378
2009-08-11 13:44:35 +00:00
Anders Broman 6c2c08c082 From Gerasimos Dimitriadis:
DTAP decoding of Mobile Station Classmark 3 (R4 and R5).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3866

svn path=/trunk/; revision=29377
2009-08-11 12:22:00 +00:00
Anders Broman bae780d14b From swapnil:
Bugs Fixed in ULI in packet-gtpv2.c
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3860

svn path=/trunk/; revision=29376
2009-08-11 10:32:46 +00:00
Kovarththanan Rajaratnam e0e33ca74b We now expose the following environment variables:
* WIRESHARK_DEBUG_EP_NO_CHUNKS
 * WIRESHARK_DEBUG_SE_NO_CHUNKS
 * WIRESHARK_DEBUG_EP_NO_CANARY
 * WIRESHARK_DEBUG_SE_NO_CANARY

This allows us to enable/disable memory chunks and canaries at runtime _without_ needing to recompile.

svn path=/trunk/; revision=29375
2009-08-11 09:24:56 +00:00
Anders Broman a8fbd4577f From swapnil:
Another Minor Bug for ULI in Packet-gtpv2.c
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3862

svn path=/trunk/; revision=29374
2009-08-11 07:41:46 +00:00
Guy Harris c6893212f1 For TLV items that are a single integral value and thus must have a
certain length:

	attach the expert item to the length field if we're showing it,
	otherwise put in a text item for the malformed TLV and attach
	the expert item to that;

	don't give up, as we'll just skip the bad item and move on to
	the next item.

svn path=/trunk/; revision=29373
2009-08-10 22:15:22 +00:00
Bill Meier a8533d84e5 Initialize a variable to keep GCC happy ....
svn path=/trunk/; revision=29372
2009-08-10 21:46:30 +00:00
Bill Meier d7ecb89489 Validate two tag field lengths before attempting to do proto_tree_add_item();
Fixes bug #3841.

svn path=/trunk/; revision=29371
2009-08-10 21:07:15 +00:00
Anders Broman ca335d25cb From Kovarththanan Rajaratnam:
- Compute and cache color/custom filters dynamically.
- Delay column construction.

svn path=/trunk/; revision=29370
2009-08-10 20:52:56 +00:00
Anders Broman 72d8e6ad54 From Steve Osselton:
GIOP dissector update for MIOP.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3847

svn path=/trunk/; revision=29369
2009-08-10 19:53:12 +00:00
Anders Broman 6c352a2959 From Gerasimos Dimitriadis:
DTAP decoding of Mobile Station Classmark 3.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3819

svn path=/trunk/; revision=29368
2009-08-10 19:48:42 +00:00
Bill Meier 41aa8b4ed7 (Quick) fix for bug #3836;
Allow the DIR ("direction") AVP to be of variable length
 (in the absence of any documentation for this protocol).
 See the source for further comments.

svn path=/trunk/; revision=29367
2009-08-10 18:45:47 +00:00
Kovarththanan Rajaratnam 7702b8766d Use ! defined(EP_DEBUG_FREE) && ! defined(SE_DEBUG_FREE) to guard canary code to get things compiling after r29358.
svn path=/trunk/; revision=29365
2009-08-10 16:36:44 +00:00
Gerald Combs 842d1be224 Fix the build.
svn path=/trunk/; revision=29363
2009-08-10 15:33:54 +00:00
Jörg Mayer 1e7031f1c0 Ivan Sy <ivan_jr@yahoo.com> via bug 3814
TTL-Check for local network group addresses: Normally the
only valid TTL is 1. Add a check for VRRP and GLBP, where
the only valid TTL is 255.

Me: change the logic so the funtion returns the valid ttl
    instead of true/false.


svn path=/trunk/; revision=29362
2009-08-10 14:55:47 +00:00
Kovarththanan Rajaratnam 3f4f8b0b94 Add unsigned int typecast
svn path=/trunk/; revision=29361
2009-08-09 21:10:04 +00:00
Kovarththanan Rajaratnam 39b1eb1015 g_error() requires a string literal.
svn path=/trunk/; revision=29360
2009-08-09 20:28:38 +00:00
Kovarththanan Rajaratnam 50c9dbca26 Split common parts of ep_free_all and se_free_all into emem_free_all.
svn path=/trunk/; revision=29359
2009-08-09 20:10:19 +00:00
Kovarththanan Rajaratnam ecb5ee8e91 Split common parts of se_alloc and ep_alloc into emem_alloc.
svn path=/trunk/; revision=29358
2009-08-09 19:23:13 +00:00
Kovarththanan Rajaratnam 4e177a23c7 Use PITEM_FINFO.
svn path=/trunk/; revision=29357
2009-08-09 18:15:36 +00:00
Kovarththanan Rajaratnam fa940d3366 Use PTREE_FINFO.
svn path=/trunk/; revision=29356
2009-08-09 18:05:44 +00:00
Kovarththanan Rajaratnam 083729e02c Add PTREE_FINFO and use PITEM_FINFO when possible.
svn path=/trunk/; revision=29355
2009-08-09 17:57:31 +00:00
Kovarththanan Rajaratnam 3512e485ca Add PNODE_FINFO. We've been using PITEM_FINFO on proto_node's. This works because proto_item is typedefed to proto_node. We shouldn't rely on this since this is an implementation detail.
svn path=/trunk/; revision=29354
2009-08-09 17:33:23 +00:00
Bill Meier dd2a488581 g_error() if registering a subtree item type already registered (or not initialized to -1).
svn path=/trunk/; revision=29352
2009-08-09 15:49:02 +00:00
Gerald Combs cdb8e2c6b7 [Automatic manuf and enterprise-numbers update for 2009-08-09]
svn path=/trunk/; revision=29348
2009-08-09 15:03:28 +00:00
Kovarththanan Rajaratnam c1fea16295 Don't use DISSECTOR_ASSERT to check source/destination address type.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3825

svn path=/trunk/; revision=29347
2009-08-09 10:50:30 +00:00
Kovarththanan Rajaratnam ac463d2697 Don't guard col_clear with col_check
svn path=/trunk/; revision=29346
2009-08-09 08:14:59 +00:00
Kovarththanan Rajaratnam 6110a96f68 Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_check
svn path=/trunk/; revision=29345
2009-08-09 07:59:51 +00:00
Kovarththanan Rajaratnam 0a5b014cec Don't guard col_clear with col_check
svn path=/trunk/; revision=29344
2009-08-09 07:36:13 +00:00
Kovarththanan Rajaratnam 5d5a5442d6 Don't guard col_set_str (COL_RES_DL_SRC/COL_RES_DL_DST) with col_check
svn path=/trunk/; revision=29343
2009-08-09 07:14:16 +00:00
Kovarththanan Rajaratnam 4b6090e576 Don't guard col_set_str (COL_INFO) with col_check
svn path=/trunk/; revision=29342
2009-08-09 07:01:26 +00:00
Kovarththanan Rajaratnam 24ca3c44c9 Don't guard col_set_str (COL_PROTOCOL) with col_check
svn path=/trunk/; revision=29341
2009-08-09 06:47:24 +00:00
Kovarththanan Rajaratnam e971354a54 Don't guard col_set_str (COL_PROTOCOL) with col_check
svn path=/trunk/; revision=29340
2009-08-09 06:26:46 +00:00
Guy Harris fc067ab910 Don't use DISSECTOR_ASSERT() to check a packet's content. Fixes bug
3827.

svn path=/trunk/; revision=29339
2009-08-09 01:23:09 +00:00
Kovarththanan Rajaratnam ced157e4b7 Make sure that we pass on the same set of parameters to asn2wrs.py on Unix/Windows. This fix ensures that the generated copyright headers are identical on both platforms.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3658

svn path=/trunk/; revision=29336
2009-08-08 09:57:07 +00:00
Jaap Keuter 4f501b3655 From Ivan Sy:
Fixed IPv6 malformed packet when ip6_nxt (Next Header) is equal to "59". as per section 4.7 RFC 2460.

svn path=/trunk/; revision=29334
2009-08-08 04:51:42 +00:00
Gerald Combs 7cf4114654 If we have a format error, don't try adding something to the
tree. Fixes bug 3822.

svn path=/trunk/; revision=29331
2009-08-08 00:27:31 +00:00
Gerald Combs 7110e957f6 From Matt P via bug 3774:
Patch utilizes techniques incorporated in the packet-ieee8023.c dissect_802_3()
routine to dynamically calculate the remaining payload length.  This is then
compared to the length included in the CCSDS header.

svn path=/trunk/; revision=29329
2009-08-07 21:53:40 +00:00
Jörg Mayer 952cbd7902 * Tue May 26 2009 cmorve69@yahoo.es
- made it compile with --as-needed

This patch was taken from the opensuse wireshark.spec file.
No thanks go to the author and the package maintainers of
this package for not sending this upstream - it would have
made it into 1.2.0.

svn path=/trunk/; revision=29326
2009-08-07 18:47:56 +00:00
Jörg Mayer d9531723b5 - Add rfc number comments on not-yet-decoded options
- Decode autoconfigure option

svn path=/trunk/; revision=29325
2009-08-07 18:45:06 +00:00
Gerald Combs 367bcb7abd Clean up the last two DIRTY_DISSECTOR_SRC entries.
svn path=/trunk/; revision=29321
2009-08-07 00:15:35 +00:00
Bill Meier 3c1bc8f251 Fix some individual cases of 'if (unsigned) < 0'
svn path=/trunk/; revision=29320
2009-08-06 23:51:45 +00:00
Bill Meier 4acb789917 'if (curr_len <= 0)' won't work as desired when curr_len is declared as unsigned.
The fix: change to 'if ((signed)curr_len <= 0)'.
This is a bit of a hack but I think it works.
See the comment in this file (packet-gsm_a_common.h).

svn path=/trunk/; revision=29319
2009-08-06 23:47:21 +00:00
Guy Harris c3aaf166c6 Those items are 32 bits or longer, so the cast should be safe; add an
additional cast in the hopes that they squelch "dereferencing
type-punned pointer" warnings.

svn path=/trunk/; revision=29318
2009-08-06 23:26:24 +00:00
Michael Tüxen 8fcdcbd14f packet-sctp.c seems to be clean (at least it is on Mac OS X).
svn path=/trunk/; revision=29317
2009-08-06 22:26:05 +00:00
Michael Tüxen 191709f6af Get it compiling when HAVE_LIBGCRYPT is not defined.
svn path=/trunk/; revision=29315
2009-08-06 21:55:10 +00:00
Bill Meier b38516fbd9 Fix some indentation and spacing
svn path=/trunk/; revision=29314
2009-08-06 21:42:40 +00:00
Gerald Combs 85f68c7461 Fix compilation warnings in a few dissectors and try moving them to the
"clean" list.

svn path=/trunk/; revision=29313
2009-08-06 20:55:04 +00:00
Bill Meier 21d8e2d3e1 Prevent possible (benign ?) array references with an array index of -1.
svn path=/trunk/; revision=29312
2009-08-06 18:44:38 +00:00
Bill Meier eba5297683 Remove inadvertantly committed comments re issue yet to be fixed ...
svn path=/trunk/; revision=29311
2009-08-06 16:13:31 +00:00
Bill Meier 413e64f1a6 Register ett[] subtree array only once.
svn path=/trunk/; revision=29310
2009-08-06 16:10:29 +00:00
Bill Meier 7f7161f819 Register ett[] subtree array only once.
svn path=/trunk/; revision=29309
2009-08-06 16:06:11 +00:00
Gerald Combs 595f9b6630 Convert a GString to an ep_strbuf_t (and squelch a static analysis
warning in the process). Remove an unused variable.

svn path=/trunk/; revision=29308
2009-08-05 19:03:48 +00:00
Jaap Keuter b5aa261da6 From Gerasimos Dimitriadis:
Fixes/enhances the decoding of the Mobile Identity IE for type of identity
"TMGI and optional MBMS Session Identity".

svn path=/trunk/; revision=29307
2009-08-05 18:42:45 +00:00
Jaap Keuter 8787b8ecc8 Fix for bug 3811:
Add missing shorthand application/vnd.ms-sync besides application/vnd.ms-sync.wbxml.

svn path=/trunk/; revision=29306
2009-08-05 18:21:52 +00:00
Jaap Keuter 5c57e015d4 From Ivan Sy:
Add support for Support for DHCID RR (RFC 4701).

svn path=/trunk/; revision=29305
2009-08-05 18:17:18 +00:00
Martin Mathieson 92b2bcf28a Show power headroom report inside its own subtree.
svn path=/trunk/; revision=29303
2009-08-05 08:02:12 +00:00
Jaap Keuter 203269175e Fix for bug 3806:
Add presentation of Block Ack Bitmap.

svn path=/trunk/; revision=29302
2009-08-05 07:33:44 +00:00
Gerald Combs 931a750908 Add a couple of pointer checks.
svn path=/trunk/; revision=29301
2009-08-05 00:36:27 +00:00
Jaap Keuter c9e3f66d14 Optimize empty strings to NULL pointers.
svn path=/trunk/; revision=29298
2009-08-04 21:05:38 +00:00
Bill Meier d0f569953d Fix benign double subtree registration of an ett_... variable.
svn path=/trunk/; revision=29297
2009-08-04 19:29:42 +00:00
Bill Meier cb7dac7100 Initialize several ett_... variables to -1
svn path=/trunk/; revision=29295
2009-08-04 18:52:01 +00:00
Bill Meier 90e865cc54 Init ett_... variables to -1
svn path=/trunk/; revision=29294
2009-08-04 18:48:45 +00:00
Bill Meier 8ffaa3b880 Remove duplicate entry from ett[]
svn path=/trunk/; revision=29293
2009-08-04 18:46:51 +00:00
Guy Harris b6660d06bf Clean up white space a bit - use 2-space indenting.
Put a bunch of code that does nothing unless data_val is non-null inside
"if (data_val)", and get rid of the individual tests.

svn path=/trunk/; revision=29292
2009-08-04 18:39:43 +00:00
Gerald Combs 49c58bc1a4 Miscellaneous cleanups.
svn path=/trunk/; revision=29291
2009-08-04 17:59:48 +00:00
Martin Mathieson fef272347b Show number of predefined bytes in info column.
svn path=/trunk/; revision=29290
2009-08-04 10:41:08 +00:00
Jörg Mayer 45ab8d50d2 Warning fix: comma at end of enum
svn path=/trunk/; revision=29289
2009-08-04 07:50:49 +00:00
Gerald Combs 87c095780a Rework an assignment to keep static analyzers from complaining.
svn path=/trunk/; revision=29287
2009-08-03 23:51:13 +00:00
Guy Harris bd97aecdd3 Clean up indentation somewhat.
svn path=/trunk/; revision=29281
2009-08-03 21:17:30 +00:00
Jaap Keuter 2c9c96744d From Gerasimos Dimitriadis:
Added decoding support for the High Layer Compatibility IE in DTAP and updated
the relevant part in Q.931. Also some minor enhancements in Q.931.

svn path=/trunk/; revision=29280
2009-08-03 21:12:41 +00:00
Guy Harris f3944baaf0 Thou shalt terminate thy value_string arrays with {0, NULL}.
svn path=/trunk/; revision=29279
2009-08-03 21:07:08 +00:00
Gerald Combs 8224d4e436 Add a null pointer check. Remove some unused variables.
svn path=/trunk/; revision=29278
2009-08-03 19:50:35 +00:00
Jaap Keuter e0336d1243 From Ivan Sy:
Support for Host Identity Protocol (HIP) Domain Name System (DNS) Extension.

svn path=/trunk/; revision=29277
2009-08-03 18:23:04 +00:00
Bill Meier aed6451fff Remove 1 commented-out #include inadvertantly committed.
svn path=/trunk/; revision=29276
2009-08-03 18:06:36 +00:00
Bill Meier d8297e8312 Add some debug code (commented out) to check for duplicate dissector port registrations,
svn path=/trunk/; revision=29275
2009-08-03 17:25:17 +00:00
Bill Meier d4e1095f54 Reword some help text slightly.
svn path=/trunk/; revision=29274
2009-08-03 16:21:55 +00:00
Bill Meier 1792c7d1a4 Do find_dissector_table() in proto_reg_handoff().
svn path=/trunk/; revision=29272
2009-08-03 15:18:44 +00:00
Bill Meier 41a9e1c16f (Trivial) Fix two typos.
svn path=/trunk/; revision=29271
2009-08-03 14:17:31 +00:00
Stig Bjørlykke dd79032722 Added missing packet-usb-hid.h
svn path=/trunk/; revision=29270
2009-08-03 09:58:14 +00:00
Stig Bjørlykke 7714e602c8 Handle usb_hid_item_usage_vals as range_string.
svn path=/trunk/; revision=29269
2009-08-03 08:05:44 +00:00
Bill Meier 2602c42fcb Do dissector_add() only if port non-zero; register dissector for "decode-as".
svn path=/trunk/; revision=29268
2009-08-02 19:54:33 +00:00
Bill Meier 3a61b43a42 packet-stun2 registers for TCP & UDP port 3478 so packet-stun need not register for same.
svn path=/trunk/; revision=29267
2009-08-02 19:20:20 +00:00
Bill Meier fa3443bbc1 Change default range from 1401,1401 to 1401 so that the port isn't double-registered.
svn path=/trunk/; revision=29266
2009-08-02 19:17:09 +00:00
Bill Meier 1ab1e3889c Don't do dissector_add twice on TCP port 3689;
packet-daap requests registration on that port via http_dissector_add
 and thus packet-http does not need to do a default registration on that port.
Also: fix a typo in a comment.

svn path=/trunk/; revision=29265
2009-08-02 19:09:36 +00:00
Gerald Combs bd3795cb29 [Automatic manuf and enterprise-numbers update for 2009-08-02]
svn path=/trunk/; revision=29262
2009-08-02 15:03:29 +00:00
Bill Meier 082db3982a Remove unneeded #include <epan/emem.h>; fix some indentation.
svn path=/trunk/; revision=29261
2009-08-02 12:58:57 +00:00
Jaap Keuter 672a9f6e62 Add additional cypher types.
svn path=/trunk/; revision=29260
2009-08-02 12:53:14 +00:00
Jaap Keuter 18478a63bc Fix for bug 3800:
Correctly track the size of Feedback Control Information in Payload specific RTCP feedback packet.

svn path=/trunk/; revision=29259
2009-08-02 12:11:38 +00:00
Martin Mathieson ed930bece3 Remember Msg3 bytes and compare with Msg4 Contention Resolution bodies.
svn path=/trunk/; revision=29258
2009-08-01 09:52:12 +00:00
Guy Harris f846e15d40 Fix indentation, get rid of a comment that might no longer apply (dump
*what* as hex?  The stuff we now display as generic fields?).

svn path=/trunk/; revision=29257
2009-07-31 23:38:02 +00:00
Gerald Combs 62b8aa0837 From Adam Nielsen via bug 3659:
Here is a patch against SVN that implements preliminary support for USB HID
devices.  At the moment it only dissects the initial set up packets (which you
will see if you hotplug a keyboard or mouse.)

The patch also fixes a minor bug in the USB dissector code which reported
certain packets as malformed due to miscounting bytes, and it reports control
packet data and padding data in a more user-friendly manner.

svn path=/trunk/; revision=29256
2009-07-31 22:16:29 +00:00
Guy Harris 99bd70035d Completely remove an unused variable, don't just comment it out
(especially with a C++/C99-style comment that not all compilers used to
compile Wireshark accept).

svn path=/trunk/; revision=29255
2009-07-31 20:13:53 +00:00
Gerald Combs ee5d2e8788 From Holger Freyther via bug 3776:
Part 1:
Rename packet-gsm_abis_ip.c to packet-gsm_ipa.c.

Part 2:
Rename to the content to match the filename.

Part 3:
Add GSM A/SCCP support to the packet-gsm_ipa.c dissector

Adjusted patch to take laforge's comment into account. Use guint16 for the
length and use the ntohs routine to convert the length.

svn path=/trunk/; revision=29254
2009-07-31 19:19:25 +00:00
Gerald Combs dd28a00a78 From Ivan Sy via bug 3797:
Support for SPF RR (RFC 4408)

- this has the same format as TXT RR (see section 3.1.1) below.
Currently wireshark 1.2.1 shows this as Unknown type 99

svn path=/trunk/; revision=29253
2009-07-31 16:37:53 +00:00
Jaap Keuter 08b2e76773 From Ivan Sy:
Add support for SSHFP RR (RFC 4255).

svn path=/trunk/; revision=29252
2009-07-31 07:05:43 +00:00
Jaap Keuter 0553926fcc From Ivan Sy:
NAPTR RR (RFC 3403) replacement MUST be a fully qualified domain-name.

svn path=/trunk/; revision=29250
2009-07-31 06:51:27 +00:00
Gerald Combs 9a35ed601d Remove more unused variables.
svn path=/trunk/; revision=29249
2009-07-30 23:47:36 +00:00
Guy Harris db0698fd0a Fix warnings:
the behavior of x = x++ is undefined by the ANSI C standard -
	they obviously just meant x++;

	get rid of unused variables.

svn path=/trunk/; revision=29248
2009-07-30 21:40:22 +00:00
Anders Broman 532f424f33 From swapnil:
Packet-gtpv2.c dissector extended to support more IE's.

svn path=/trunk/; revision=29247
2009-07-30 21:11:26 +00:00
Gerald Combs 6c99cf5519 From Kovarththanan Rajaratnam via bug 3506:
The exception throwing code in except.c/h should be annotated with
"noreturn" to indicate that they never return. Running static analysis
on Wireshark without this annotation causes a lot of false positives
since these analyzers assume that the exception handling code are
ordinary functions that will eventually return.

svn path=/trunk/; revision=29246
2009-07-30 17:54:58 +00:00
Gerald Combs b249ff0487 Remove a couple of unused variables.
svn path=/trunk/; revision=29245
2009-07-30 17:22:00 +00:00
Martin Mathieson 0abc55b7fc Show backoff indicator value in subheader tree root.
svn path=/trunk/; revision=29244
2009-07-30 16:53:33 +00:00
Gerald Combs e951661130 Remove some unused variable assignments.
svn path=/trunk/; revision=29243
2009-07-30 16:17:46 +00:00
Gerald Combs 0cceb40317 Remove some unused variables.
svn path=/trunk/; revision=29242
2009-07-30 00:40:32 +00:00
Bill Meier 62a8504eda Function dissect_zcl_attr_data_type() unused: comment it out
svn path=/trunk/; revision=29240
2009-07-29 22:54:28 +00:00
Bill Meier 6de62aee00 Fix a potential crash and do various other minor changes:
- Fix an hf[] entry which had an invalid "strings" field which could cause a crash;
- Remove unneeded #includes;
- Make most functions & etc static;
- Remove declarations for functions never defined;
- Fix certain comments to refer to the correct function names;
- Change global variable to be local to proto_reg_handoff...
- ...

svn path=/trunk/; revision=29239
2009-07-29 22:33:08 +00:00
Bill Meier ad74edb139 From Chris Costa: Fix Bug 3786: "NDMP fragmentation fails when final fragment is very small".
(See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3786)

svn path=/trunk/; revision=29236
2009-07-29 20:24:10 +00:00
Guy Harris 512a32889c Add packet-zbee-zcl.h to the source tarball.
svn path=/trunk/; revision=29235
2009-07-29 19:39:17 +00:00
Jaap Keuter d779b4f96f From Neil Piercy:
The Cert Authority hashes in the IKEv2 Cert Request are not dissected properly:
the display offset is not correctly moved on, so the same info is displayed for
all Cert Authority fields.

svn path=/trunk/; revision=29234
2009-07-29 18:26:55 +00:00
Ronnie Sahlberg 148263ebf0 zigbee cluster dissector,
modified from entry in bug 3765 so it compiles cleanly


svn path=/trunk/; revision=29232
2009-07-29 11:29:53 +00:00
Ronnie Sahlberg ad942553b3 start describing ReportEventW in the IDL and make use of the "bitmap"
for EventTypes.

This addresses also bug 3552 with the until now unusued code.


The eventlog dissector is very incomplete.
While the protocol specification is available now, what is lacking is 
example capture files to test with when implementing more of the IDL 
definitions.




svn path=/trunk/; revision=29231
2009-07-29 10:59:31 +00:00
Ronnie Sahlberg e5f6cb05da Fixup the correct names of the parameters for OpenEventLogW
svn path=/trunk/; revision=29230
2009-07-29 10:41:24 +00:00
Ronnie Sahlberg 1899a11f3f update the idl to correctly dissect the read eventlog w flags as a
bitmap and not as a uint32

this addresses bug 3691 (that was already manually addressed by hand 
in the generated dissector)



svn path=/trunk/; revision=29229
2009-07-29 10:28:10 +00:00
Ronnie Sahlberg a3355a0949 Break the aes set ket/decrypt/encrypt out from airpdcap_raindoll into
its own crypt-aes.

change the integer types to glib style integers


this may/will be helpful if/when we implement our own version of 
kerberos 
aes decryption of dcerpc since the existing libraries can not (yet) 
handle when header signing is used.

we should implement our own decryption of this for cfx+aes just as we 
did for classic+arcfour





svn path=/trunk/; revision=29228
2009-07-29 10:01:14 +00:00
Tomas Kukosa f56e93d1a5 Support for IPv6 addresses in URI
svn path=/trunk/; revision=29227
2009-07-29 09:13:03 +00:00
Jaap Keuter cde25ec6a2 From Ivan Sy:
Support for DLV RR (RFC 4431) and SHA-256 Digest for DS RR (RFC 4509).

svn path=/trunk/; revision=29226
2009-07-29 07:10:02 +00:00
Ronnie Sahlberg cfc60e805d update samr.idl and remove a keyword we no longer support in pidl
regenerate samr and frstrans with the new version of pidl


svn path=/trunk/; revision=29219
2009-07-28 14:11:08 +00:00
Ronnie Sahlberg 77fc0c9451 From Stefan Metzmacher
add generated FRSTRANS dissectors and add them to the build


svn path=/trunk/; revision=29217
2009-07-28 13:53:10 +00:00
Ronnie Sahlberg 3c1de7c38e From Stefan Metzmacher :
Add IDL file for FRSTRANS


svn path=/trunk/; revision=29216
2009-07-28 13:50:22 +00:00
Ronnie Sahlberg 4802884629 regenerate SAMR using the new version of pidl
svn path=/trunk/; revision=29215
2009-07-28 13:39:42 +00:00
Ronnie Sahlberg f8cf2d2c83 When we passed the crytobuffer to krb5_c_decrypt() we never actually
verified that we did have enough data in the buffer/tvb, which could 
lead to a SEGV.
(for example if we enable KRB5 decryption but we do NOT use TCP 
reassembly, and the encrypted data goes beyong the end of the current 
segment)


Change the signature to decrypt_krb5_data() to take a TVB instead of a 
buffer+length.
Actually check that we do have the entire encrypted PDU before calling 
out to the kerberos libraries.



svn path=/trunk/; revision=29213
2009-07-28 13:01:41 +00:00
Anders Broman 2a80b47ce4 Whitespace change.
svn path=/trunk/; revision=29211
2009-07-28 09:26:18 +00:00
Ronnie Sahlberg ac1b52a838 From: Matthieu Patou <mat+Informatique.Samba@matws.net>
Date: Mon, 27 Jul 2009 08:55:55 +0000 (+0200)
Subject: patch_ldap_260709

Add a few additional LDAP OIDs
and increase the maximum SASL blob size to be 1M instead of 256kb



svn path=/trunk/; revision=29210
2009-07-28 07:18:05 +00:00
Bill Meier dece30a6ce Improve defragmentation:
1. Prevent tcpencap (ipsec-tcp) from incorrectly dissecting NDMP PDU fragments;
    (Essentially: register NDMP as the dissector for the conversation);
   Allows correct NDMP fragment reassembly whether or not the 
    TCP "Try heuristic sub-dissectors first" preference is enabled.
   Fixes Bug #3755 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3755)
2. Use a registered init routine to init the fragment and reassembled tables 
   each time a complete capture dissection is (re)started.
   Fixes a crash.
3. Don't register on TCP port 10000 since the tcpencap dissector needs to own this
   port. (The NDMP dissector is a heuristic dissector).
4. Strengthen the heuristic checking slightly.
5. Other minor changes.

svn path=/trunk/; revision=29208
2009-07-27 21:59:01 +00:00
Anders Broman d28b7ad2b8 From Vladimir Smrekar:
Change, that fix infinite loop for dissections of elements:
- Pulse notification
- Line Information
- PSTN FSM state
- Autonomous signalling sequence
- Sequence response
- Performance grading
- Rejection cp cause

Me prefix hf vars with hf_v52_

svn path=/trunk/; revision=29207
2009-07-27 14:47:12 +00:00
Bill Meier 61683c409a Move proto_reg_handoff to the end ...
svn path=/trunk/; revision=29206
2009-07-27 14:45:25 +00:00
Bill Meier 5aef94e6eb reassemble.h: update two comments; reassemble.c: correct a typo.
svn path=/trunk/; revision=29205
2009-07-27 13:59:53 +00:00
Anders Broman d446944c82 From Gerasimos Dimitriadis:
Decoding support for 4 DTAP IEs.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3777

svn path=/trunk/; revision=29204
2009-07-27 13:08:17 +00:00
Anders Broman cb771536df From Kovarththanan Rajaratnam:
Only fill in frame_data vals when needed.

svn path=/trunk/; revision=29203
2009-07-27 08:33:26 +00:00
Anders Broman 9ca4ac2bed From Kovarththanan Rajaratnam:
Use frame_data values .

svn path=/trunk/; revision=29202
2009-07-27 03:34:57 +00:00
Gerald Combs b0bb6889f4 [Automatic manuf and enterprise-numbers update for 2009-07-26]
svn path=/trunk/; revision=29196
2009-07-26 15:03:27 +00:00
Bill Meier b86e69f348 Use consistent indentation ...
svn path=/trunk/; revision=29185
2009-07-23 21:25:02 +00:00
Bill Meier 3b4b7023b9 Fix some whitespace ....
svn path=/trunk/; revision=29184
2009-07-23 20:53:44 +00:00
Anders Broman f0d16b990f From Gerasimos Dimitriadis:
Minor enhancement to LAI decoding.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3770

svn path=/trunk/; revision=29182
2009-07-23 20:36:16 +00:00
Guy Harris 241aa76fc9 Saved by removing the bell.
svn path=/trunk/; revision=29181
2009-07-23 18:36:25 +00:00
Bill Meier 65faee6470 Set editor modelines to be consistent between emacs and vi/ex;
Indentation and whitespace cleanup;

svn path=/trunk/; revision=29180
2009-07-23 17:46:09 +00:00
Martin Mathieson 7f00738810 From Kovarththanan Rajaratnam: avoid circular dependency.
svn path=/trunk/; revision=29179
2009-07-23 11:19:05 +00:00
Guy Harris 7b07422574 Don't divide the data rate by 2 - that loses information (yes, I have a
trace with at least one packet transmitted at 5.5 Mb/s).

Clean up indentation.

svn path=/trunk/; revision=29178
2009-07-23 09:32:58 +00:00
Anders Broman 832087bfbf - Ambiguous value for radiotap datarate.
The value given to proto_tree_add_uint_format() was not divided by 2.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3747
- remove check_col()
- Indentation changes.

svn path=/trunk/; revision=29177
2009-07-23 08:56:09 +00:00
Anders Broman 733bdd4e56 Try to get the #includes right - take 2.
svn path=/trunk/; revision=29176
2009-07-23 08:53:13 +00:00
Anders Broman b4a0cda41e Try to get the #includes right.
svn path=/trunk/; revision=29175
2009-07-23 07:57:32 +00:00
Anders Broman ded297677f From Kovarththanan Rajaratnam:
Precompile custom columns filters.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3767

svn path=/trunk/; revision=29174
2009-07-23 05:48:39 +00:00
Anders Broman 1e7878b53d From Steve Karg:
BACnet Action property not decoded correctly.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3766

svn path=/trunk/; revision=29173
2009-07-23 05:38:34 +00:00
Anders Broman f1e8e405ce From Neil Piercy:
Another missing RRC dissector chaining link.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3769

svn path=/trunk/; revision=29172
2009-07-23 05:32:31 +00:00
Anders Broman 0b0ff6cdcf Get rid of check_col() in some of the more frequently used dissectors.
svn path=/trunk/; revision=29170
2009-07-22 21:33:47 +00:00
Martin Mathieson 41b86b26b8 Improve/expand checks on reserved bit values.
svn path=/trunk/; revision=29167
2009-07-22 13:21:15 +00:00
Anders Broman c9b459f8e6 Take 2:
From Jakub Zawadzki:
This patch is cut&paste code from gtk/main_packet_list.c:packet_list_compare()
to new function frame_data_compare()
+ it make use of new function inside packet_list_compare() and
packet_list_compare_records()

svn path=/trunk/; revision=29165
2009-07-22 08:11:50 +00:00
Anders Broman f186fba577 From Jakub Zawadzki:
This patch is cut&paste code from gtk/main_packet_list.c:packet_list_compare()
to new function frame_data_compare()
+ it make use of new function inside packet_list_compare() and
packet_list_compare_records()

svn path=/trunk/; revision=29164
2009-07-22 08:09:22 +00:00
Stephen Fisher c570bf42e2 Change some g_malloc() calls to g_new() to make the code easier to read.
svn path=/trunk/; revision=29162
2009-07-22 05:02:24 +00:00
Stig Bjørlykke 7e99557d05 Another try to fix the compiler warnings on win64.
svn path=/trunk/; revision=29161
2009-07-21 22:23:34 +00:00
Stig Bjørlykke 49cb1d37ee Cummulative number of packets lost is a signed 24 bits value.
This fixes bug 3763.

Cleanup some proto_tree_add_uint() -> proto_tree_add_item().

svn path=/trunk/; revision=29160
2009-07-21 22:09:31 +00:00
Stig Bjørlykke 8c4abdfb47 From didier gautheron via bug 3762:
This patch removes col_expr in frame_data structure,
it can be recomputed when needed.

svn path=/trunk/; revision=29159
2009-07-21 16:48:16 +00:00
Guy Harris 8300e59b2f More gsizery.
svn path=/trunk/; revision=29158
2009-07-21 09:05:16 +00:00
Guy Harris a864f7d89a GLib documentation says the 3rd and 5th arguments to g_iconv are "gsize
*"s.

svn path=/trunk/; revision=29157
2009-07-21 08:53:39 +00:00
Anders Broman f610ec3c46 size_t -> int to make the Win64 build bot happy.
svn path=/trunk/; revision=29156
2009-07-21 08:35:24 +00:00
Stig Bjørlykke 6dbdc38c53 Initialize bacapp_invoke_id to avoid a compiler warning.
svn path=/trunk/; revision=29155
2009-07-21 08:07:40 +00:00
Martin Mathieson a2d0ad942f Stop using the C++ 'true' and 'false'.
I still get a compilation error...

packet-bacapp.c: In function `dissect_bacapp':
packet-bacapp.c:6350: warning: 'bacapp_invoke_id' might be used uninitialized in this function

... although I've followed the paths (including the setting of 'segment'), and it looks bogus to me.


svn path=/trunk/; revision=29154
2009-07-21 07:59:16 +00:00
Guy Harris dafbc0abf3 Fix typo.
svn path=/trunk/; revision=29153
2009-07-21 07:44:04 +00:00
Guy Harris b6953e2c26 Don't use tvb_length_remaining() - that just reports how much captured
data is available, not how big the packet really is.

Clean up white space.

Get rid of an unused parameter and two unused variables.

svn path=/trunk/; revision=29152
2009-07-21 07:28:47 +00:00
Anders Broman 3e1365cc15 From Herbert Lischka:
Added some new features to BACnet dissection:
- ListOfObjectPropertyReferences in scheduler
- RestartReason
- Properties for loop-object
- LogDeviceObjectProperty in trend-log object
- log-buffer entries in trend-log object

- reassemby of fragmented messages
- fallback changed if iconv-library is not here

Me: Moved includes from .h to .c as thats how we normaly do it.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3736

svn path=/trunk/; revision=29151
2009-07-21 06:20:47 +00:00
Anders Broman c526a96ec5 From Gerasimos Dimitriadis:
Enhancement to E.212 MCC/MNC decoding.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3759

svn path=/trunk/; revision=29149
2009-07-21 06:02:12 +00:00
Stig Bjørlykke f900d9c3a5 From Jakub Zawadzki via bug 3701:
Fix regressions in r29130 and r29133
In r29130 formating for DSECS was changed. (old: %01d now: %02d)
In r29133 adding sign was removed (old: buf[0] = '-' now: buf[0] = '\0')

svn path=/trunk/; revision=29146
2009-07-20 12:40:55 +00:00
Gerald Combs 96be1a38da [Automatic manuf and enterprise-numbers update for 2009-07-19]
svn path=/trunk/; revision=29138
2009-07-19 15:03:36 +00:00
Stig Bjørlykke 221225e0f3 From Kovarththanan Rajaratnam via bug 3719:
This patch optimizes proto_tree_prime_hfid() + friends and
plugs a memleak in the process.

From me:
Removed unused hfindex in proto_tree_new_item()
Fixed ref_count entry in struct header_field_info.

svn path=/trunk/; revision=29137
2009-07-18 20:10:14 +00:00
Bill Meier 095f4a5c12 From Robert Hogan: "no need to register tn3270 for 'decode-as'".
svn path=/trunk/; revision=29134
2009-07-17 19:41:34 +00:00