Commit Graph

35049 Commits

Author SHA1 Message Date
Bill Meier cca5904550 Don't assign to a proto_item * if the value won't be used: Coverity 923-927;
Add braces around around certain code sections for indentation purposes;
Do some indentation & whitespace cleanup.

svn path=/trunk/; revision=36529
2011-04-09 17:11:13 +00:00
Bill Meier 2674aeb1ff Don't assign to a proto_item * if the value won't be used: Coverity 891 & 892;
Also: #include <stdlib.h> & <string.h> not req'd;  fix some indentation.


svn path=/trunk/; revision=36528
2011-04-09 13:44:00 +00:00
Guy Harris c8d2cd3cb5 In packet_list_dissect_and_cache_record(), set the columns to
*something* if we get an error reading the packet from the capture file,
rather than leaving them as null (which will cause a crash).

svn path=/trunk/; revision=36527
2011-04-09 04:33:26 +00:00
Gerald Combs a5ddd187ca Fix Coverity CID 557.
svn path=/trunk/; revision=36526
2011-04-08 21:21:32 +00:00
Bill Meier 1667de16c5 Don't assign to a proto_item * if the value won't be used: Coverity 990;
Add some missing code: improves display of "main_opcode" field: Coverity 991, 993 & 994;
Fix bug introduced a while back: "changeinfo4" field details aren't displayed: Coverity 992;
Add missing code so READDIR (V4) details  are shown in a subtree (as presumably was originally intended);
Fix some indentation.

svn path=/trunk/; revision=36525
2011-04-08 20:06:56 +00:00
Anders Broman 842d4ff53e From Pascal Quantin:
A patch adding the missing hunks (it looks like extract_asn1_from_spec.pl script is mixing Windows and Linux line endings).

svn path=/trunk/; revision=36524
2011-04-08 19:54:07 +00:00
Alexis La Goutte fbe119c3c5 Enhance Vendor Specific Atheros IE
* Replace proto_tree_add_ether/boolean by proto_tree_add_item
* use BASE_CUSTOM for XR beacon interval 
* use ENC_* macro for encoding
* replace if(...) by switch(...) for type and subtype (more extensible if new (sub)type)
* add expert info when tag_len is incorrect

Fix also a minor issue with tag_end...


svn path=/trunk/; revision=36523
2011-04-08 19:52:04 +00:00
Gerald Combs a5b20fbdf6 Add a relative path to the "#line" directives we produce. Regenerate the
SNMP and SPNEGO dissectors to see if it helps Coverity locate the
original source files.

svn path=/trunk/; revision=36522
2011-04-08 19:51:39 +00:00
Guy Harris de938dddce Just make the fh member of a wtap_dumper_t a void * for now, and, in all
calls that use it, cast it to whatever it's supposed to be.  Making it a
gzFile means you can't use any stdio macros that reach inside the
structure; making it a FILE *, as it used to be, amounts to trying to
use a FILE * as a void * if we're writing a compressed file out.

svn path=/trunk/; revision=36521
2011-04-08 17:42:20 +00:00
Anders Broman da3f7673db From Pascal Quantin:
Upgrade LTE RRC ASN.1 description to V9.6.0

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

svn path=/trunk/; revision=36520
2011-04-08 17:36:53 +00:00
Gerald Combs c055b77725 Add Babel.
svn path=/trunk/; revision=36519
2011-04-08 17:05:05 +00:00
Stephen Fisher 374558c830 From Juliusz Chroboczek via bug #5812: Dissector for the Babel Routing
Protocol (RFC 6126)


svn path=/trunk/; revision=36518
2011-04-08 16:53:02 +00:00
Anders Broman 19642f9dc0 Make wtap plugins build on windows again.
svn path=/trunk/; revision=36517
2011-04-08 15:57:44 +00:00
Anders Broman f5c1fc47af Use tvb_get_ephemeral_string()
prefix hf vars with hf_sip

svn path=/trunk/; revision=36516
2011-04-08 11:58:33 +00:00
Guy Harris 44462adc0f Change ng_file_read() to take only one size argument - and make it an
unsigned int - to match file_read().  Shrink some arguments, variables,
and structure members appropriately.

Fix an incorrect sizeof - sizeof a pointer is the size of the pointer,
not the size of what it points to.

svn path=/trunk/; revision=36515
2011-04-08 01:57:02 +00:00
Guy Harris f3873931ec To squelch some compiler warnings, temporarily cast the argument to
ws_lseek() to the appropriate type for the second argument to _lseek()
for Windows or lseek() for UN*X; ultimately, we want to call the
appropriate 64-bit-offset seek routine if available, otherwise cast the
value down and hand it to the 32-bit-offset seek routine.

svn path=/trunk/; revision=36514
2011-04-08 01:55:25 +00:00
Guy Harris ab261a3281 From Jakub Zawadzki:
Steal file_wrappers functions from zlib v2.

svn path=/trunk/; revision=36513
2011-04-08 00:28:37 +00:00
Gerald Combs f989235a87 Use a unique variable name. Fixes Coverity CID 593.
svn path=/trunk/; revision=36512
2011-04-07 23:52:37 +00:00
Gerald Combs 56bc7f5e47 Be more picky about our sscanf integer field widths. Hopefully this will
help squelch Coverity CIDs 701-709.

svn path=/trunk/; revision=36511
2011-04-07 23:16:05 +00:00
Guy Harris d00527f369 From Jakub Zawadzki:
Introduce file_clearerr

	I'm unsure of this patch, 

	gzclearerr() is used to clear the end-of-file mark, but for FILE
	there's function which do the same (clearerr).

	I created test program if clearerr() is needed for tailing file. 
	and it seems to work without it (at least on Linux, so for
	!HAVE_LIBZ I commented it out).

	For now this patch introduce file_clearerr macro, and define it
	only when EOF marking must be cleared (i.e.  when HAVE_LIBZ and
	HAVE_GZCLEARERR are defined).

	So everything works like before, patch just to keep same prefix
	for file interface :)

svn path=/trunk/; revision=36510
2011-04-07 21:53:31 +00:00
Anders Broman 538b62429d Make it possible to have a sub dissector dissect the status line diagnostic string should it contain more than a string.
svn path=/trunk/; revision=36509
2011-04-07 21:39:49 +00:00
Chris Maynard 7866917d2f Display frame numbers containing min & max SRT's. Other misc. display tweaks.
svn path=/trunk/; revision=36508
2011-04-07 20:41:11 +00:00
Jeff Morriss e61fd0979b From Gisle Vanem: text_import_scanner_lex.h is no longer used.
svn path=/trunk/; revision=36507
2011-04-07 20:04:01 +00:00
Alexis La Goutte 99ff83cffc Enhance Tag Measurement Request & Report
* Replace proto_tree_add_uint*/boolean/text by proto_tree_add_item
* use ENC_* macro for encoding
* ...

My first commit !

svn path=/trunk/; revision=36506
2011-04-07 16:16:47 +00:00
Bill Meier df0f97844e (Trivial) Fix a typo & some indentation.
svn path=/trunk/; revision=36505
2011-04-07 14:07:54 +00:00
Chris Maynard 908d7ba39f Until the minimum glib version requirement is changed from 2.4 to at least 2.8,
use g_try_malloc() instead of g_try_malloc0().  This should make the Solaris
buildbot happy again. 

svn path=/trunk/; revision=36504
2011-04-07 13:41:25 +00:00
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