Commit Graph

50413 Commits

Author SHA1 Message Date
Guy Harris b01acd4b25 Add explanatory comments.
svn path=/trunk/; revision=53596
2013-11-26 09:10:50 +00:00
Guy Harris dae2d0265b Fix indentation.
svn path=/trunk/; revision=53595
2013-11-26 09:08:45 +00:00
Irene Rüngeler f9c662de71 Initialize more values and set the current item explicitly.
svn path=/trunk/; revision=53594
2013-11-26 08:29:30 +00:00
Guy Harris b5e698553e Report the interface when an open or an attempt to set the link-layer
header type fails, as we might be capturing on more than one interface.

Report the failing interface name in single quotes in some places where
we weren't doing so, for stylistic consistency.

svn path=/trunk/; revision=53593
2013-11-26 03:13:16 +00:00
Guy Harris 261f69bc33 Actually, you can set the link-layer header type globally from the
command line, and it works as long as all interfaces on which you're
capturing support it and that's what you really want.

There's some UI cleanup that calls for, however.

svn path=/trunk/; revision=53592
2013-11-26 02:44:21 +00:00
Guy Harris 4558ff0ef2 Add a comment explaining what setting
capture_opts->default_options.linktype to -1 means.

svn path=/trunk/; revision=53591
2013-11-26 02:43:06 +00:00
Guy Harris 945d6d049c Add a comment about the "default options".
svn path=/trunk/; revision=53590
2013-11-26 02:25:20 +00:00
Guy Harris 913bc4a242 Use prefs_to_capture_opts(); there's no harm in setting
global_capture_opts.auto_scroll_live from the preferences.

svn path=/trunk/; revision=53589
2013-11-26 02:16:07 +00:00
Martin Mathieson aac0ba6508 When there is no ICMP reply, add a filterable field and expert info warning
svn path=/trunk/; revision=53588
2013-11-25 23:01:37 +00:00
Jeff Morriss 8993524953 Delete the svn:executable property on added files (we might add it back later).
svn path=/trunk/; revision=53587
2013-11-25 22:57:24 +00:00
Guy Harris 946d691824 Clean up indentation, add a comment, use "== 0" to test the result of
strcmp() to make it clearer that it's testing whether the strings are
equal.

svn path=/trunk/; revision=53586
2013-11-25 22:36:06 +00:00
Pascal Quantin af892f0553 Fix typo errors
svn path=/trunk/; revision=53585
2013-11-25 22:25:03 +00:00
Guy Harris c0dc54dc7b capture_interfaces_dialog.h is processed by moc, so it has to include
config.h itself, so that HAVE_LIBPCAP is defined appropriately.

svn path=/trunk/; revision=53584
2013-11-25 22:03:06 +00:00
Guy Harris 1fb476bf9f Have to include config.h before including headers that use #defines,
such as HAVE_LIBPCAP, from config.h.

svn path=/trunk/; revision=53583
2013-11-25 22:01:03 +00:00
Guy Harris e2735b15e0 No libpcap, no capturing, no capture interfaces. Ifdef the entire
capture interfaces dialog code, *and* the code that calls it, under
HAVE_LIBPCAP.

Still more stuff to remove from the no-pcap UI, such as the Capture
menu, the capture filter in the main window, and the list of interfaces
in the main window.

svn path=/trunk/; revision=53582
2013-11-25 21:50:58 +00:00
Guy Harris 2c9ea8a51f If we don't have any preference set for the link-layer header type for
an interface, don't destroy the default link-layer header type from the
list of types.

I.e., first get the type from the preference (which sets the type to -1
if there isn't a preference), and then loop through the list of types
and, if there was no value obtained from the preference (i.e., the type
is -1), set it to the first type in the list.

Also, don't bother with the link-layer header type from the global
default options, as a global (all-interface) link-layer header type
makes little sense, given that the list of link-layer header types for
an interface depends on the type of interface and hence may differ from
interface to interface.

Fixes bug 9473.

svn path=/trunk/; revision=53581
2013-11-25 21:21:25 +00:00
Martin Kaiser 5e65315e29 there were two identical copies of the function to process a DVB-SI time
remove the one in DVB-CI, use the version in mpeg-sect instead

svn path=/trunk/; revision=53580
2013-11-25 20:56:34 +00:00
Guy Harris 747ab4e006 Blank after comma for all arguments in that call.
svn path=/trunk/; revision=53579
2013-11-25 20:54:19 +00:00
Bill Meier 1516e5f9d9 Create/use two extended value-strings;
Comment out an unused variable definition;
Do some whitespace changes & several other minor changes;
Add editor modelines.

svn path=/trunk/; revision=53578
2013-11-25 20:04:25 +00:00
Bill Meier 21c772c7ed Create/use an extended value_string;
Use 'offset += 1' instead of 'offset++' for consistency;
Replace 32767 (as a mask) with 0x7FFF for clarity;
Remove some unneeded boilerplate comments;
Do whitespace changes.


svn path=/trunk/; revision=53577
2013-11-25 18:55:45 +00:00
Jeff Morriss b023777a76 The defragment_xudt preference is used to control reassembly of both XUDTs
and also DT1s.  Update the preference text to reflect that.

(Don't change the actual preference name to avoid breaking backward
compatibility.)

svn path=/trunk/; revision=53576
2013-11-25 18:29:40 +00:00
Pascal Quantin 12618aadcd Add command type to info column
svn path=/trunk/; revision=53575
2013-11-25 18:04:07 +00:00
Jeff Morriss db25d4343b Set SVN properties.
svn path=/trunk/; revision=53574
2013-11-25 18:02:21 +00:00
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