Commit Graph

34873 Commits

Author SHA1 Message Date
Stephen Fisher 9a66ea33c4 Fix Coverity 1181: REVERSE_INULL & improve code:
- Use g_try_malloc0() instead of g_malloc0() since the latter will
   fail and abort the program.  Leave the NULL return check.
 - Don't dereference pointer before checking that it's valid.


svn path=/trunk/; revision=36503
2011-04-06 22:51:25 +00:00
Stephen Fisher 59a5ab8788 Enhancement bug #5796: Add Atheros vendor specific 802.11 IE parsing
svn path=/trunk/; revision=36502
2011-04-06 19:57:39 +00:00
Chris Maynard 9e34d13ff4 Add computation of median and change standard deviation calculation to "sample"
standard deviation.  Split statistics output onto 2 lines.

svn path=/trunk/; revision=36501
2011-04-06 19:48:11 +00:00
Gerald Combs 3e44421764 Either remove or use unused values found by Coverity. Fixes CIDs
1169-1172.

svn path=/trunk/; revision=36500
2011-04-06 18:59:36 +00:00
Anders Broman cd8af5a050 Add RoHC to the ethertypes.
svn path=/trunk/; revision=36499
2011-04-06 18:48:07 +00:00
Stephen Fisher 168ffba63f From Peter via bug #5798: Don't try to run svnversion if it isn't
executable.


svn path=/trunk/; revision=36498
2011-04-06 16:34:45 +00:00
Anders Broman 2251b8d331 From Johan Wåhl:
Add dissection of feature list flags.

svn path=/trunk/; revision=36497
2011-04-06 15:01:42 +00:00
Bill Meier 964690903f Use the correct handle when registering "media_type" "application/vnd.3gpp2.sms": Coverity 835.
svn path=/trunk/; revision=36496
2011-04-06 12:19:38 +00:00
Stig Bjørlykke 1fd17eb0d9 Fixed blurb for BER Error.
svn path=/trunk/; revision=36495
2011-04-06 09:59:21 +00:00
Stig Bjørlykke 3a1673c04c Made "BER Error" filterable.
svn path=/trunk/; revision=36494
2011-04-06 08:52:42 +00:00
Guy Harris f73c579d55 From Jakub Zawadzki:
file-wrappers.[ch] is used only for reading files, and mode is always
"rb".

Attached patch removes 'mode' argument from file_open() & filed_open().

svn path=/trunk/; revision=36493
2011-04-06 07:09:56 +00:00
Guy Harris 7fa6d929cf From Jakub Zawadzki: fix the type of an argument.
svn path=/trunk/; revision=36492
2011-04-06 06:59:19 +00:00
Guy Harris 4c93827e34 From Jakub Zawadzki:
file_read(buf, bsize, count, file) macro is compilant with fread
function and takes elements count+ size of each element, however to make
it compilant with gzread() it always returns number of bytes.

In wiretap file_read() this is not really used, file_read is called
either with bsize set to 1 or count to 1.

Attached patch remove bsize argument from macro.

svn path=/trunk/; revision=36491
2011-04-06 06:51:19 +00:00
Anders Broman c039f9f8a8 Add a comment
svn path=/trunk/; revision=36490
2011-04-06 06:24:19 +00:00
Tomas Kukosa 4e8c772d11 RFC5806 Diversion header
svn path=/trunk/; revision=36489
2011-04-06 06:20:50 +00:00
Anders Broman cb0e7f80da Missing decoding for CalledPartyBCD number in CAMEL
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5788

svn path=/trunk/; revision=36488
2011-04-06 06:20:32 +00:00
Bill Meier 9121c18590 IMHO capinfos, when finished processing, should exit with an error status
if an error occurred while processing.
E.G.,: For the default (no -C option):
  'capinfos invalid.xxx' or 'capinfos a.pcap invalid.xxx c.pcap'
 should exit with an error status
  (after processing all the input args) if there is an error for invalid.xxx.

With this fix, I expect fuzz-test.sh (and list_protos_in_cap.sh
and presumably other scripts) will work a bit more as as expected.


svn path=/trunk/; revision=36487
2011-04-06 01:41:03 +00:00
Stephen Fisher 250aa8810f Fix Coverity 1062: UNUSED_VALUE
svn path=/trunk/; revision=36486
2011-04-06 00:07:52 +00:00
Bill Meier 982decd6b2 Set the correct properties ....
svn path=/trunk/; revision=36485
2011-04-05 23:26:56 +00:00
Bill Meier 1c082f8d13 Set the correct properties ...
svn path=/trunk/; revision=36484
2011-04-05 23:03:21 +00:00
Gerald Combs 92c8f32ff7 Use the latest library tag, which updates GNUTLS. Add code to check for
libintl-8.dll and add the GNUTLS version if needed.

svn path=/trunk/; revision=36483
2011-04-05 22:38:12 +00:00
Gerald Combs 303539c005 More manifest fixes.
svn path=/trunk/; revision=36482
2011-04-05 22:33:37 +00:00
Chris Maynard 701f2053e6 Mark pinfo as unused with _U_ to avoid compiler warning.
svn path=/trunk/; revision=36481
2011-04-05 20:50:49 +00:00
Chris Maynard 595e5e1c1d Add ICMP tap support, and add a tshark tap to measure such things as:
* Number of ICMP echo requests, replies, lost replies and percent loss.
  * Min, Max, Average SRT (Service Response Time), and standard deviation.
(This is my first tap, so hopefully I didn't miss something, but we'll see ...)
TODO: Add a Wireshark tap.


svn path=/trunk/; revision=36480
2011-04-05 20:21:59 +00:00
Bill Meier 4f462b3d09 foo="\windows\style\pathname"; printf "$foo" isn't going to work too well in the general case ...
svn path=/trunk/; revision=36479
2011-04-05 19:21:16 +00:00
Bill Meier 84837d8fcd 1. Remove \r from tshark output so output OK on Windows cygwin bash.
2. Error messsages to stderr.
3. Check capinfos return value to verify that file is a valid capture file.

svn path=/trunk/; revision=36478
2011-04-05 18:01:33 +00:00
Chris Maynard 479d89cef7 Fix a few more typos and reformat some of the comments.
svn path=/trunk/; revision=36477
2011-04-05 17:27:30 +00:00
Gerald Combs 977ccf7f9b Remove the manifest as a prerequisite for packaging.
svn path=/trunk/; revision=36476
2011-04-05 16:14:19 +00:00
Stig Bjørlykke c13f84b345 Compile fix: camel_obj_id -> obj_id.
svn path=/trunk/; revision=36475
2011-04-05 15:49:56 +00:00
Anders Broman 909a166343 Actually get the oid string ...
svn path=/trunk/; revision=36474
2011-04-05 15:43:15 +00:00
Bill Meier 91991145de Don't assign to a proto_item * if the value won't be used: Coverity 858;
Fix two cases where items appear to be added to the wrong tree: Coverioty 856 & 857.
Also: remove some unneeded #includes& do some whitespace cleanup.

svn path=/trunk/; revision=36473
2011-04-05 15:33:56 +00:00
Bill Meier 40892a0f27 Don't assign to a proto_item * if the value won't be used: Coverity 882;
Also: #include <string.h> not req'd

svn path=/trunk/; revision=36472
2011-04-05 15:09:32 +00:00
Michael Tüxen cbcc0f287a Fix a typo in the help message.
Reported by Matthias Wellmeyer.

svn path=/trunk/; revision=36471
2011-04-05 14:28:33 +00:00
Anders Broman 8735a8d631 From Jose Pedro Oliveira:
#ifdef HAVE_LIBGCRYPT block includes a line too many.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5803

svn path=/trunk/; revision=36470
2011-04-05 05:50:45 +00:00
Jeff Morriss dcdbb29bed Remove some unused hf_ variables.
svn path=/trunk/; revision=36469
2011-04-05 02:35:32 +00:00
Jeff Morriss a148a936b1 From Felix Kraemer: fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5694 :
This patch adds the capability to create BACnet statistics trees. 
Find the respective menu items under 'Statistics->BACnet'.
Packets can be sorted by different criteria:
- Src/Dst IP adresses
- Instance ID
- Object Type
- Service

From me:
- Don't use C++/C99-style comments.
- Name variables for tick_stat_node() don't need to be static.
- Change updateBacnetInfoValue() to require 'data' to be ep_ allocated.  Change
  the couple of calls that did not send in ep_ allocated data to do so.
- Change one or two functions to be static.
- Do not use (memory-unsafe) g_sprintf().
- Use ep_strconcat() instead of leaking memory with g_strconcat().
- Put back one if(tree) that doesn't appear to do any harm.
- Remove variable declarations and #includes from the header file.

svn path=/trunk/; revision=36468
2011-04-05 02:18:28 +00:00
Jeff Morriss b8acdc8ee0 Set BIN_DIR to . by default. Use tr to replace colons with newlines.
svn path=/trunk/; revision=36467
2011-04-05 01:21:19 +00:00
Bill Meier 49ac29b682 Don't assign to a proto_item * if the value won't be used: Coverity 850;
Also: remove some unneeded #includes.

svn path=/trunk/; revision=36466
2011-04-04 20:03:27 +00:00
Bill Meier 0820763edb Fix "MISSING_BREAK"; Coverity 436.
svn path=/trunk/; revision=36465
2011-04-04 19:41:51 +00:00
Bill Meier 747477c7ab Don't assign to a proto_item * if the value won't be used: Coverity 846 & 848;
Also: remove some unneeded #includes


svn path=/trunk/; revision=36464
2011-04-04 19:23:39 +00:00
Chris Maynard 43803a3457 More console tweaks. But how to prevent prompt from being displayed before
command finishes without requiring, "start /wait <command>"?

svn path=/trunk/; revision=36463
2011-04-04 19:15:31 +00:00
Jeff Morriss 8dba97226a Based on idea from Bill Meier:
A little script to extract the protocols used in given capture files.

(Just so I don't have to remember how to do it again.)

svn path=/trunk/; revision=36462
2011-04-04 19:10:30 +00:00
Jeff Morriss 4cbe8ff6db Fix up indentation
svn path=/trunk/; revision=36461
2011-04-04 18:43:59 +00:00
Bill Meier db925b3bfb Don't assign to a proto_item * if the value won't be used: Coverity 836;
Also: remove some unneeded #includes.

svn path=/trunk/; revision=36460
2011-04-04 18:41:49 +00:00
Bill Meier 07e325bf63 Don't assign to a proto_item * if the value won't be used: Coverity 832-834.
Also: white space cleanup.

svn path=/trunk/; revision=36459
2011-04-04 18:13:22 +00:00
Gerald Combs 031164aa9f More console tweaks.
svn path=/trunk/; revision=36458
2011-04-04 18:03:24 +00:00
Stephen Fisher 5499d2a6bd Fix Coverity 1137, 1138, 1139: UNUSED_VALUE
svn path=/trunk/; revision=36457
2011-04-04 17:56:16 +00:00
Bill Meier c6c91f8e76 Don't assign to a proto_item * if the value won't be used: Coverity 829 & 830;
Fix a minor bug wherein a number of proto_tree_add_...() used the wrong tree: Coverity 831;
Remove some unneeded #includes.

svn path=/trunk/; revision=36456
2011-04-04 17:49:32 +00:00
Gerald Combs e7435f2d3f Only call destroy_console() when we create a console (pointed out by
Chris Maynard).

svn path=/trunk/; revision=36455
2011-04-04 17:48:07 +00:00
Stephen Fisher 39699efe92 Fix compilation error:
packet-amqp.c:5617:5: error: "/*" within comment

Cause:

Previous comment wasn't terminated right


svn path=/trunk/; revision=36454
2011-04-04 17:42:37 +00:00