Commit Graph

39341 Commits

Author SHA1 Message Date
Jeff Morriss 5ca357f245 Don't use FT_BOOLEAN with value_strings: the code to generate
representations of former is expecting true_false_strings--which are quite
different than the latter.

svn path=/trunk/; revision=41363
2012-03-06 02:19:23 +00:00
Jeff Morriss 406861ebf4 Don't use FT_*INT with true_false strings: the code to generate
representations of former is expecting value_strings--which are quite
different than the latter.

svn path=/trunk/; revision=41362
2012-03-06 02:04:10 +00:00
Jeff Morriss 033ad2a5ee Don't use FT_*INT with true_false strings: the code to generate
representations of former is expecting value_strings--which are quite
different than the latter.

svn path=/trunk/; revision=41361
2012-03-06 01:55:21 +00:00
Jörg Mayer d05e4fd56f Binary and source tarballs should be compressed with bzip2 only
(xz is not an options that cmake offers).

svn path=/trunk/; revision=41360
2012-03-05 22:13:09 +00:00
Jeff Morriss 45c4657d97 Fix the infinite-loop fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6907 :
Don't try to display tone entries if there are none (but there is length for
them).  Could/should be an expert_info.

svn path=/trunk/; revision=41359
2012-03-05 21:59:52 +00:00
Bill Meier 69ef1478d4 Fix filter name: "iee17221.channels" --> "ieee17221.channels"
svn path=/trunk/; revision=41358
2012-03-05 20:50:25 +00:00
Bill Meier 25beeec73b Various changes:
- Use proper proto_tree_add_item() 'encoding' arg (instead of TRUE/FALSE);
- Call col_append_fstr() even when 'tree==NULL';
- Use value_string_ext to access the larger value_string tables;
- Handle tvb_reported_length() can return -1;
- Remove 'set but never used' variable and associated line of code;
- Remove unneeded #include <prefs.h>;
- Remove empty proto_reg_handoff();
- Do minor whitespace cleanup.

svn path=/trunk/; revision=41357
2012-03-05 18:57:18 +00:00
Anders Broman 34f66b12d8 Use a dedicated treview for packet comments.
svn path=/trunk/; revision=41356
2012-03-05 13:34:55 +00:00
Anders Broman de47b36104 From Cal Turney:
Bugs in the tshark '-z io,stat' output:
1: The LOAD stat in the last row of the output is inaccurate because rpc.time
is divided by the full interval rather than limiting it to the capture
duration.
2: An The empty comma field (for outputting total frames and bytes) is ignored
when it is the first field in the command.
3: Intervals at the end of capture that contain no data are not displayed. Such
intervals are as important to see as those (zero data intervals) that occur
earlier in the capture. 
4: Floating point numbers are not properly aligned under their column headers.

Enhancements to '-z io,stat' output:
1. Column widths are determined by the maximum magnitude of their values rather
than set to a fixed width of 15 chars which allows for more stats to be
displayed per row without wrapping. 
2. To improve readability, filters wrap at 102 chars or the table width,
whichever is greater, and wrap on the nearest space. An option can be added to
alter the 102-char limit. 
3. Column numbers begin at 1 instead of 0.     
4. The columns and entire output are enclosed in a border for improved
presentability in reports. The table can be imported into a spreadsheet by
specifying the vertical bar as the data delimiter.

"Fixed" compiling on Ubuntu

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

svn path=/trunk/; revision=41355
2012-03-05 12:06:26 +00:00
Alexis La Goutte 85ae30c42b Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41354
2012-03-05 09:50:42 +00:00
Alexis La Goutte 098af85595 From Ryan Doyle via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6874
New dissector: performance co-pilot protocol

Attached patch implements dissection of the Performance Co-Pilot (PCP) protocol.

From me :
* Add Wireshark Modelines
* Fix encoding args
* Fix Clang Warning

svn path=/trunk/; revision=41353
2012-03-05 09:49:37 +00:00
Anders Broman ddd69f4775 Use correct lenght when writing if_filter_str.
svn path=/trunk/; revision=41352
2012-03-05 09:32:21 +00:00
Anders Broman a20cfcc745 Fix calculation of pading for if_filter_str.
svn path=/trunk/; revision=41351
2012-03-05 09:21:36 +00:00
Anders Broman 995e10ef36 From Martin Kaiser:
wiretap mpeg2 ts: eof vs short read
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6909

svn path=/trunk/; revision=41350
2012-03-05 08:34:36 +00:00
Anders Broman 4db442ab90 From Martin Kaiser:
wiretap mpeg2 ts: more thorough check for sync byte.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6908

svn path=/trunk/; revision=41349
2012-03-05 08:30:39 +00:00
Guy Harris 26f694ddee Fix comment.
svn path=/trunk/; revision=41347
2012-03-05 06:43:44 +00:00
Bill Meier cc0e72d15e Trust but verify that there's no g_snprintf() buffer overflow.
svn path=/trunk/; revision=41346
2012-03-05 00:46:31 +00:00
Bill Meier 1155e25c89 Cleanup:
- packet-erf.h not used elsewhere; move to packet-erf.c;
- reformat long lines;
- minor code re-arrangement;
- whitespace cleanup.

svn path=/trunk/; revision=41345
2012-03-05 00:01:28 +00:00
Bill Meier bba57bcfae Fix bugs in buffer overflow checking used with calls to g_snprintf();
svn path=/trunk/; revision=41344
2012-03-04 23:34:58 +00:00
Bill Meier 24fc709aad (Trivial) Fix a typo.
svn path=/trunk/; revision=41343
2012-03-04 23:01:39 +00:00
Guy Harris 732de9018d Squelch a can't-really-happen uninitialized reference warning.
svn path=/trunk/; revision=41342
2012-03-04 20:49:17 +00:00
Anders Broman 7348837ccd Use parentheses
svn path=/trunk/; revision=41341
2012-03-04 19:31:33 +00:00
Anders Broman d5851a0953 forgotten update
svn path=/trunk/; revision=41340
2012-03-04 19:03:03 +00:00
Anders Broman 971cb84877 if_filter isn't a string per se,The first byte of the Option Data keeps a code of the filter used
svn path=/trunk/; revision=41339
2012-03-04 19:01:14 +00:00
Anders Broman d75c3d384e From Martin Kaiser: DVB-CI authentication resource https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6905
svn path=/trunk/; revision=41338
2012-03-04 16:16:03 +00:00
Anders Broman b55cd3e8a9 "From Jan Šafránek: Add support for AES in Microsoft Network Logon Negotiation options https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6895"
svn path=/trunk/; revision=41337
2012-03-04 16:07:24 +00:00
Gerald Combs cf442a7985 [Automatic manuf, services and enterprise-numbers update for 2012-03-04]
svn path=/trunk/; revision=41334
2012-03-04 15:03:37 +00:00
Guy Harris aa974fda50 Make sure all names in NRB records are null-terminated; report an error
if they're not.  Also report an error for zero-length names.

Handle multiple names per IP address - the pcap-NG spec says "one or
more zero-terminated strings containing the DNS entries for that
address."

Use a Buffer to hold NRB records, so there's no maximum size (well,
there is a maximum size, because the record length is 16 bits, but let's
not allocate 64KiB on the stack if we don't have to).

svn path=/trunk/; revision=41332
2012-03-04 02:20:25 +00:00
Bill Meier 2e729fbb96 Change all hf[] FT_UINT? fields referencing 'avp_bool_vals' to be FT_BOOLEAN fields.
#include <stdio.h> not req'd;
Add editor modelines for "3 space" indentation.

svn path=/trunk/; revision=41331
2012-03-03 21:58:38 +00:00
Anders Broman ad6640344f From Jose Pedro Oliveira: Fix typos
svn path=/trunk/; revision=41330
2012-03-03 16:17:20 +00:00
Balint Reczey 104bab54f1 Use 'wireshark' icon from theme
This makes Wireshark able to use SVG icon when it is installed

svn path=/trunk/; revision=41329
2012-03-03 15:40:38 +00:00
Guy Harris 25ae6ac329 Use wtap_dump_open_ng(), so we preserve all the interfaces in pcap-NG
files.

svn path=/trunk/; revision=41328
2012-03-03 00:14:16 +00:00
Guy Harris b18a5f9805 Don't look at the interface_id field of the packet header if
WTAP_HAS_INTERFACE_ID isn't set in the presence flags.

svn path=/trunk/; revision=41327
2012-03-03 00:13:25 +00:00
Balint Reczey 9d1c2ec81d Make SVG images useable as icons
svn path=/trunk/; revision=41326
2012-03-02 23:31:48 +00:00
Jeff Morriss 4289f6d7be Don't add an FT_BYTES with proto_tree_add_uint().
svn path=/trunk/; revision=41325
2012-03-02 22:24:12 +00:00
Jeff Morriss 9bd0312661 Fix a few bugs found by Clang analysis:
packet-ieee17221.c:3123:10: warning: Value stored to 'mr_offset' is never read
	- Put the offset increment inside the loop

packet-ieee17221.c:2888:10: warning: Value stored to 'mr_subtree' is never read
	 - Use the newly-created subtree (instead of the parent tree)

packet-ieee17221.c:2692:13: warning: Value stored to 'next_tvb' is never read
	- Use next_tvb (instead of the main tvb which doesn't start at the
	  correct offset)

svn path=/trunk/; revision=41324
2012-03-02 20:17:36 +00:00
Anders Broman 464ec2dcb1 Typo
svn path=/trunk/; revision=41323
2012-03-02 13:53:30 +00:00
Anders Broman ff47bdf96c Use the expert system to show packet comments.
The packet comment widget should be replaced by a ListView with two columns,  packet no and Comment.

svn path=/trunk/; revision=41322
2012-03-02 13:31:16 +00:00
Guy Harris 15a88e695f Update comment - now that we support adding comments to files, a capture
that we've saved to a particular path, or that we've read in, could
still be unsaved if we add comments to it.

svn path=/trunk/; revision=41321
2012-03-02 11:41:50 +00:00
Guy Harris b77a0b3827 Fix indentation.
svn path=/trunk/; revision=41320
2012-03-02 11:36:44 +00:00
Anders Broman 6b3c0cd4f8 Remove now unused variables.
svn path=/trunk/; revision=41319
2012-03-02 11:25:17 +00:00
Alexis La Goutte a270eef82c Fix typo and add Modelines information
svn path=/trunk/; revision=41318
2012-03-02 11:11:59 +00:00
Alexis La Goutte cc7151b1b9 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41317
2012-03-02 11:10:08 +00:00
Alexis La Goutte f1723b8c1d Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41316
2012-03-02 11:09:47 +00:00
Alexis La Goutte aa4a11af37 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41315
2012-03-02 11:09:34 +00:00
Alexis La Goutte 8179474093 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41314
2012-03-02 11:09:15 +00:00
Alexis La Goutte ba4c8fdbc3 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41313
2012-03-02 11:08:49 +00:00
Alexis La Goutte 92896f46b8 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41312
2012-03-02 11:07:50 +00:00
Alexis La Goutte 168c540f65 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41311
2012-03-02 11:07:36 +00:00
Alexis La Goutte c6fc195c47 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41310
2012-03-02 11:06:52 +00:00