Commit Graph

50440 Commits

Author SHA1 Message Date
Martin Kaiser de590abe6c fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9474
make mepg-sect a new-style dissector and do a length check on the
incoming tvb

svn path=/trunk/; revision=53573
2013-11-25 17:04:58 +00:00
Alexis La Goutte 393c769597 From Thomas ERSFELD (GSoC13) and me : Try to fix OSX-10.5-x86 (without pcap...) Buildbot
svn path=/trunk/; revision=53572
2013-11-25 17:01:10 +00:00
Martin Kaiser 818ce4f301 mark unused parameter
svn path=/trunk/; revision=53571
2013-11-25 16:59:06 +00:00
Bill Meier 3e3c976377 Create/use extended value_string;
Move value_string array definitions from .h to .c file
 (value_string definitions should never be in a .h file);
Add XXX comments re value_string arrays containing
 duplicate values [ptp_opcode_names & ptp_respcode_names];
Remove unneeded #includes (stdio.h, stdlib.h & string.h);
Remove some unneeded initializers;
Add editor modelines.
Do some whitespace & long-lines changes;

svn path=/trunk/; revision=53570
2013-11-25 16:57:43 +00:00
Michael Mann a9dd765d47 Remove Fibre Channel specific fields from packet_info and just have the fc_hdr or fc_data_t structure passed between all necessary dissectors.
svn path=/trunk/; revision=53569
2013-11-25 16:04:57 +00:00
Alexis La Goutte d4c4e24351 Try to fix OSX-10.6-x64 Buildbot
svn path=/trunk/; revision=53568
2013-11-25 15:56:22 +00:00
Alexis La Goutte 056a5edc21 Comment debug...
svn path=/trunk/; revision=53567
2013-11-25 15:43:16 +00:00
Alexis La Goutte 34d7df78cc From Thomas ERSFELD (GSoC13) : Try to fix Windows buildbot
svn path=/trunk/; revision=53566
2013-11-25 15:43:08 +00:00
Bill Meier 15083359a7 Create/use some extended value_strings.
Add editor modelines.

svn path=/trunk/; revision=53565
2013-11-25 15:37:56 +00:00
Jeff Morriss a427b587ae Add svn:eol-style.
svn path=/trunk/; revision=53564
2013-11-25 15:35:53 +00:00
Alexis La Goutte 43b1f47695 From Thomas ERSFELD (GSoC13) : Add Capture interface dialog window
* Reuse sparkline from welcome
* Split settings in tab (!= GTK)
* No all feature work (Work In Progress...)
* ...

Comments (and review) are welcome !

svn path=/trunk/; revision=53563
2013-11-25 14:15:49 +00:00
Pascal Quantin 402fed459f Fix a shadowed declaration error when compiling with gcc 4.3.2
svn path=/trunk/; revision=53562
2013-11-25 11:23:11 +00:00
Pascal Quantin 17e16ae136 Prettify LTE Positioning Protocol dissection
svn path=/trunk/; revision=53561
2013-11-25 11:16:24 +00:00
Anders Broman 0757ccc560 Add a temporary workaround for the duplicated filter name problem.
svn path=/trunk/; revision=53560
2013-11-25 07:22:17 +00:00
Michael Mann 6505190fb7 Move DCERPC data in packet_info needed for Decode As into packet scoped proto data.
svn path=/trunk/; revision=53559
2013-11-25 00:14:50 +00:00
Bill Meier a15b7e998a Create/use a fair number of extended value_strings;
Add an XXX comment noting that the 'ndps_error_types' array has a
 number of duplicate values; Also note the commenting out of those
 dups which would not have been found via a linear search in the
 original unsorted array.

svn path=/trunk/; revision=53558
2013-11-24 23:55:26 +00:00
Pascal Quantin db7405bb13 Dissect UE Rx - Tx time difference field
svn path=/trunk/; revision=53557
2013-11-24 23:09:48 +00:00
Guy Harris 4dbed5fbd0 According to
http://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Code-Gen-Options.html#Code-Gen-Options

-ftrapv "generates traps for signed overflow on addition, subtraction,
multiplication operations." and -fwrapv "instructs the compiler to
assume that signed arithmetic overflow of addition, subtraction and
multiplication wraps around using twos-complement representation."

Those seem mutually-exclusive to me, and we probably want wrapping, not
traps, as there's probably a fair bit of code out there that explicitly
or implicitly assumes wrapping.  (Actually, we really want to avoid
signed arithmetic for the cases that most matter, such as offsets and
lengths, but, unfortunately, we currently have API conventions that
allow negative values for lengths, either with -1 meaning "to the end"
or with negative values meaning "relative to the end".)  In addition,
there seem to be some bugs complaining that -ftrapv doesn't always cause
traps on signed integer overflow.

We seem to be seeing crashes in Lemon on the Solaris buildbot subsequent
to adding -ftrapv; I don't know whether that's an overflow being
detected, a bug in the compiler, or something unrelated, especially
given that we're using Sun C, not GCC, on the Solaris buildbot. 
However, we'll try removing -ftrapv, to see if it fixes the problem; the
MIT CSAIL paper in question wasn't really recommending all the GCC
options it mentioned (which, as noted, wouldn't make sense, as -ftrapv
and -fwrapv appear to be mutually-exclusive).

svn path=/trunk/; revision=53556
2013-11-24 22:51:44 +00:00
Guy Harris 91159d959f Note that I've filed a Samba bug for one of the problems.
svn path=/trunk/; revision=53555
2013-11-24 22:13:28 +00:00
Guy Harris 58771673a4 pidl would tag all pinfo arguments as unused, as it doesn't take the
effort to figure out whether they *are* used (and there's no point in it
doing so - might as well just flag them preemptively).

pidl can't handle this, at least not on OS X, as it's not handling the
C++/C99-style dissectors in the IDL for NSPI, so we manually put the
_U_s back.

svn path=/trunk/; revision=53554
2013-11-24 21:21:42 +00:00
Guy Harris 0f28eb7cc6 Squelch a Coverity warning (not necessary, but it still complains).
svn path=/trunk/; revision=53553
2013-11-24 21:15:22 +00:00
Michael Mann e2df7c83cb Move dceprc_procedure_name from packet_info to dcerpc_info. Doesn't appear to be "used" by dissectors, just stored (for help in debugging?).
svn path=/trunk/; revision=53552
2013-11-24 20:55:55 +00:00
Balint Reczey ee147994b7 Use GCC flags to avoid optimization problems due to undefined behaviour
Adding flags suggested by article at:
http://pdos.csail.mit.edu/~xi/papers/stack-sosp13.pdf

svn path=/trunk/; revision=53551
2013-11-24 20:28:25 +00:00
Graham Bloice e36f3b0526 Ensure the WIRESHARK_BASE_DIR env var is in cmake format. Required for the regex in FindGTK3.cmake.
svn path=/trunk/; revision=53550
2013-11-24 19:12:07 +00:00
Bill Meier 7510deeab7 Create/use some extended value_strings;
Do a few trivial whitespace tweaks.

svn path=/trunk/; revision=53549
2013-11-24 15:55:10 +00:00
Gerald Combs 3b324fd7da [Automatic manuf, services and enterprise-numbers update for 2013-11-24]
svn path=/trunk/; revision=53546
2013-11-24 15:03:43 +00:00
Jeff Morriss a98072967e Fix checkAPIs: don't try to feed VALS() into FT_BOOLEANs.
Also, as per Peter Harris' request, update copyright date.

svn path=/trunk/; revision=53545
2013-11-24 14:27:52 +00:00
Jakub Zawadzki 6aec20c782 Rmove packet_info argument from packet_list_append(), never used.
Part of attachment 12060, from Didier Gautheron (bug #9419).

svn path=/trunk/; revision=53544
2013-11-24 12:49:50 +00:00
Guy Harris 92fba9d072 Actually, the "1632" types do exist, and are 16-bit for NDR and 32-bit
for NDR64, and we handle them.  The real problems are elsewhere.

svn path=/trunk/; revision=53543
2013-11-24 04:39:27 +00:00
Guy Harris 0a2519f39c These are two of the problems that pidl has with dfs.idl.
svn path=/trunk/; revision=53542
2013-11-24 04:15:25 +00:00
Guy Harris 61cce924e4 Get rid of trailing spaces, fix some proto_tree_add_item() calls as per
the result of pidl on dce.idl.

(We can't just regenerate it, as there are some pidl bugs that cause bad
code to be generated.)

svn path=/trunk/; revision=53541
2013-11-24 04:14:00 +00:00
Guy Harris f7e5e2d594 The issue with misc.idl was a .cnf file that needed to be updated.
Give details of the problems with the other files.

svn path=/trunk/; revision=53540
2013-11-24 03:33:17 +00:00
Guy Harris eb223ff796 Regenerate - new API changes, get rid of trailing whitespace.
svn path=/trunk/; revision=53539
2013-11-24 03:21:50 +00:00
Guy Harris f070b9e0e2 Fix to match API changes.
svn path=/trunk/; revision=53538
2013-11-24 03:20:25 +00:00
Guy Harris 9410fcccbc Fix line endings, set svn:eol-style to native.
svn path=/trunk/; revision=53537
2013-11-24 03:18:22 +00:00
Guy Harris d30959df3e Update a date, explain what the problems are with a bunch of IDL files,
add another file that *might* be generating incorrect code.

svn path=/trunk/; revision=53536
2013-11-24 02:58:26 +00:00
Guy Harris 3f6b85ecbe Regenerate - for whatever reason, the fields come out in a different
random order, but nothing else changes.

svn path=/trunk/; revision=53535
2013-11-24 02:57:24 +00:00
Guy Harris 70cea27d59 Regenerated with the current version of pidl; mainly removes trailing
white space, but also gets rid of an apparently-unnecessary _U_ for one
argument.

svn path=/trunk/; revision=53534
2013-11-24 02:51:36 +00:00
Guy Harris cafef8b111 Updates to:
suggest using our version of pidl, given that its Wireshark
	parser generator has changes to support the current internal
	Wireshark APIs for dissectors;

	suggest using "--includedir ." to make IDL files in
	subdirectories of epan/dissectors/pidl work;

	update the list of IDL files with issues;

	reformat to 80x66 (if it's good enough for Herman Hollerith,
	it's good enough for me!).

svn path=/trunk/; revision=53533
2013-11-24 02:45:38 +00:00
Jeff Morriss de2a922b55 Some patches from Peter Harris to make it possible to build the X11 dissector
again (and some various other improvements):

Rebuild the dissector with the latest xcbproto and mesa.


Subject: [PATCH 01/11] X11 dissector: Support CARD64 and INT64 types
These types are used by the new Present extension.

Subject: [PATCH 02/11] X11 dissector: Un-blacklist a few structures
The xinput structs are used by the latest xcb/proto, and the xkb
struct has been removed.

Subject: [PATCH 03/11] X11 dissector: Add hack for xinput:ChangeProperty
xinput:ChangeProperty should use switch/case, but only switch/bitcase
is supported at the moment. Add (hopefully temporary) hack.

Subject: [PATCH 04/11] X11 dissector: Use namespace for types
In particular, the name of the xsync struct 'INT64' collides with a
basic type of the same name.

Subject: [PATCH 05/11] X11 dissector: Add support for "Generic" events
All new extensions are using the new "Generic" events instead of
traditional events, because there aren't enough traditional event
numbers.

Denoted by <event xge="true"> in xcb/proto.

Subject: [PATCH 06/11] X11 dissector: Blacklist unused structures

Subject: [PATCH 07/11] X11 dissector: Support multiple enumref in a bitcase
XKB is weird.

Subject: [PATCH 08/11] X11 dissector: Support sumof

Subject: [PATCH 09/11] X11 dissector: Stop generating unused-but-set variables
(This patch also reverts r53298/r53299.)

svn path=/trunk/; revision=53532
2013-11-24 01:32:55 +00:00
Jeff Morriss a434d9647e Some patches from Peter Harris to make it possible to build the X11 dissector
again (and some various other improvements):

Rebuild the dissector with the latest xcbproto and mesa.


Subject: [PATCH 01/11] X11 dissector: Support CARD64 and INT64 types
These types are used by the new Present extension.

Subject: [PATCH 02/11] X11 dissector: Un-blacklist a few structures
The xinput structs are used by the latest xcb/proto, and the xkb
struct has been removed.

Subject: [PATCH 03/11] X11 dissector: Add hack for xinput:ChangeProperty
xinput:ChangeProperty should use switch/case, but only switch/bitcase
is supported at the moment. Add (hopefully temporary) hack.

Subject: [PATCH 04/11] X11 dissector: Use namespace for types
In particular, the name of the xsync struct 'INT64' collides with a
basic type of the same name.

Subject: [PATCH 05/11] X11 dissector: Add support for "Generic" events
All new extensions are using the new "Generic" events instead of
traditional events, because there aren't enough traditional event
numbers.

Denoted by <event xge="true"> in xcb/proto.

Subject: [PATCH 06/11] X11 dissector: Blacklist unused structures

Subject: [PATCH 07/11] X11 dissector: Support multiple enumref in a bitcase
XKB is weird.

Subject: [PATCH 08/11] X11 dissector: Support sumof

Subject: [PATCH 09/11] X11 dissector: Stop generating unused-but-set variables
(This patch also reverts r53298/r53299.)

svn path=/trunk/; revision=53531
2013-11-24 01:32:20 +00:00
Evan Huus 1db1b8e2bb Convert ASN1 dissectors from ep_address_to_str to address_to_str. Clean up a bit
of ansi_tcap code while in the neighbourhood.

svn path=/trunk/; revision=53530
2013-11-23 22:37:33 +00:00
Michael Mann 318d38b576 Use 32bit key in p_add_proto_data() and friends. Bug 9453 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9453)
From Dirk

svn path=/trunk/; revision=53529
2013-11-23 22:29:31 +00:00
Evan Huus d97c9e2ff4 Implement address_to_str which is like ep_address_to_str and se_address_to_str
except it takes a wmem scope instead. Add the two emem equivalents to checkAPI
as (weakly) deprecated.

svn path=/trunk/; revision=53528
2013-11-23 22:17:27 +00:00
Evan Huus df1aec4a6b Remove old (2009) and no-longer-necessary compatibility macro.
svn path=/trunk/; revision=53527
2013-11-23 22:03:48 +00:00
Michael Mann ea63042f9b Bluetooth improvements. Bug 9446 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9446)
From Michal Labedzki 

svn path=/trunk/; revision=53525
2013-11-23 21:41:08 +00:00
Guy Harris 84e23ce90f Set a field to squelch a Coverity warning.
svn path=/trunk/; revision=53524
2013-11-23 20:10:02 +00:00
Guy Harris a18cf1975f Always check cf->edt before dereferencing it, so that Coverity doesn't
say "you checked it here, but you dereferenced it later even if it was
null when you checked it".

This obviates the need for some checks of frame_selected, as cf->edt
will be non-null iff cf->current_frame is non-null.

Always check *cf, not cfile, in set_menus_for_selected_packet(). 
Currently, cf always == &cfile, but we aren't guaranteeing that will be
true forever.

svn path=/trunk/; revision=53523
2013-11-23 19:51:02 +00:00
Michael Mann 55c6869980 Remove ip_ttl from packet_info structure.
Part of the fix includes having the IPv6 dissector populate as much of a ws_ip structure as possible to pass to subdissectors of the "ip.proto" table, so the ttl value can be picked up.

svn path=/trunk/; revision=53522
2013-11-23 19:16:05 +00:00
Pascal Quantin 9150571bf3 Check the packet length when using the "Force decoding of unknown USB control data as MBIM" option to reduce false positives.
Align text in info column.

svn path=/trunk/; revision=53521
2013-11-23 12:30:19 +00:00