forked from osmocom/wireshark
A bunch of "{Mac} OS X" -> "macOS" changes.
Avoid anachronisms, however; there was no "macOS 10.0" or even "OS X 10.0", for example. It was "Mac OS X" until 10.8 (although 10.7 was sometimes called "OS X" and sometimes called "Mac OS X"), and it was "OS X" from 10.8 to 10.11. Change-Id: Ie4a848997dcc6c45c2245c1fb84ec526032375c3 Reviewed-on: https://code.wireshark.org/review/20933 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
1f94d34f43
commit
357cfd3b03
|
@ -323,11 +323,11 @@ else()
|
||||||
if(CMAKE_OSX_DEPLOYMENT_TARGET)
|
if(CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
if(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.0")
|
if(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.0")
|
||||||
message(FATAL_ERROR "We don't support building for OS X 10.0")
|
message(FATAL_ERROR "We don't support building for Mac OS X 10.0")
|
||||||
elseif(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.1")
|
elseif(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.1")
|
||||||
message(FATAL_ERROR "We don't support building for OS X 10.1")
|
message(FATAL_ERROR "We don't support building for Mac OS X 10.1")
|
||||||
elseif(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.2")
|
elseif(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.2")
|
||||||
message(FATAL_ERROR "We don't support building for OS X 10.2")
|
message(FATAL_ERROR "We don't support building for Mac OS X 10.2")
|
||||||
elseif(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.4" OR ${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.5")
|
elseif(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.4" OR ${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.5")
|
||||||
#
|
#
|
||||||
# Only 32-bit builds are supported. 10.5
|
# Only 32-bit builds are supported. 10.5
|
||||||
|
@ -339,9 +339,9 @@ else()
|
||||||
set(CMAKE_CXX_FLAGS "-m32 ${CMAKE_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS "-m32 ${CMAKE_CXX_FLAGS}")
|
||||||
set(WS_LINK_FLAGS "-m32 ${WS_LINK_FLAGS}")
|
set(WS_LINK_FLAGS "-m32 ${WS_LINK_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Building for OS X ${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
message(STATUS "Building for Mac OS X/OS X/macOS ${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "CMAKE_OSX_DEPLOYMENT_TARGET only applies when building for OS X")
|
message(FATAL_ERROR "CMAKE_OSX_DEPLOYMENT_TARGET only applies when building for macOS")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -702,7 +702,7 @@ foreach(THIS_FLAG ${WIRESHARK_LD_FLAGS})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(APPLE AND EXISTS /usr/local/opt/gettext)
|
if(APPLE AND EXISTS /usr/local/opt/gettext)
|
||||||
# GLib on OS X requires libintl. Homebrew installs gettext (and
|
# GLib on macOS requires libintl. Homebrew installs gettext (and
|
||||||
# libintl) in /usr/local/opt/gettext
|
# libintl) in /usr/local/opt/gettext
|
||||||
include_directories(/usr/local/opt/gettext/include)
|
include_directories(/usr/local/opt/gettext/include)
|
||||||
link_directories(/usr/local/opt/gettext/lib)
|
link_directories(/usr/local/opt/gettext/lib)
|
||||||
|
@ -1104,7 +1104,7 @@ message(STATUS "Warnings as errors: ${WERROR_COMMON_FLAGS}")
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
#
|
#
|
||||||
# We assume that APPLE means OS X so that we have the OS X
|
# We assume that APPLE means macOS so that we have the macOS
|
||||||
# frameworks.
|
# frameworks.
|
||||||
#
|
#
|
||||||
set(HAVE_OS_X_FRAMEWORKS 1)
|
set(HAVE_OS_X_FRAMEWORKS 1)
|
||||||
|
@ -1153,9 +1153,9 @@ add_subdirectory( wiretap )
|
||||||
add_subdirectory( writecap )
|
add_subdirectory( writecap )
|
||||||
|
|
||||||
# Location of our data files. This should be set to a value that allows
|
# Location of our data files. This should be set to a value that allows
|
||||||
# running from the build directory on Windows, on OS X when building an
|
# running from the build directory on Windows, on macOS when building an
|
||||||
# application bundle, and on UNIX if WIRESHARK_RUN_FROM_BUILD_DIRECTORY
|
# application bundle, and on UNIX in general if
|
||||||
# is set.
|
# WIRESHARK_RUN_FROM_BUILD_DIRECTORY is set.
|
||||||
if(ENABLE_APPLICATION_BUNDLE)
|
if(ENABLE_APPLICATION_BUNDLE)
|
||||||
set(_datafile_dir "${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/Resources/share/wireshark")
|
set(_datafile_dir "${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/Resources/share/wireshark")
|
||||||
else()
|
else()
|
||||||
|
@ -1183,9 +1183,10 @@ endif()
|
||||||
|
|
||||||
if(ENABLE_EXTCAP)
|
if(ENABLE_EXTCAP)
|
||||||
# Target platform locations
|
# Target platform locations
|
||||||
# UNIX, Linux, non-bundled OS X: $DESTDIR/lib/wireshark/extcap
|
# UN*X in general, including macOS if not building an app bundle:
|
||||||
|
# $DESTDIR/lib/wireshark/extcap
|
||||||
# Windows: $DESTDIR/extcap
|
# Windows: $DESTDIR/extcap
|
||||||
# OS X app bundle: Wireshark.app/Contents/Resources/share/wireshark/extcap
|
# macOS app bundle: Wireshark.app/Contents/Resources/share/wireshark/extcap
|
||||||
set(HAVE_EXTCAP 1)
|
set(HAVE_EXTCAP 1)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(EXTCAP_DIR "extcap")
|
set(EXTCAP_DIR "extcap")
|
||||||
|
@ -1213,9 +1214,10 @@ endif()
|
||||||
# from the build directory similar to DATAFILE_DIR above.
|
# from the build directory similar to DATAFILE_DIR above.
|
||||||
if(ENABLE_PLUGINS)
|
if(ENABLE_PLUGINS)
|
||||||
# Target platform locations
|
# Target platform locations
|
||||||
# UNIX, Linux, non-bundled OS X: $DESTDIR/lib/wireshark/plugins/$VERSION
|
# UN*X in general, including macOS if not building an app bundle:
|
||||||
|
# $DESTDIR/lib/wireshark/plugins/$VERSION
|
||||||
# Windows: $DESTDIR/wireshark/plubins/$VERSION
|
# Windows: $DESTDIR/wireshark/plubins/$VERSION
|
||||||
# OS X app bundle: Wireshark.app/Contents/PlugIns/wireshark
|
# macOS app bundle: Wireshark.app/Contents/PlugIns/wireshark
|
||||||
set(HAVE_PLUGINS 1)
|
set(HAVE_PLUGINS 1)
|
||||||
add_custom_target(plugins)
|
add_custom_target(plugins)
|
||||||
set_target_properties(plugins PROPERTIES FOLDER "Plugins")
|
set_target_properties(plugins PROPERTIES FOLDER "Plugins")
|
||||||
|
|
|
@ -93,7 +93,7 @@ set(DUMPCAP_INSTALL_OPTION "normal" CACHE STRING "Permissions to install")
|
||||||
set(DUMPCAP_INST_VALS "normal" "suid" "capabilities")
|
set(DUMPCAP_INST_VALS "normal" "suid" "capabilities")
|
||||||
set_property(CACHE DUMPCAP_INSTALL_OPTION PROPERTY STRINGS ${DUMPCAP_INST_VALS})
|
set_property(CACHE DUMPCAP_INSTALL_OPTION PROPERTY STRINGS ${DUMPCAP_INST_VALS})
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
option(ENABLE_APPLICATION_BUNDLE "Build an OS X application bundle (Wireshark.app)" ON)
|
option(ENABLE_APPLICATION_BUNDLE "Build a macOS application bundle (Wireshark.app)" ON)
|
||||||
else()
|
else()
|
||||||
option(ENABLE_APPLICATION_BUNDLE "Build an OS X application bundle (Wireshark.app)" OFF)
|
option(ENABLE_APPLICATION_BUNDLE "Build a macOS application bundle (Wireshark.app)" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -968,7 +968,7 @@ libtool: $(LIBTOOL_DEPS)
|
||||||
# FreeBSD install command has a -T flag that takes an argument and
|
# FreeBSD install command has a -T flag that takes an argument and
|
||||||
# that has completely different semantics.
|
# that has completely different semantics.
|
||||||
#
|
#
|
||||||
# We neither need nor want any of this on OS X, nor do we want it if
|
# We neither need nor want any of this on macOS, nor do we want it if
|
||||||
# we're not building Wireshark (that being the only desktop app).
|
# we're not building Wireshark (that being the only desktop app).
|
||||||
#
|
#
|
||||||
install-data-local:
|
install-data-local:
|
||||||
|
@ -1039,7 +1039,7 @@ uninstall-hook: update-databases-and-caches-uninstall
|
||||||
# We only need to run gtk-update-icon-cache if we're installing a GTK+
|
# We only need to run gtk-update-icon-cache if we're installing a GTK+
|
||||||
# version of Wireshark.
|
# version of Wireshark.
|
||||||
#
|
#
|
||||||
# We neither need nor want any of this on OS X, nor do we want it if
|
# We neither need nor want any of this on macOS, nor do we want it if
|
||||||
# we're not building Wireshark (that being the only desktop app).
|
# we're not building Wireshark (that being the only desktop app).
|
||||||
#
|
#
|
||||||
update-databases-and-caches-common:
|
update-databases-and-caches-common:
|
||||||
|
@ -1112,7 +1112,7 @@ osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
|
||||||
--extcap-path ../staging/$(PACKAGE).inst$(extcapdir) \
|
--extcap-path ../staging/$(PACKAGE).inst$(extcapdir) \
|
||||||
--library-path ../staging/$(PACKAGE).inst$(libdir) ; \
|
--library-path ../staging/$(PACKAGE).inst$(libdir) ; \
|
||||||
else \
|
else \
|
||||||
echo "Error: OS X packaging tools not found." ; \
|
echo "Error: macOS packaging tools not found." ; \
|
||||||
echo "Package build abandoned." ; \
|
echo "Package build abandoned." ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
2
README
2
README
|
@ -29,7 +29,7 @@ The Wireshark project builds and tests regularly on the following platforms:
|
||||||
|
|
||||||
- Linux (Ubuntu)
|
- Linux (Ubuntu)
|
||||||
- Microsoft Windows
|
- Microsoft Windows
|
||||||
- macOS / OS X
|
- macOS / {Mac} OS X
|
||||||
|
|
||||||
Official installation packages are available for Microsoft Windows and
|
Official installation packages are available for Microsoft Windows and
|
||||||
macOS.
|
macOS.
|
||||||
|
|
12
README.cmake
12
README.cmake
|
@ -57,7 +57,7 @@ Note 1:
|
||||||
# http://public.kitware.com/Bug/view.php?id=13818
|
# http://public.kitware.com/Bug/view.php?id=13818
|
||||||
-DPYTHON_EXECUTABLE=c:/Python27/python
|
-DPYTHON_EXECUTABLE=c:/Python27/python
|
||||||
|
|
||||||
# Disable building an application bundle (Wireshark.app) on OS X
|
# Disable building an application bundle (Wireshark.app) on macOS
|
||||||
-DENABLE_APPLICATION_BUNDLE=OFF
|
-DENABLE_APPLICATION_BUNDLE=OFF
|
||||||
|
|
||||||
# Qt Creator expects .cbp files when used with CMake.
|
# Qt Creator expects .cbp files when used with CMake.
|
||||||
|
@ -155,13 +155,13 @@ All the executables now build from clean source on:
|
||||||
* 32 bit Ubuntu 10.04
|
* 32 bit Ubuntu 10.04
|
||||||
* 64 bit Ubuntu 14.04
|
* 64 bit Ubuntu 14.04
|
||||||
* 64 bit Debian Wheezy
|
* 64 bit Debian Wheezy
|
||||||
* 32 bit OS X
|
* 32 bit Mac OS X
|
||||||
* 64 bit OS X
|
* 64 bit {Mac} OS X/macOS
|
||||||
* 32 bit Windows using Visual C++ 2013
|
* 32 bit Windows using Visual C++ 2013
|
||||||
* 64 bit Windows using Visual C++ 2013
|
* 64 bit Windows using Visual C++ 2013
|
||||||
* 64 bit Solaris 10
|
* 64 bit Solaris 10
|
||||||
|
|
||||||
The Buildbot runs CMake steps on Ubuntu, Win32, Win64, OS X, and Solaris.
|
The Buildbot runs CMake steps on Ubuntu, Win32, Win64, macOS, and Solaris.
|
||||||
Windows packages are built using CMake steps.
|
Windows packages are built using CMake steps.
|
||||||
|
|
||||||
What needs to be done?
|
What needs to be done?
|
||||||
|
@ -172,9 +172,9 @@ What needs to be done?
|
||||||
- Guides are not installed.
|
- Guides are not installed.
|
||||||
- Build source package (using CPack).
|
- Build source package (using CPack).
|
||||||
This is obsolete if we decide to release VCS snapshots instead
|
This is obsolete if we decide to release VCS snapshots instead
|
||||||
- Build packages using CPack: tarball, Windows installer + PortableApps, OS X
|
- Build packages using CPack: tarball, Windows installer + PortableApps, macOS
|
||||||
installer dmg, RPM, SVR4. This includes setting OS target version stuff
|
installer dmg, RPM, SVR4. This includes setting OS target version stuff
|
||||||
appropriately for OS X. We currently use NSIS for the Windows installer but
|
appropriately for macOS. We currently use NSIS for the Windows installer but
|
||||||
should probably use WiX instead.
|
should probably use WiX instead.
|
||||||
- Add support for cmake configurations.
|
- Add support for cmake configurations.
|
||||||
- Get cross-compilation working (or ensure it does). It works with autofoo--and
|
- Get cross-compilation working (or ensure it does). It works with autofoo--and
|
||||||
|
|
23
README.macos
23
README.macos
|
@ -1,8 +1,9 @@
|
||||||
This file tries to help building Wireshark for (Mac) OS X (Wireshark
|
This file tries to help building Wireshark for macOS (The Operating
|
||||||
does not work on earlier versions of Mac OS).
|
System Formerly Known As Mac OS X And Then OS X) (Wireshark does not
|
||||||
|
work on the classic Mac OS).
|
||||||
|
|
||||||
You must have the developer tools (called Xcode) installed. For
|
You must have the developer tools (called Xcode) installed. For
|
||||||
versions of OS X up to and including Snow Leopard, Xcode 3 should be
|
versions of macOS up to and including Snow Leopard, Xcode 3 should be
|
||||||
available on the install DVD; Xcode 4 is available for download from
|
available on the install DVD; Xcode 4 is available for download from
|
||||||
developer.apple.com and, for Lion and later releases, from the Mac App
|
developer.apple.com and, for Lion and later releases, from the Mac App
|
||||||
Store. See
|
Store. See
|
||||||
|
@ -35,7 +36,7 @@ environment variable's setting includes both /usr/X11/lib/pkgconfig and
|
||||||
If you wish to build the legacy (GTK+) UI you must have X11 and the X11
|
If you wish to build the legacy (GTK+) UI you must have X11 and the X11
|
||||||
developer headers and libraries installed, as well as the Pango, ATK,
|
developer headers and libraries installed, as well as the Pango, ATK,
|
||||||
and GTK+ libraries; otherwise, you will not be able to build or install
|
and GTK+ libraries; otherwise, you will not be able to build or install
|
||||||
GTK+. The X11 and X11 SDK that come with OS X releases for releases
|
GTK+. The X11 and X11 SDK that come with macOS releases for releases
|
||||||
from Panther to Lion can be used to build and run Wireshark. Mountain
|
from Panther to Lion can be used to build and run Wireshark. Mountain
|
||||||
Lion and later do not include X11; you should install X11 from
|
Lion and later do not include X11; you should install X11 from
|
||||||
elsewhere, such as
|
elsewhere, such as
|
||||||
|
@ -51,7 +52,7 @@ you've added new source files to the Wireshark source.
|
||||||
|
|
||||||
Then run the configure script, and run make to build Wireshark.
|
Then run the configure script, and run make to build Wireshark.
|
||||||
|
|
||||||
If you upgrade the major release of OS X on which you are building
|
If you upgrade the major release of macOS on which you are building
|
||||||
Wireshark, we advise that, before you do any builds after the upgrade,
|
Wireshark, we advise that, before you do any builds after the upgrade,
|
||||||
you do, in the build directory:
|
you do, in the build directory:
|
||||||
|
|
||||||
|
@ -73,9 +74,9 @@ build 64-bit by default.
|
||||||
This means that you will, by default, get a 64-bit version of Wireshark.
|
This means that you will, by default, get a 64-bit version of Wireshark.
|
||||||
|
|
||||||
One consequence of this is that, if you built and installed any required
|
One consequence of this is that, if you built and installed any required
|
||||||
or optional libraries for Wireshark on an earlier release of OS X, those
|
or optional libraries for Wireshark on an earlier release of macOS, those
|
||||||
are probably 32-bit versions of the libraries, and you will need to
|
are probably 32-bit versions of the libraries, and you will need to
|
||||||
un-install them and rebuild them on your current version of OS X, to get
|
un-install them and rebuild them on your current version of macOS, to get
|
||||||
64-bit versions.
|
64-bit versions.
|
||||||
|
|
||||||
Some required and optional libraries require special attention if you
|
Some required and optional libraries require special attention if you
|
||||||
|
@ -85,7 +86,7 @@ releases; the macosx-setup.sh script will handle that for you.
|
||||||
GLib - the GLib configuration script determines whether the system's
|
GLib - the GLib configuration script determines whether the system's
|
||||||
libiconv is GNU iconv or not by checking whether it has libiconv_open(),
|
libiconv is GNU iconv or not by checking whether it has libiconv_open(),
|
||||||
and the compile will fail if that test doesn't correctly indicate
|
and the compile will fail if that test doesn't correctly indicate
|
||||||
whether libiconv is GNU iconv. In OS X, libiconv is GNU iconv, but the
|
whether libiconv is GNU iconv. In macOS, libiconv is GNU iconv, but the
|
||||||
64-bit version doesn't have libiconv_open(); a workaround for this is to
|
64-bit version doesn't have libiconv_open(); a workaround for this is to
|
||||||
replace all occurrences of "libiconv_open" with "iconv_open" in the
|
replace all occurrences of "libiconv_open" with "iconv_open" in the
|
||||||
configure script before running the script. The macosx-setup.sh setup
|
configure script before running the script. The macosx-setup.sh setup
|
||||||
|
@ -100,7 +101,7 @@ GTK+ with the CUPS printing backend disabled.
|
||||||
libgcrypt - the libgcrypt configuration script attempts to determine
|
libgcrypt - the libgcrypt configuration script attempts to determine
|
||||||
which flavor of assembler-language routines to use based on the platform
|
which flavor of assembler-language routines to use based on the platform
|
||||||
type determined by standard autoconf code. That code uses uname to
|
type determined by standard autoconf code. That code uses uname to
|
||||||
determine the processor type; however, in OS X, uname always reports
|
determine the processor type; however, in macOS, uname always reports
|
||||||
"i386" as the processor type on Intel machines, even Intel machines with
|
"i386" as the processor type on Intel machines, even Intel machines with
|
||||||
64-bit processors, so it will attempt to assemble the 32-bit x86
|
64-bit processors, so it will attempt to assemble the 32-bit x86
|
||||||
assembler-language routines, which will fail. The workaround for this
|
assembler-language routines, which will fail. The workaround for this
|
||||||
|
@ -108,7 +109,7 @@ is to run the configure script with the --disable-asm argument, so that
|
||||||
the assembler-language routines are not used. The macosx-setup.sh will
|
the assembler-language routines are not used. The macosx-setup.sh will
|
||||||
configure libgcrypt with that option.
|
configure libgcrypt with that option.
|
||||||
|
|
||||||
PortAudio - when compiling on OS X, the configure script for the
|
PortAudio - when compiling on macOS, the configure script for the
|
||||||
pa_stable_v19_20071207 version of PortAudio will cause certain
|
pa_stable_v19_20071207 version of PortAudio will cause certain
|
||||||
platform-dependent build environment #defines to be set in the Makefile
|
platform-dependent build environment #defines to be set in the Makefile
|
||||||
rules, and to cause a universal build to be done; those #defines will be
|
rules, and to cause a universal build to be done; those #defines will be
|
||||||
|
@ -119,7 +120,7 @@ if a universal build is attempted. The macosx-setup.sh script downloads
|
||||||
a newer version, and also suppresses the universal build.
|
a newer version, and also suppresses the universal build.
|
||||||
|
|
||||||
GeoIP - Their man pages "helpfully" have an ISO 8859-1 copyright symbol
|
GeoIP - Their man pages "helpfully" have an ISO 8859-1 copyright symbol
|
||||||
in the copyright notice, but OS X's default character encoding is UTF-8.
|
in the copyright notice, but macOS's default character encoding is UTF-8.
|
||||||
sed on Mountain Lion barfs at the "illegal character sequence"
|
sed on Mountain Lion barfs at the "illegal character sequence"
|
||||||
represented by an ISO 8859-1 copyright symbol, as it's not a valid UTF-8
|
represented by an ISO 8859-1 copyright symbol, as it's not a valid UTF-8
|
||||||
sequence. The macosx-setup.sh script uses iconv to convert the man page
|
sequence. The macosx-setup.sh script uses iconv to convert the man page
|
||||||
|
|
|
@ -356,14 +356,14 @@ request_high_resolution_timestamp(pcap_t *pcap_h)
|
||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
/*
|
/*
|
||||||
* On OS X, if you build with a newer SDK, pcap_set_tstamp_precision()
|
* On macOS, if you build with a newer SDK, pcap_set_tstamp_precision()
|
||||||
* is available, so the code will be built with it.
|
* is available, so the code will be built with it.
|
||||||
*
|
*
|
||||||
* However, if you then try to run on an older release that
|
* However, if you then try to run on an older release that
|
||||||
* doesn't have pcap_set_tstamp_precision(), the dynamic linker
|
* doesn't have pcap_set_tstamp_precision(), the dynamic linker
|
||||||
* will fail, as it won't find pcap_set_tstamp_precision().
|
* will fail, as it won't find pcap_set_tstamp_precision().
|
||||||
*
|
*
|
||||||
* libpcap doesn't use OS X "weak linking" for new routines,
|
* libpcap doesn't use macOS "weak linking" for new routines,
|
||||||
* so we can't just check whether a pointer to
|
* so we can't just check whether a pointer to
|
||||||
* pcap_set_tstamp_precision() is null and, if it is, not
|
* pcap_set_tstamp_precision() is null and, if it is, not
|
||||||
* call it. We have to, instead, use dlopen() to load
|
* call it. We have to, instead, use dlopen() to load
|
||||||
|
|
|
@ -109,7 +109,7 @@ static const char please_report[] =
|
||||||
#include <wsutil/cfutils.h>
|
#include <wsutil/cfutils.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On OS X, we get the "friendly name" and interface type for the interface
|
* On macOS, we get the "friendly name" and interface type for the interface
|
||||||
* from the System Configuration framework.
|
* from the System Configuration framework.
|
||||||
*
|
*
|
||||||
* To find the System Configuration framework information for the
|
* To find the System Configuration framework information for the
|
||||||
|
@ -127,7 +127,7 @@ static const char please_report[] =
|
||||||
* an SNMP MIB-II ifType value.
|
* an SNMP MIB-II ifType value.
|
||||||
*
|
*
|
||||||
* However, it's IFT_ETHER, i.e. Ethernet, for AirPort interfaces,
|
* However, it's IFT_ETHER, i.e. Ethernet, for AirPort interfaces,
|
||||||
* not IFT_IEEE80211 (which isn't defined in OS X in any case).
|
* not IFT_IEEE80211 (which isn't defined in macOS in any case).
|
||||||
*
|
*
|
||||||
* Perhaps some other BSD-flavored OSes won't make this mistake;
|
* Perhaps some other BSD-flavored OSes won't make this mistake;
|
||||||
* however, FreeBSD 7.0 and OpenBSD 4.2, at least, appear to have
|
* however, FreeBSD 7.0 and OpenBSD 4.2, at least, appear to have
|
||||||
|
|
|
@ -177,7 +177,7 @@ iface_mon_stop(void)
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* OS X.
|
* macOS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -37,7 +37,7 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* XXX - we really want "gone", not "down", where "gone" may include
|
* XXX - we really want "gone", not "down", where "gone" may include
|
||||||
* "down" if the OS requires an interface to be up in order to start
|
* "down" if the OS requires an interface to be up in order to start
|
||||||
* a capture on it (as is the case in Linux and in OS X prior to
|
* a capture on it (as is the case in Linux and in macOS prior to
|
||||||
* Lion), but should also include *gone*, as in "there is no longer
|
* Lion), but should also include *gone*, as in "there is no longer
|
||||||
* an interface with this name, so it's neither down nor up".
|
* an interface with this name, so it's neither down nor up".
|
||||||
*
|
*
|
||||||
|
|
|
@ -13,7 +13,7 @@ IF (M_INCLUDE_DIRS)
|
||||||
ENDIF (M_INCLUDE_DIRS)
|
ENDIF (M_INCLUDE_DIRS)
|
||||||
|
|
||||||
#
|
#
|
||||||
# On OS X, make sure we do *NOT* find math.h in the Kernel framework,
|
# On macOS, make sure we do *NOT* find math.h in the Kernel framework,
|
||||||
# as that will convince CMake to cause the build to look there for
|
# as that will convince CMake to cause the build to look there for
|
||||||
# headers.
|
# headers.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
#
|
#
|
||||||
# - Find OS X frameworks
|
# - Find macOS frameworks
|
||||||
# Find various OS X frameworks if we're on OS X
|
# Find various macOS frameworks if we're on macOS
|
||||||
#
|
#
|
||||||
# APPLE_APPLICATION_SERVICES_LIBRARY - ApplicationServices framework
|
# APPLE_APPLICATION_SERVICES_LIBRARY - ApplicationServices framework
|
||||||
# APPLE_CORE_FOUNDATION_LIBRARY - CoreFoundation frameowkr
|
# APPLE_CORE_FOUNDATION_LIBRARY - CoreFoundation frameowkr
|
||||||
# APPLE_SYSTEM_CONFIGURATION_LIBRARY - SystemConfiguration framework
|
# APPLE_SYSTEM_CONFIGURATION_LIBRARY - SystemConfiguration framework
|
||||||
# HAVE_OS_X_FRAMEWORKS - True if we're on OS X
|
# HAVE_OS_X_FRAMEWORKS - True if we're on macOS
|
||||||
|
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
#
|
#
|
||||||
# We assume that APPLE means OS X so that we have the OS X
|
# We assume that APPLE means macOS so that we have the macOS
|
||||||
# frameworks.
|
# frameworks.
|
||||||
#
|
#
|
||||||
set(HAVE_OS_X_FRAMEWORKS 1)
|
set(HAVE_OS_X_FRAMEWORKS 1)
|
||||||
|
|
|
@ -58,7 +58,7 @@ if( PCAP_FOUND )
|
||||||
#
|
#
|
||||||
# Note: for pcap_breakloop() and pcap_findalldevs(), the autoconf script
|
# Note: for pcap_breakloop() and pcap_findalldevs(), the autoconf script
|
||||||
# checks for more than just whether the function exists, it also checks
|
# checks for more than just whether the function exists, it also checks
|
||||||
# for whether pcap.h declares it; Mac OS X software/security updates can
|
# for whether pcap.h declares it; macOS software/security updates can
|
||||||
# update libpcap without updating the headers.
|
# update libpcap without updating the headers.
|
||||||
#
|
#
|
||||||
check_function_exists( "pcap_breakloop" HAVE_PCAP_BREAKLOOP )
|
check_function_exists( "pcap_breakloop" HAVE_PCAP_BREAKLOOP )
|
||||||
|
|
|
@ -214,10 +214,10 @@
|
||||||
/* Define to 1 if you have the <Ntddndis.h> header file. */
|
/* Define to 1 if you have the <Ntddndis.h> header file. */
|
||||||
#cmakedefine HAVE_NTDDNDIS_H 1
|
#cmakedefine HAVE_NTDDNDIS_H 1
|
||||||
|
|
||||||
/* Define to 1 if you have OS X frameworks */
|
/* Define to 1 if you have macOS frameworks */
|
||||||
#cmakedefine HAVE_OS_X_FRAMEWORKS 1
|
#cmakedefine HAVE_OS_X_FRAMEWORKS 1
|
||||||
|
|
||||||
/* Define to 1 if you have the OS X CFPropertyListCreateWithStream function */
|
/* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
|
||||||
#cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
|
#cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
|
||||||
|
|
||||||
/* Define if pcap_breakloop is known */
|
/* Define if pcap_breakloop is known */
|
||||||
|
|
|
@ -331,8 +331,8 @@ The menu entries themselves are generated with the following code structure:
|
||||||
ext_menubar_add_entry(os_menu, "Test Entry B",
|
ext_menubar_add_entry(os_menu, "Test Entry B",
|
||||||
NULL, menu_cb, <user_data>);
|
NULL, menu_cb, <user_data>);
|
||||||
|
|
||||||
This will not work with the GTK version on OS X; the GTK interface is
|
This will not work with the GTK version on macOS; the GTK interface is
|
||||||
currently not supported on this platform. The Qt interface on OS X
|
currently not supported on this platform. The Qt interface on macOS
|
||||||
provides the menu.
|
provides the menu.
|
||||||
|
|
||||||
For a more detailed information, please refer to plugin_if.h
|
For a more detailed information, please refer to plugin_if.h
|
||||||
|
|
|
@ -68,8 +68,8 @@ The various Wireshark applications can be run from the ~/build folder of the
|
||||||
Ubuntu VM with commands such as `./run/wireshark`, `./run/tshark`, etc.
|
Ubuntu VM with commands such as `./run/wireshark`, `./run/tshark`, etc.
|
||||||
|
|
||||||
To run the Wireshark GUI you will typically need an X server. If you are using
|
To run the Wireshark GUI you will typically need an X server. If you are using
|
||||||
macOS (OS X) as the host system then you would likely use XQuartz as your X
|
macOS ({Mac} OS X) as the host system then you would likely use XQuartz as
|
||||||
server. XQuartz can be downloaded from https://www.xquartz.org/.
|
your X server. XQuartz can be downloaded from https://www.xquartz.org/.
|
||||||
|
|
||||||
The Ubuntu VM can be shutdown or suspended from the host system with the
|
The Ubuntu VM can be shutdown or suspended from the host system with the
|
||||||
commands `vagrant halt` and `vagrant suspend` repectively. In either case the
|
commands `vagrant halt` and `vagrant suspend` repectively. In either case the
|
||||||
|
|
|
@ -371,7 +371,7 @@ static gboolean need_timeout_workaround;
|
||||||
/*
|
/*
|
||||||
* Timeout, in microseconds, for reads from the stream of captured packets
|
* Timeout, in microseconds, for reads from the stream of captured packets
|
||||||
* from a pipe. Pipes don't have the same problem that BPF devices do
|
* from a pipe. Pipes don't have the same problem that BPF devices do
|
||||||
* in OS X 10.6, 10.6.1, 10.6.3, and 10.6.4, so we always use a timeout
|
* in Mac OS X 10.6, 10.6.1, 10.6.3, and 10.6.4, so we always use a timeout
|
||||||
* of 250ms, i.e. the same value as CAP_READ_TIMEOUT when not on one
|
* of 250ms, i.e. the same value as CAP_READ_TIMEOUT when not on one
|
||||||
* of the offending versions of Snow Leopard.
|
* of the offending versions of Snow Leopard.
|
||||||
*
|
*
|
||||||
|
@ -3368,7 +3368,7 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
|
||||||
(At least you will if g_strerror() doesn't show a local translation
|
(At least you will if g_strerror() doesn't show a local translation
|
||||||
of the error.)
|
of the error.)
|
||||||
|
|
||||||
On FreeBSD and OS X, if a network adapter disappears while
|
On FreeBSD and macOS, if a network adapter disappears while
|
||||||
you're capturing on it, you'll get a "read: Device not configured"
|
you're capturing on it, you'll get a "read: Device not configured"
|
||||||
error (ENXIO). (See previous parenthetical note.)
|
error (ENXIO). (See previous parenthetical note.)
|
||||||
|
|
||||||
|
@ -3877,7 +3877,7 @@ main(int argc, char *argv[])
|
||||||
*/
|
*/
|
||||||
if (uname(&osinfo) == 0) {
|
if (uname(&osinfo) == 0) {
|
||||||
/*
|
/*
|
||||||
* Mac OS X 10.x uses Darwin {x+4}.0.0. Mac OS X 10.x.y uses Darwin
|
* {Mac} OS X/macOS 10.x uses Darwin {x+4}.0.0; 10.x.y uses Darwin
|
||||||
* {x+4}.y.0 (except that 10.6.1 appears to have a uname version
|
* {x+4}.y.0 (except that 10.6.1 appears to have a uname version
|
||||||
* number of 10.0.0, not 10.1.0 - go figure).
|
* number of 10.0.0, not 10.1.0 - go figure).
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
* are most likely to take a long time, given the way address-to-name
|
* are most likely to take a long time, given the way address-to-name
|
||||||
* lookups are done over NBNS).
|
* lookups are done over NBNS).
|
||||||
*
|
*
|
||||||
* Mac OS X does have SIGALRM, but if you longjmp() out of a name resolution
|
* macOS does have SIGALRM, but if you longjmp() out of a name resolution
|
||||||
* call in a signal handler, you might crash, because the state of the
|
* call in a signal handler, you might crash, because the state of the
|
||||||
* resolution code that sends messages to lookupd might be inconsistent
|
* resolution code that sends messages to lookupd might be inconsistent
|
||||||
* if you jump out of it in middle of a call.
|
* if you jump out of it in middle of a call.
|
||||||
|
|
|
@ -43,7 +43,7 @@ extern "C" {
|
||||||
#define BSD_AF_IPX 23
|
#define BSD_AF_IPX 23
|
||||||
#define BSD_AF_INET6_BSD 24 /* NetBSD, OpenBSD, BSD/OS */
|
#define BSD_AF_INET6_BSD 24 /* NetBSD, OpenBSD, BSD/OS */
|
||||||
#define BSD_AF_INET6_FREEBSD 28 /* FreeBSD, DragonFly BSD */
|
#define BSD_AF_INET6_FREEBSD 28 /* FreeBSD, DragonFly BSD */
|
||||||
#define BSD_AF_INET6_DARWIN 30 /* OS X, iOS, anything else Darwin-based */
|
#define BSD_AF_INET6_DARWIN 30 /* macOS, iOS, anything else Darwin-based */
|
||||||
|
|
||||||
/* Linux AF_ values. */
|
/* Linux AF_ values. */
|
||||||
#define LINUX_AF_UNSPEC 0
|
#define LINUX_AF_UNSPEC 0
|
||||||
|
|
|
@ -186,7 +186,7 @@ static const value_string corosync_totemsrp_ip_address_family[] = {
|
||||||
{ COMMON_AF_INET, "AF_INET" },
|
{ COMMON_AF_INET, "AF_INET" },
|
||||||
{ BSD_AF_INET6_BSD, "AF_INET6 (most BSD)" },
|
{ BSD_AF_INET6_BSD, "AF_INET6 (most BSD)" },
|
||||||
{ BSD_AF_INET6_FREEBSD, "AF_INET6 (FreeBSD)" },
|
{ BSD_AF_INET6_FREEBSD, "AF_INET6 (FreeBSD)" },
|
||||||
{ BSD_AF_INET6_DARWIN, "AF_INET6 (OS X and iOS)" },
|
{ BSD_AF_INET6_DARWIN, "AF_INET6 (macOS and iOS)" },
|
||||||
{ LINUX_AF_INET6, "AF_INET6 (Linux)" },
|
{ LINUX_AF_INET6, "AF_INET6 (Linux)" },
|
||||||
{ SOLARIS_AF_INET6, "AF_INET6 (Solaris)" },
|
{ SOLARIS_AF_INET6, "AF_INET6 (Solaris)" },
|
||||||
{ WINSOCK_AF_INET6, "AF_INET6 (Windows)" },
|
{ WINSOCK_AF_INET6, "AF_INET6 (Windows)" },
|
||||||
|
|
|
@ -1008,7 +1008,7 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* u
|
||||||
/*
|
/*
|
||||||
* XXX On FreeBSD rate & 0x80 means we have an MCS. On
|
* XXX On FreeBSD rate & 0x80 means we have an MCS. On
|
||||||
* Linux and AirPcap it does not. (What about
|
* Linux and AirPcap it does not. (What about
|
||||||
* Mac OS X, NetBSD, OpenBSD, and DragonFly BSD?)
|
* macOS, NetBSD, OpenBSD, and DragonFly BSD?)
|
||||||
*
|
*
|
||||||
* This is an issue either for proprietary extensions
|
* This is an issue either for proprietary extensions
|
||||||
* to 11a or 11g, which do exist, or for 11n
|
* to 11a or 11g, which do exist, or for 11n
|
||||||
|
|
|
@ -1658,7 +1658,7 @@ get_conversation_for_call(packet_info *pinfo)
|
||||||
* there's no guarantee that the reply will come from the
|
* there's no guarantee that the reply will come from the
|
||||||
* address to which the call was sent. We also don't
|
* address to which the call was sent. We also don't
|
||||||
* worry about the port *from* which the call was sent,
|
* worry about the port *from* which the call was sent,
|
||||||
* because some clients (*cough* OS X NFS client *cough*)
|
* because some clients (*cough* macOS NFS client *cough*)
|
||||||
* might send retransmissions from a different port from
|
* might send retransmissions from a different port from
|
||||||
* the original request.
|
* the original request.
|
||||||
*/
|
*/
|
||||||
|
@ -1710,7 +1710,7 @@ find_conversation_for_reply(packet_info *pinfo)
|
||||||
* because there's no guarantee that the call was sent
|
* because there's no guarantee that the call was sent
|
||||||
* to the address from which the reply came. We also
|
* to the address from which the reply came. We also
|
||||||
* don't worry about the port *to* which the reply was
|
* don't worry about the port *to* which the reply was
|
||||||
* sent, because some clients (*cough* OS X NFS client
|
* sent, because some clients (*cough* macOS NFS client
|
||||||
* *cough*) might send call retransmissions from a
|
* *cough*) might send call retransmissions from a
|
||||||
* different port from the original request, so replies
|
* different port from the original request, so replies
|
||||||
* to the original call and a retransmission of the call
|
* to the original call and a retransmission of the call
|
||||||
|
@ -2114,7 +2114,7 @@ looks_like_rpc_reply(tvbuff_t *tvb, packet_info *pinfo, int offset)
|
||||||
because there's no guarantee that the call was sent
|
because there's no guarantee that the call was sent
|
||||||
to the address from which the reply came. We also
|
to the address from which the reply came. We also
|
||||||
don't worry about the port *to* which the reply was
|
don't worry about the port *to* which the reply was
|
||||||
sent, because some clients (*cough* OS X NFS client
|
sent, because some clients (*cough* macOS NFS client
|
||||||
*cough*) might send retransmissions from a
|
*cough*) might send retransmissions from a
|
||||||
different port from the original request, so replies
|
different port from the original request, so replies
|
||||||
to the original call and a retransmission of the call
|
to the original call and a retransmission of the call
|
||||||
|
|
|
@ -11175,7 +11175,7 @@ proto_register_smb2(void)
|
||||||
},
|
},
|
||||||
|
|
||||||
{ &hf_smb2_aapl_server_query_caps_supports_osx_copyfile,
|
{ &hf_smb2_aapl_server_query_caps_supports_osx_copyfile,
|
||||||
{ "Supports OS X copyfile", "smb2.aapl.caps.supports_osx_copyfile", FT_BOOLEAN, 64,
|
{ "Supports macOS copyfile", "smb2.aapl.caps.supports_osx_copyfile", FT_BOOLEAN, 64,
|
||||||
NULL, SMB2_AAPL_SUPPORTS_OSX_COPYFILE, NULL, HFILL }
|
NULL, SMB2_AAPL_SUPPORTS_OSX_COPYFILE, NULL, HFILL }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3174,8 +3174,8 @@ prefs_register_modules(void)
|
||||||
|
|
||||||
/* GTK+ only */
|
/* GTK+ only */
|
||||||
prefs_register_bool_preference(gui_module, "macosx_style",
|
prefs_register_bool_preference(gui_module, "macosx_style",
|
||||||
"Use OS X style",
|
"Use macOS style",
|
||||||
"Use OS X style (OS X with native GTK only)?",
|
"Use macOS style (macOS with native GTK only)?",
|
||||||
&prefs.gui_macosx_style);
|
&prefs.gui_macosx_style);
|
||||||
|
|
||||||
prefs_register_obsolete_preference(gui_module, "geometry.main.x");
|
prefs_register_obsolete_preference(gui_module, "geometry.main.x");
|
||||||
|
|
|
@ -261,7 +261,7 @@ answer("""
|
||||||
Wireshark® is a network protocol analyzer. It lets you capture and
|
Wireshark® is a network protocol analyzer. It lets you capture and
|
||||||
interactively browse the traffic running on a computer network. It has
|
interactively browse the traffic running on a computer network. It has
|
||||||
a rich and powerful feature set and is world's most popular tool of its
|
a rich and powerful feature set and is world's most popular tool of its
|
||||||
kind. It runs on most computing platforms including Windows, OS X,
|
kind. It runs on most computing platforms including Windows, macOS,
|
||||||
Linux, and UNIX. Network professionals, security experts, developers,
|
Linux, and UNIX. Network professionals, security experts, developers,
|
||||||
and educators around the world use it regularly. It is freely available
|
and educators around the world use it regularly. It is freely available
|
||||||
as open source, and is released under the GNU General Public License
|
as open source, and is released under the GNU General Public License
|
||||||
|
@ -729,12 +729,12 @@ with version 4.2.2 or a later version.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
question("""
|
question("""
|
||||||
I've installed Wireshark from Fink on OS X; why is it very slow to
|
I've installed Wireshark from Fink on macOS; why is it very slow to
|
||||||
start up?
|
start up?
|
||||||
""")
|
""")
|
||||||
|
|
||||||
answer("""
|
answer("""
|
||||||
When an application is installed on OS X, prior to 10.4, it is usually
|
When an application is installed on macOS, prior to 10.4, it is usually
|
||||||
"prebound" to speed up launching the application. (That's what the
|
"prebound" to speed up launching the application. (That's what the
|
||||||
"Optimizing" phase of installation is.)
|
"Optimizing" phase of installation is.)
|
||||||
|
|
||||||
|
@ -1204,7 +1204,7 @@ Most OSes do <strong>not</strong> support capturing the FCS of a frame
|
||||||
on Ethernet, and probably do not support it on most other link-layer
|
on Ethernet, and probably do not support it on most other link-layer
|
||||||
types. Some drivres on some OSes do support it, such as some (all?)
|
types. Some drivres on some OSes do support it, such as some (all?)
|
||||||
Ethernet drivers on NetBSD and possibly the driver for Apple's gigabit
|
Ethernet drivers on NetBSD and possibly the driver for Apple's gigabit
|
||||||
Ethernet interface in OS X; in those OSes, you might always get the
|
Ethernet interface in macOS; in those OSes, you might always get the
|
||||||
FCS, or you might only get the FCS if you capture in promiscuous mode
|
FCS, or you might only get the FCS if you capture in promiscuous mode
|
||||||
(you'd have to determine which is the case).
|
(you'd have to determine which is the case).
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ image/capture_comment_add.png created from elements in
|
||||||
image/capture_comment_disabled.png accessories-text-editor.svg and
|
image/capture_comment_disabled.png accessories-text-editor.svg and
|
||||||
image/capture_comment_update.png paper-sheets.svg
|
image/capture_comment_update.png paper-sheets.svg
|
||||||
|
|
||||||
plus-8.png OS X style add / remove icons. Created by Peter Hosey.
|
plus-8.png macOS style add / remove icons. Created by Peter Hosey.
|
||||||
minus-8.png Released under CC-PD.
|
minus-8.png Released under CC-PD.
|
||||||
|
|
||||||
copy-8.png OS X style copy icon.
|
copy-8.png macOS style copy icon.
|
||||||
|
|
|
@ -156,8 +156,6 @@ then
|
||||||
|
|
||||||
#
|
#
|
||||||
# Get the real version - strip off the "10.".
|
# Get the real version - strip off the "10.".
|
||||||
# We'll worry about that if, as, and when there's ever
|
|
||||||
# an OS XI.
|
|
||||||
#
|
#
|
||||||
deploy_real_version=`echo "$deploy_target" | sed -n 's/10\.\(.*\)/\1/p'`
|
deploy_real_version=`echo "$deploy_target" | sed -n 's/10\.\(.*\)/\1/p'`
|
||||||
|
|
||||||
|
@ -294,7 +292,7 @@ AC_SUBST(OSX_MIN_VERSION)
|
||||||
# Checks for the presence of macOS integration functions in the GTK+ framework
|
# Checks for the presence of macOS integration functions in the GTK+ framework
|
||||||
# or as a separate library.
|
# or as a separate library.
|
||||||
#
|
#
|
||||||
# GTK+ for MAC OS X now lives on www.gtk.org at:
|
# GTK+ for macOS now lives on www.gtk.org at:
|
||||||
#
|
#
|
||||||
# http://www.gtk.org/download/macos.php
|
# http://www.gtk.org/download/macos.php
|
||||||
#
|
#
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
#
|
#
|
||||||
# See bug QTBUG-35256 for the full painful story. Shorter version:
|
# See bug QTBUG-35256 for the full painful story. Shorter version:
|
||||||
# the OS X Qt packages provide the Qt components as frameworks, but
|
# the macOS Qt packages provide the Qt components as frameworks, but
|
||||||
# the .pc files don't generate the right CFLAGS/CXXFLAGS to make
|
# the .pc files don't generate the right CFLAGS/CXXFLAGS to make
|
||||||
# that work, so autoconf doesn't work correctly.
|
# that work, so autoconf doesn't work correctly.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# Unfortunately, Mac OS X's devfs is based on the old FreeBSD
|
# Unfortunately, macOS's devfs is based on the old FreeBSD
|
||||||
# one, not the current one, so there's no way to configure it
|
# one, not the current one, so there's no way to configure it
|
||||||
# to create BPF devices with particular owners or groups. BPF
|
# to create BPF devices with particular owners or groups. BPF
|
||||||
# devices on Mac OS X are also non-cloning, that is they can
|
# devices on macOS are also non-cloning, that is they can
|
||||||
# be created on demand at any time. This startup item will
|
# be created on demand at any time. This startup item will
|
||||||
# pre-create a number of BPF devices, then make them owned by
|
# pre-create a number of BPF devices, then make them owned by
|
||||||
# the access_bpf group, with permissions rw-rw----, so that
|
# the access_bpf group, with permissions rw-rw----, so that
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
<key>CFBundleTypeIconFile</key>
|
<key>CFBundleTypeIconFile</key>
|
||||||
<string>Wiresharkdoc.icns</string>
|
<string>Wiresharkdoc.icns</string>
|
||||||
<key>CFBundleTypeName</key>
|
<key>CFBundleTypeName</key>
|
||||||
<string>OS X PacketLogger Capture</string>
|
<string>macOS PacketLogger Capture</string>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
<string>Viewer</string>
|
<string>Viewer</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# -lp /path/to/wireshark/lib -ep /path/to/wireshark/extcap/binaries
|
# -lp /path/to/wireshark/lib -ep /path/to/wireshark/extcap/binaries
|
||||||
# -pp /path/to/wireshark/plugins -p /path/to/Info.plist
|
# -pp /path/to/wireshark/plugins -p /path/to/Info.plist
|
||||||
#
|
#
|
||||||
# This script attempts to build an Wireshark.app bundle for OS X, resolving
|
# This script attempts to build an Wireshark.app bundle for macOS, resolving
|
||||||
# dynamic libraries, etc.
|
# dynamic libraries, etc.
|
||||||
# It strips the executable and libraries if '-s' is given.
|
# It strips the executable and libraries if '-s' is given.
|
||||||
# The Info.plist file can be found in the base wireshark directory once
|
# The Info.plist file can be found in the base wireshark directory once
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
# NB:
|
# NB:
|
||||||
# This originally came from Inkscape; Inkscape's configure script has an
|
# This originally came from Inkscape; Inkscape's configure script has an
|
||||||
# "--enable-osxapp", which causes some of Inkscape's installation data
|
# "--enable-osxapp", which causes some of Inkscape's installation data
|
||||||
# files to have OS X-ish paths under Contents/Resources of the bundle
|
# files to have macOS-ish paths under Contents/Resources of the bundle
|
||||||
# or under /Library/Application Support. We don't have such an option;
|
# or under /Library/Application Support. We don't have such an option;
|
||||||
# we just put them in "bin", "etc", "lib", and "share" directories
|
# we just put them in "bin", "etc", "lib", and "share" directories
|
||||||
# under Contents/Resources, rather than in the "bin", "etc", "lib",
|
# under Contents/Resources, rather than in the "bin", "etc", "lib",
|
||||||
|
@ -97,7 +97,7 @@ fi
|
||||||
help()
|
help()
|
||||||
{
|
{
|
||||||
echo -e "
|
echo -e "
|
||||||
Create an app bundle for OS X
|
Create an app bundle for macOS
|
||||||
|
|
||||||
USAGE
|
USAGE
|
||||||
$0 [-s] [-l /path/to/libraries] -bp /path/to/wireshark/binaries -p /path/to/Info.plist
|
$0 [-s] [-l /path/to/libraries] -bp /path/to/wireshark/binaries -p /path/to/Info.plist
|
||||||
|
@ -496,11 +496,11 @@ rpathify_file () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Show the minimum supported version of OS X
|
# Show the minimum supported version of macOS
|
||||||
# for each executable or library
|
# for each executable or library
|
||||||
#
|
#
|
||||||
if [[ "$filetype" = "EXECUTE" || "$filetype" = "DYLIB" ]] && [[ "$VERSION" -ge "7" ]] ; then
|
if [[ "$filetype" = "EXECUTE" || "$filetype" = "DYLIB" ]] && [[ "$VERSION" -ge "7" ]] ; then
|
||||||
echo "Minimum OS X version for $1:"
|
echo "Minimum macOS version for $1:"
|
||||||
otool -l $1 | grep -A3 LC_VERSION_MIN_MACOSX
|
otool -l $1 | grep -A3 LC_VERSION_MIN_MACOSX
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
# It can also be done for other tests, to get more information than
|
# It can also be done for other tests, to get more information than
|
||||||
# "it crashed due to signal XXX" if the tests fail with a crash signal.
|
# "it crashed due to signal XXX" if the tests fail with a crash signal.
|
||||||
#
|
#
|
||||||
# XXX - on OS X, core dumps are in /cores/core.{PID}; would they appear
|
# XXX - on macOS, core dumps are in /cores/core.{PID}; would they appear
|
||||||
# elsewhere on any other UN*X?
|
# elsewhere on any other UN*X?
|
||||||
#
|
#
|
||||||
rm -f core
|
rm -f core
|
||||||
|
|
|
@ -468,7 +468,7 @@ wireshark_gtk_capture_suite() {
|
||||||
# WIRESHARK_QUIT_AFTER_CAPTURE needs to be set.
|
# WIRESHARK_QUIT_AFTER_CAPTURE needs to be set.
|
||||||
|
|
||||||
#
|
#
|
||||||
# NOTE: if, on OS X, we start using a native-Quartz toolkit,
|
# NOTE: if, on macOS, we start using a native-Quartz toolkit,
|
||||||
# this would need to change to check for WS_SYSTEM being
|
# this would need to change to check for WS_SYSTEM being
|
||||||
# "Darwin" and, if it is, check whether the standard output
|
# "Darwin" and, if it is, check whether the standard output
|
||||||
# of "launchctl managername" is "Aqua".
|
# of "launchctl managername" is "Aqua".
|
||||||
|
|
|
@ -367,7 +367,7 @@ main(int argc, char *argv[])
|
||||||
*
|
*
|
||||||
* Glibc and Solaris libc document that a leading + disables permutation
|
* Glibc and Solaris libc document that a leading + disables permutation
|
||||||
* of options, regardless of whether POSIXLY_CORRECT is set or not; *BSD
|
* of options, regardless of whether POSIXLY_CORRECT is set or not; *BSD
|
||||||
* and OS X don't document it, but do so anyway.
|
* and macOS don't document it, but do so anyway.
|
||||||
*
|
*
|
||||||
* We do *not* use a leading - because the behavior of a leading - is
|
* We do *not* use a leading - because the behavior of a leading - is
|
||||||
* platform-dependent.
|
* platform-dependent.
|
||||||
|
@ -669,7 +669,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To reset the options parser, set optreset to 1 on platforms that
|
* To reset the options parser, set optreset to 1 on platforms that
|
||||||
* have optreset (documented in *BSD and OS X, apparently present but
|
* have optreset (documented in *BSD and macOS, apparently present but
|
||||||
* not documented in Solaris - the Illumos repository seems to
|
* not documented in Solaris - the Illumos repository seems to
|
||||||
* suggest that the first Solaris getopt_long(), at least as of 2004,
|
* suggest that the first Solaris getopt_long(), at least as of 2004,
|
||||||
* was based on the NetBSD one, it had optreset) and set optind to 1,
|
* was based on the NetBSD one, it had optreset) and set optind to 1,
|
||||||
|
|
|
@ -1386,7 +1386,7 @@ sub checkAPIsCalledWithTvbGetPtr($$$)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# List of possible shadow variable (Majority coming from Mac OS X..)
|
# List of possible shadow variable (Majority coming from macOS..)
|
||||||
my @ShadowVariable = (
|
my @ShadowVariable = (
|
||||||
'index',
|
'index',
|
||||||
'time',
|
'time',
|
||||||
|
|
|
@ -54,11 +54,11 @@ MAX_CPU_TIME=600
|
||||||
# Stop the child process if it's using more than y * 1024 bytes
|
# Stop the child process if it's using more than y * 1024 bytes
|
||||||
MAX_VMEM=1000000
|
MAX_VMEM=1000000
|
||||||
# Stop the child process if its stack is larger than than z * 1024 bytes
|
# Stop the child process if its stack is larger than than z * 1024 bytes
|
||||||
# Windows XP: 2033
|
# Windows XP: 2033
|
||||||
# Windows 7: 2034
|
# Windows 7: 2034
|
||||||
# OS X 10.6: 8192
|
# Mac OS X 10.6: 8192
|
||||||
# Linux 2.6.24: 8192
|
# Linux 2.6.24: 8192
|
||||||
# Solaris 10: 8192
|
# Solaris 10: 8192
|
||||||
MAX_STACK=2033
|
MAX_STACK=2033
|
||||||
# Insert z times an error into the capture file (0.02 seems to be a good value to find errors)
|
# Insert z times an error into the capture file (0.02 seems to be a good value to find errors)
|
||||||
ERR_PROB=0.02
|
ERR_PROB=0.02
|
||||||
|
|
4
tshark.c
4
tshark.c
|
@ -720,7 +720,7 @@ main(int argc, char *argv[])
|
||||||
*
|
*
|
||||||
* Glibc and Solaris libc document that a leading + disables permutation
|
* Glibc and Solaris libc document that a leading + disables permutation
|
||||||
* of options, regardless of whether POSIXLY_CORRECT is set or not; *BSD
|
* of options, regardless of whether POSIXLY_CORRECT is set or not; *BSD
|
||||||
* and OS X don't document it, but do so anyway.
|
* and macOS don't document it, but do so anyway.
|
||||||
*
|
*
|
||||||
* We do *not* use a leading - because the behavior of a leading - is
|
* We do *not* use a leading - because the behavior of a leading - is
|
||||||
* platform-dependent.
|
* platform-dependent.
|
||||||
|
@ -1087,7 +1087,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To reset the options parser, set optreset to 1 on platforms that
|
* To reset the options parser, set optreset to 1 on platforms that
|
||||||
* have optreset (documented in *BSD and OS X, apparently present but
|
* have optreset (documented in *BSD and macOS, apparently present but
|
||||||
* not documented in Solaris - the Illumos repository seems to
|
* not documented in Solaris - the Illumos repository seems to
|
||||||
* suggest that the first Solaris getopt_long(), at least as of 2004,
|
* suggest that the first Solaris getopt_long(), at least as of 2004,
|
||||||
* was based on the NetBSD one, it had optreset) and set optind to 1,
|
* was based on the NetBSD one, it had optreset) and set optind to 1,
|
||||||
|
|
|
@ -354,7 +354,7 @@ void commandline_other_options(int argc, char *argv[], gboolean opt_reset)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To reset the options parser, set optreset to 1 on platforms that
|
* To reset the options parser, set optreset to 1 on platforms that
|
||||||
* have optreset (documented in *BSD and OS X, apparently present but
|
* have optreset (documented in *BSD and macOS, apparently present but
|
||||||
* not documented in Solaris - the Illumos repository seems to
|
* not documented in Solaris - the Illumos repository seems to
|
||||||
* suggest that the first Solaris getopt_long(), at least as of 2004,
|
* suggest that the first Solaris getopt_long(), at least as of 2004,
|
||||||
* was based on the NetBSD one, it had optreset) and set optind to 1,
|
* was based on the NetBSD one, it had optreset) and set optind to 1,
|
||||||
|
|
|
@ -111,7 +111,7 @@ console_log_handler(const char *log_domain, GLogLevelFlags log_level,
|
||||||
} else {
|
} else {
|
||||||
/* XXX - on UN*X, should we just use g_log_default_handler()?
|
/* XXX - on UN*X, should we just use g_log_default_handler()?
|
||||||
We want the error messages to go to the standard output;
|
We want the error messages to go to the standard output;
|
||||||
on Mac OS X, that will cause them to show up in various
|
on macOS, that will cause them to show up in various
|
||||||
per-user logs accessible through Console (details depend
|
per-user logs accessible through Console (details depend
|
||||||
on whether you're running 10.0 through 10.4 or running
|
on whether you're running 10.0 through 10.4 or running
|
||||||
10.5 and later), and, on other UN*X desktop environments,
|
10.5 and later), and, on other UN*X desktop environments,
|
||||||
|
|
|
@ -292,7 +292,7 @@ file_target_unwritable_ui(GtkWidget *chooser_w, char *cf_name)
|
||||||
ioctls (FS_IOC_GETFLAGS/FS_IOC_SETFLAGS in newer kernels,
|
ioctls (FS_IOC_GETFLAGS/FS_IOC_SETFLAGS in newer kernels,
|
||||||
EXT2_IOC_GETFLAGS/EXT2_IOC_SETFLAGS in older kernels - non-ext2
|
EXT2_IOC_GETFLAGS/EXT2_IOC_SETFLAGS in older kernels - non-ext2
|
||||||
file systems that support those ioctls use the same values as ext2
|
file systems that support those ioctls use the same values as ext2
|
||||||
does), appears to be more like the *BSD/OS X "system immutable"
|
does), appears to be more like the *BSD/macOS "system immutable"
|
||||||
flag, as it can be set only by the superuser or by processes with
|
flag, as it can be set only by the superuser or by processes with
|
||||||
CAP_LINUX_IMMUTABLE, so it sounds as if it's not intended for
|
CAP_LINUX_IMMUTABLE, so it sounds as if it's not intended for
|
||||||
arbitrary users to set or clear. */
|
arbitrary users to set or clear. */
|
||||||
|
@ -314,8 +314,8 @@ file_target_unwritable_ui(GtkWidget *chooser_w, char *cf_name)
|
||||||
GTK_MESSAGE_QUESTION,
|
GTK_MESSAGE_QUESTION,
|
||||||
GTK_BUTTONS_NONE,
|
GTK_BUTTONS_NONE,
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
/* Stuff in the OS X UI calls files with the "user immutable" bit
|
/* Stuff in the macOS UI calls files with the "user immutable" bit
|
||||||
"locked"; pre-OS X Mac software might have had that notion and
|
"locked"; the classic Mac OS might have had that notion and
|
||||||
called it "locked". */
|
called it "locked". */
|
||||||
"The file \"%s\" is locked.",
|
"The file \"%s\" is locked.",
|
||||||
#else /* __APPLE__ */
|
#else /* __APPLE__ */
|
||||||
|
|
|
@ -3195,7 +3195,7 @@ create_main_window (gint pl_size, gint tv_size, gint bv_size, e_prefs *prefs_p
|
||||||
menubar = main_menu_new(&accel);
|
menubar = main_menu_new(&accel);
|
||||||
|
|
||||||
#if defined(HAVE_IGE_MAC_INTEGRATION) || defined (HAVE_GTKOSXAPPLICATION)
|
#if defined(HAVE_IGE_MAC_INTEGRATION) || defined (HAVE_GTKOSXAPPLICATION)
|
||||||
/* Mac OS X native menus are created and displayed by main_menu_new() */
|
/* macOS native menus are created and displayed by main_menu_new() */
|
||||||
if(!prefs_p->gui_macosx_style) {
|
if(!prefs_p->gui_macosx_style) {
|
||||||
#endif
|
#endif
|
||||||
gtk_window_add_accel_group(GTK_WINDOW(top_level), accel);
|
gtk_window_add_accel_group(GTK_WINDOW(top_level), accel);
|
||||||
|
|
|
@ -2501,7 +2501,7 @@ main_menu_new(GtkAccelGroup ** table)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The quit item in the application menu shows up whenever ige mac
|
/* The quit item in the application menu shows up whenever ige mac
|
||||||
* integration is enabled, even if the OS X UI style in Wireshark isn't
|
* integration is enabled, even if the macOS UI style in Wireshark isn't
|
||||||
* turned on. */
|
* turned on. */
|
||||||
quit_item = gtk_menu_item_new_with_label("Quit");
|
quit_item = gtk_menu_item_new_with_label("Quit");
|
||||||
g_signal_connect(quit_item, "activate", G_CALLBACK(file_quit_cmd_cb), NULL);
|
g_signal_connect(quit_item, "activate", G_CALLBACK(file_quit_cmd_cb), NULL);
|
||||||
|
|
|
@ -205,8 +205,8 @@ gui_prefs_show(void)
|
||||||
|
|
||||||
#if defined(HAVE_IGE_MAC_INTEGRATION) || defined(HAVE_GTKOSXAPPLICATION)
|
#if defined(HAVE_IGE_MAC_INTEGRATION) || defined(HAVE_GTKOSXAPPLICATION)
|
||||||
macosx_style_cb = create_preference_check_button(main_grid, pos++,
|
macosx_style_cb = create_preference_check_button(main_grid, pos++,
|
||||||
"OS X style",
|
"macOS style",
|
||||||
"Create an OS X look and feel. Checking this box will move the "
|
"Create a macOS look and feel. Checking this box will move the "
|
||||||
"menu bar to the top of the screen instead of the top of the Wireshark window. "
|
"menu bar to the top of the screen instead of the top of the Wireshark window. "
|
||||||
"Requires a restart of Wireshark to take effect.",
|
"Requires a restart of Wireshark to take effect.",
|
||||||
prefs.gui_macosx_style);
|
prefs.gui_macosx_style);
|
||||||
|
|
|
@ -323,7 +323,7 @@ static int rint(double ); /* compiler template for Windows */
|
||||||
static struct irect zoomrect;
|
static struct irect zoomrect;
|
||||||
|
|
||||||
|
|
||||||
/* XXX - what about OS X? */
|
/* XXX - what about macOS? */
|
||||||
static char helptext[] =
|
static char helptext[] =
|
||||||
"Here's what you can do:\n"
|
"Here's what you can do:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
|
@ -480,7 +480,7 @@ static struct irect zoomrect;
|
||||||
|
|
||||||
/* #define ORIGINAL_WIN32_BUTTONS 1 */
|
/* #define ORIGINAL_WIN32_BUTTONS 1 */
|
||||||
|
|
||||||
/* XXX - what about OS X? */
|
/* XXX - what about macOS? */
|
||||||
/* XXX: Needs work to ensire that the columns line up properly in both Gtk2 & Gtk3 */
|
/* XXX: Needs work to ensire that the columns line up properly in both Gtk2 & Gtk3 */
|
||||||
/* What is the proper way to do this ?? */
|
/* What is the proper way to do this ?? */
|
||||||
static char helptext[] =
|
static char helptext[] =
|
||||||
|
|
|
@ -72,12 +72,12 @@
|
||||||
* (Its Windows openURL uses ShellExecute() on non-mailto URLs (it
|
* (Its Windows openURL uses ShellExecute() on non-mailto URLs (it
|
||||||
* does more exotic stuff for mailto: URLs).
|
* does more exotic stuff for mailto: URLs).
|
||||||
*
|
*
|
||||||
* Its OS X stuff uses the openURL method of an NSWorkspace (which
|
* Its macOS stuff uses the openURL method of an NSWorkspace (which
|
||||||
* probably ends up in Launch Services....).)
|
* probably ends up in Launch Services....).)
|
||||||
*
|
*
|
||||||
* GTK+ has gtk_show_uri(), but that ultimately uses gvfs on UN*X,
|
* GTK+ has gtk_show_uri(), but that ultimately uses gvfs on UN*X,
|
||||||
* so it's not appropriate for non-GNOME UN*Xes (including, but not
|
* so it's not appropriate for non-GNOME UN*Xes (including, but not
|
||||||
* limited to, OS X), and ultimately appears to be a stubbed-out
|
* limited to, macOS), and ultimately appears to be a stubbed-out
|
||||||
* routine in GLib 2.36.0, so it's not very useful for a cross-
|
* routine in GLib 2.36.0, so it's not very useful for a cross-
|
||||||
* platform applicatio n.
|
* platform applicatio n.
|
||||||
*
|
*
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
/* if WIN32_LEAN_AND_MEAN is defined, shellapi.h is needed too */
|
/* if WIN32_LEAN_AND_MEAN is defined, shellapi.h is needed too */
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#elif defined (HAVE_OS_X_FRAMEWORKS)
|
#elif defined (HAVE_OS_X_FRAMEWORKS)
|
||||||
/* Mac OS X - use Launch Services to start a browser */
|
/* macOS - use Launch Services to start a browser */
|
||||||
#include <CoreFoundation/CoreFoundation.h>
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
#include <ApplicationServices/ApplicationServices.h>
|
#include <ApplicationServices/ApplicationServices.h>
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -58,7 +58,7 @@ class CaptureFileDialog : public QFileDialog
|
||||||
//
|
//
|
||||||
// On Windows Vista and later we should probably use IFileOpenDialog. On earlier
|
// On Windows Vista and later we should probably use IFileOpenDialog. On earlier
|
||||||
// versions of Windows (including XP) we should use GetOpenFileName, which is
|
// versions of Windows (including XP) we should use GetOpenFileName, which is
|
||||||
// what we do in ui/win32/file_dlg_win32.c. On OS X we should use NSOpenPanel. On
|
// what we do in ui/win32/file_dlg_win32.c. macOS we should use NSOpenPanel. On
|
||||||
// other platforms we should fall back to QFileDialog.
|
// other platforms we should fall back to QFileDialog.
|
||||||
//
|
//
|
||||||
// Yes, that's four implementations of the same window.
|
// Yes, that's four implementations of the same window.
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
// We use a global mutex to protect pcap_compile since it calls gethostbyname.
|
// We use a global mutex to protect pcap_compile since it calls gethostbyname.
|
||||||
// This probably isn't needed on Windows (where pcap_comple calls
|
// This probably isn't needed on Windows (where pcap_comple calls
|
||||||
// EnterCriticalSection + LeaveCriticalSection) or *BSD or OS X where
|
// EnterCriticalSection + LeaveCriticalSection) or *BSD or macOS where
|
||||||
// gethostbyname(3) claims that it's thread safe.
|
// gethostbyname(3) claims that it's thread safe.
|
||||||
static QMutex pcap_compile_mtx_;
|
static QMutex pcap_compile_mtx_;
|
||||||
|
|
||||||
|
|
|
@ -334,7 +334,7 @@ void ExportObjectDialog::saveAllEntries()
|
||||||
//
|
//
|
||||||
// XXX - what we *really* want is something that asks the user
|
// XXX - what we *really* want is something that asks the user
|
||||||
// for an existing directory *but* lets them create a new
|
// for an existing directory *but* lets them create a new
|
||||||
// directory in the process. That's what we get on OS X,
|
// directory in the process. That's what we get on macOS,
|
||||||
// as the native dialog is used, and it supports that; does
|
// as the native dialog is used, and it supports that; does
|
||||||
// that also work on Windows and with Qt's own dialog?
|
// that also work on Windows and with Qt's own dialog?
|
||||||
//
|
//
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
// As discussed in change 7072, QDialogs have different minimize and "on
|
// As discussed in change 7072, QDialogs have different minimize and "on
|
||||||
// top" behaviors depending on their parents, flags, and platforms.
|
// top" behaviors depending on their parents, flags, and platforms.
|
||||||
//
|
//
|
||||||
// W = Windows, L = Linux, X = OS X
|
// W = Windows, L = Linux (and other non-macOS UN*Xes), X = macOS
|
||||||
//
|
//
|
||||||
// QDialog(parent)
|
// QDialog(parent)
|
||||||
//
|
//
|
||||||
|
@ -57,9 +57,9 @@ public:
|
||||||
// W, L, X: Independent, minimize button.
|
// W, L, X: Independent, minimize button.
|
||||||
//
|
//
|
||||||
// Additionally, maximized, parent-less dialogs can close to a black screen
|
// Additionally, maximized, parent-less dialogs can close to a black screen
|
||||||
// on OS X: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=12544
|
// on macOS: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=12544
|
||||||
//
|
//
|
||||||
// Pass in the parent on OS X and NULL elsewhere so that we have an
|
// Pass in the parent on macOS and NULL elsewhere so that we have an
|
||||||
// independent window that un-maximizes correctly.
|
// independent window that un-maximizes correctly.
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
explicit GeometryStateDialog(QWidget *parent, Qt::WindowFlags f = 0) : QDialog(parent, f) {}
|
explicit GeometryStateDialog(QWidget *parent, Qt::WindowFlags f = 0) : QDialog(parent, f) {}
|
||||||
|
|
|
@ -421,7 +421,7 @@ void InterfaceTreeModel::updateStatistic(unsigned int idx)
|
||||||
if ( !stat_cache_ )
|
if ( !stat_cache_ )
|
||||||
{
|
{
|
||||||
// Start gathering statistics using dumpcap
|
// Start gathering statistics using dumpcap
|
||||||
// We crash (on OS X at least) if we try to do this from ::showEvent.
|
// We crash (on macOS at least) if we try to do this from ::showEvent.
|
||||||
stat_cache_ = capture_stat_start(&global_capture_opts);
|
stat_cache_ = capture_stat_start(&global_capture_opts);
|
||||||
}
|
}
|
||||||
if ( !stat_cache_ )
|
if ( !stat_cache_ )
|
||||||
|
|
|
@ -433,7 +433,7 @@ void IOGraphDialog::syncGraphSettings(QTreeWidgetItem *item)
|
||||||
hint_err_ = iog->configError();
|
hint_err_ = iog->configError();
|
||||||
visible = false;
|
visible = false;
|
||||||
retap = false;
|
retap = false;
|
||||||
// On OS X the "not user checkable" checkbox isn't obviously disabled.
|
// On macOS the "not user checkable" checkbox isn't obviously disabled.
|
||||||
// For now show it as partially checked.
|
// For now show it as partially checked.
|
||||||
item->setCheckState(name_col_, Qt::PartiallyChecked);
|
item->setCheckState(name_col_, Qt::PartiallyChecked);
|
||||||
item->setFlags(item->flags() & ~Qt::ItemIsUserCheckable);
|
item->setFlags(item->flags() & ~Qt::ItemIsUserCheckable);
|
||||||
|
|
|
@ -193,7 +193,7 @@ MainWelcome::MainWelcome(QWidget *parent) :
|
||||||
updateRecentCaptures();
|
updateRecentCaptures();
|
||||||
|
|
||||||
#if !defined(Q_OS_MAC) || QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
|
#if !defined(Q_OS_MAC) || QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
|
||||||
// This crashes with Qt 4.8.3 on OS X.
|
// This crashes with Qt 4.8.3 on macOS.
|
||||||
QGraphicsBlurEffect *blur = new QGraphicsBlurEffect(welcome_ui_->childContainer);
|
QGraphicsBlurEffect *blur = new QGraphicsBlurEffect(welcome_ui_->childContainer);
|
||||||
blur->setBlurRadius(2);
|
blur->setBlurRadius(2);
|
||||||
welcome_ui_->childContainer->setGraphicsEffect(blur);
|
welcome_ui_->childContainer->setGraphicsEffect(blur);
|
||||||
|
|
|
@ -64,7 +64,7 @@ private:
|
||||||
QString show_in_str_;
|
QString show_in_str_;
|
||||||
|
|
||||||
SplashOverlay *splash_overlay_;
|
SplashOverlay *splash_overlay_;
|
||||||
// QListWidget doesn't activate items when the return or enter keys are pressed on OS X.
|
// QListWidget doesn't activate items when the return or enter keys are pressed on macOS.
|
||||||
// We may want to subclass it at some point.
|
// We may want to subclass it at some point.
|
||||||
QListWidget *recent_files_;
|
QListWidget *recent_files_;
|
||||||
// MWOverlay *overlay;
|
// MWOverlay *overlay;
|
||||||
|
|
|
@ -1022,7 +1022,7 @@ void MainWindow::saveWindowGeometry()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prefs.gui_geometry_save_maximized) {
|
if (prefs.gui_geometry_save_maximized) {
|
||||||
// On OS X this is false when it shouldn't be
|
// On macOS this is false when it shouldn't be
|
||||||
recent.gui_geometry_main_maximized = isMaximized();
|
recent.gui_geometry_main_maximized = isMaximized();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1808,7 +1808,7 @@ void MainWindow::initMainToolbarIcons()
|
||||||
int icon_size = style()->pixelMetric(QStyle::PM_SmallIconSize);
|
int icon_size = style()->pixelMetric(QStyle::PM_SmallIconSize);
|
||||||
#if !defined(Q_OS_WIN)
|
#if !defined(Q_OS_WIN)
|
||||||
// Force icons to 24x24 for now, otherwise actionFileOpen looks wonky.
|
// Force icons to 24x24 for now, otherwise actionFileOpen looks wonky.
|
||||||
// The OS X HIG specifies 32-pixel icons but they're a little too
|
// The macOS HIG specifies 32-pixel icons but they're a little too
|
||||||
// large IMHO.
|
// large IMHO.
|
||||||
icon_size = icon_size * 3 / 2;
|
icon_size = icon_size * 3 / 2;
|
||||||
#endif
|
#endif
|
||||||
|
@ -2063,7 +2063,7 @@ void MainWindow::setTitlebarForCaptureFile()
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// For a user file, set the full path; that way,
|
// For a user file, set the full path; that way,
|
||||||
// for OS X, it'll set the "proxy icon". Qt
|
// for macOS, it'll set the "proxy icon". Qt
|
||||||
// handles extracting the last component.
|
// handles extracting the last component.
|
||||||
//
|
//
|
||||||
// Sadly, some UN*Xes don't necessarily use UTF-8
|
// Sadly, some UN*Xes don't necessarily use UTF-8
|
||||||
|
@ -2115,7 +2115,7 @@ void MainWindow::setWSWindowTitle(QString title)
|
||||||
if (prefs.gui_window_title && prefs.gui_window_title[0]) {
|
if (prefs.gui_window_title && prefs.gui_window_title[0]) {
|
||||||
QString custom_title = replaceWindowTitleVariables(prefs.gui_window_title);
|
QString custom_title = replaceWindowTitleVariables(prefs.gui_window_title);
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// On OS X we separate the titles with a unicode em dash
|
// On macOS we separate the titles with a unicode em dash
|
||||||
title.append(QString(" %1 %2").arg(UTF8_EM_DASH).arg(custom_title));
|
title.append(QString(" %1 %2").arg(UTF8_EM_DASH).arg(custom_title));
|
||||||
#else
|
#else
|
||||||
title.append(QString(" [%1]").arg(custom_title));
|
title.append(QString(" [%1]").arg(custom_title));
|
||||||
|
|
|
@ -1070,7 +1070,7 @@ void MainWindow::stopCapture() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keep focus rects from showing through the welcome screen. Primarily for
|
// Keep focus rects from showing through the welcome screen. Primarily for
|
||||||
// OS X.
|
// macOS.
|
||||||
void MainWindow::mainStackChanged(int)
|
void MainWindow::mainStackChanged(int)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < main_ui_->mainStack->count(); i++) {
|
for (int i = 0; i < main_ui_->mainStack->count(); i++) {
|
||||||
|
@ -1673,7 +1673,7 @@ void MainWindow::on_actionNewDisplayFilterExpression_triggered()
|
||||||
showAccordionFrame(main_ui_->filterExpressionFrame);
|
showAccordionFrame(main_ui_->filterExpressionFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
// On Qt4 + OS X with unifiedTitleAndToolBarOnMac set it's possible to make
|
// On Qt4 + macOS with unifiedTitleAndToolBarOnMac set it's possible to make
|
||||||
// the main window obnoxiously wide.
|
// the main window obnoxiously wide.
|
||||||
|
|
||||||
void MainWindow::displayFilterButtonClicked()
|
void MainWindow::displayFilterButtonClicked()
|
||||||
|
@ -2201,7 +2201,7 @@ void MainWindow::showPreferencesDialog(PreferencesDialog::PreferencesPane start_
|
||||||
pref_dialog.exec();
|
pref_dialog.exec();
|
||||||
|
|
||||||
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
||||||
// problems on OS X.
|
// problems on macOS.
|
||||||
wsApp->flushAppSignals();
|
wsApp->flushAppSignals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2215,7 +2215,7 @@ void MainWindow::showPreferencesDialog(QString module_name)
|
||||||
pref_dialog.exec();
|
pref_dialog.exec();
|
||||||
|
|
||||||
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
||||||
// problems on OS X.
|
// problems on macOS.
|
||||||
wsApp->flushAppSignals();
|
wsApp->flushAppSignals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2696,7 +2696,7 @@ void MainWindow::on_actionAnalyzeDisplayFilterMacros_triggered()
|
||||||
|
|
||||||
uat_dlg.exec();
|
uat_dlg.exec();
|
||||||
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
||||||
// problems on OS X.
|
// problems on macOS.
|
||||||
wsApp->flushAppSignals();
|
wsApp->flushAppSignals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2811,7 +2811,7 @@ void MainWindow::on_actionAnalyzeEnabledProtocols_triggered()
|
||||||
enable_proto_dialog.exec();
|
enable_proto_dialog.exec();
|
||||||
|
|
||||||
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
||||||
// problems on OS X.
|
// problems on macOS.
|
||||||
wsApp->flushAppSignals();
|
wsApp->flushAppSignals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2829,7 +2829,7 @@ void MainWindow::on_actionAnalyzeDecodeAs_triggered()
|
||||||
da_dialog.exec();
|
da_dialog.exec();
|
||||||
|
|
||||||
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
||||||
// problems on OS X.
|
// problems on macOS.
|
||||||
wsApp->flushAppSignals();
|
wsApp->flushAppSignals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -445,7 +445,7 @@ void ManageInterfacesDialog::addRemoteInterfaces(GList* rlist, remote_options *r
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't actually store these. When we do we should make sure they're stored
|
// We don't actually store these. When we do we should make sure they're stored
|
||||||
// securely using CryptProtectData, the OS X Keychain, GNOME Keyring, KWallet, etc.
|
// securely using CryptProtectData, the macOS Keychain, GNOME Keyring, KWallet, etc.
|
||||||
void ManageInterfacesDialog::remoteAccepted()
|
void ManageInterfacesDialog::remoteAccepted()
|
||||||
{
|
{
|
||||||
QTreeWidgetItemIterator it(ui->remoteList);
|
QTreeWidgetItemIterator it(ui->remoteList);
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
class OsbProxyStyle : public QProxyStyle
|
class OsbProxyStyle : public QProxyStyle
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Disable transient behavior. Mainly for OS X but possibly applies to
|
// Disable transient behavior. Mainly for macOS but possibly applies to
|
||||||
// other platforms. If we want to enable transience we'll have to
|
// other platforms. If we want to enable transience we'll have to
|
||||||
// handle the following at a minimum:
|
// handle the following at a minimum:
|
||||||
//
|
//
|
||||||
|
|
|
@ -674,7 +674,7 @@ int PacketList::sizeHintForColumn(int column) const
|
||||||
// reimplementing QTreeView::sizeHintForColumn seems like a worse idea.
|
// reimplementing QTreeView::sizeHintForColumn seems like a worse idea.
|
||||||
if (itemDelegateForColumn(column)) {
|
if (itemDelegateForColumn(column)) {
|
||||||
// In my (gcc) testing this results in correct behavior on Windows but adds extra space
|
// In my (gcc) testing this results in correct behavior on Windows but adds extra space
|
||||||
// on OS X and Linux. We might want to add Q_OS_... #ifdefs accordingly.
|
// on macOS and Linux. We might want to add Q_OS_... #ifdefs accordingly.
|
||||||
size_hint = itemDelegateForColumn(column)->sizeHint(viewOptions(), QModelIndex()).width();
|
size_hint = itemDelegateForColumn(column)->sizeHint(viewOptions(), QModelIndex()).width();
|
||||||
}
|
}
|
||||||
size_hint += QTreeView::sizeHintForColumn(column); // Decoration padding
|
size_hint += QTreeView::sizeHintForColumn(column); // Decoration padding
|
||||||
|
@ -1441,7 +1441,7 @@ void PacketList::columnVisibilityTriggered()
|
||||||
void PacketList::sectionResized(int col, int, int new_width)
|
void PacketList::sectionResized(int col, int, int new_width)
|
||||||
{
|
{
|
||||||
if (isVisible() && !columns_changed_ && !set_column_visibility_ && new_width > 0) {
|
if (isVisible() && !columns_changed_ && !set_column_visibility_ && new_width > 0) {
|
||||||
// Column 1 gets an invalid value (32 on OS X) when we're not yet
|
// Column 1 gets an invalid value (32 on macOS) when we're not yet
|
||||||
// visible.
|
// visible.
|
||||||
//
|
//
|
||||||
// Don't set column width when columns changed or setting column
|
// Don't set column width when columns changed or setting column
|
||||||
|
|
|
@ -59,7 +59,7 @@ ProfileDialog::ProfileDialog(QWidget *parent) :
|
||||||
ok_button_ = pd_ui_->buttonBox->button(QDialogButtonBox::Ok);
|
ok_button_ = pd_ui_->buttonBox->button(QDialogButtonBox::Ok);
|
||||||
|
|
||||||
// XXX - Use NSImageNameAddTemplate and NSImageNameRemoveTemplate to set stock
|
// XXX - Use NSImageNameAddTemplate and NSImageNameRemoveTemplate to set stock
|
||||||
// icons on OS X.
|
// icons on macOS.
|
||||||
// Are there equivalent stock icons on Windows?
|
// Are there equivalent stock icons on Windows?
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
pd_ui_->newToolButton->setAttribute(Qt::WA_MacSmallSize, true);
|
pd_ui_->newToolButton->setAttribute(Qt::WA_MacSmallSize, true);
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include "wireshark_application.h"
|
#include "wireshark_application.h"
|
||||||
|
|
||||||
// To do:
|
// To do:
|
||||||
// - Add an NSProgressIndicator to the dock icon on OS X.
|
// - Add an NSProgressIndicator to the dock icon on macOS.
|
||||||
// - Start adding the progress bar to dialogs.
|
// - Start adding the progress bar to dialogs.
|
||||||
// - Don't complain so loudly when the user stops a capture.
|
// - Don't complain so loudly when the user stops a capture.
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ public:
|
||||||
UatDialog uat_dlg(parentWidget(), prefs_get_uat_value(pref_));
|
UatDialog uat_dlg(parentWidget(), prefs_get_uat_value(pref_));
|
||||||
uat_dlg.exec();
|
uat_dlg.exec();
|
||||||
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
||||||
// problems on OS X.
|
// problems on macOS.
|
||||||
wsApp->flushAppSignals();
|
wsApp->flushAppSignals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -621,7 +621,7 @@ void RtpAudioStream::outputStateChanged(QAudio::State new_state)
|
||||||
{
|
{
|
||||||
if (!audio_output_) return;
|
if (!audio_output_) return;
|
||||||
|
|
||||||
// On some platforms including OS X and Windows, the stateChanged signal
|
// On some platforms including macOS and Windows, the stateChanged signal
|
||||||
// is emitted while a QMutexLocker is active. As a result we shouldn't
|
// is emitted while a QMutexLocker is active. As a result we shouldn't
|
||||||
// delete audio_output_ here.
|
// delete audio_output_ here.
|
||||||
switch (new_state) {
|
switch (new_state) {
|
||||||
|
|
|
@ -296,7 +296,7 @@ void SCTPChunkStatisticsDialog::on_actionChunkTypePreferences_triggered()
|
||||||
UatDialog *uatdialog = new UatDialog(this, uat);
|
UatDialog *uatdialog = new UatDialog(this, uat);
|
||||||
uatdialog->exec();
|
uatdialog->exec();
|
||||||
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
// Emitting PacketDissectionChanged directly from a QDialog can cause
|
||||||
// problems on OS X.
|
// problems on macOS.
|
||||||
wsApp->flushAppSignals();
|
wsApp->flushAppSignals();
|
||||||
|
|
||||||
ui->tableWidget->clear();
|
ui->tableWidget->clear();
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
// Stock icons. Based on gtk/stock_icons.h
|
// Stock icons. Based on gtk/stock_icons.h
|
||||||
|
|
||||||
// Toolbar icon sizes:
|
// Toolbar icon sizes:
|
||||||
// OS X freestanding: 32x32, 32x32@2x, segmented (inside a button): <= 19x19
|
// macOS freestanding: 32x32, 32x32@2x, segmented (inside a button): <= 19x19
|
||||||
// Windows: 16x16, 24x24, 32x32
|
// Windows: 16x16, 24x24, 32x32
|
||||||
// GNOME: 24x24 (default), 48x48
|
// GNOME: 24x24 (default), 48x48
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
// We want nice icons that render correctly, and that are responsive
|
// We want nice icons that render correctly, and that are responsive
|
||||||
// when the user hovers and clicks them.
|
// when the user hovers and clicks them.
|
||||||
// Using setIcon renders correctly on normal and retina displays. It is
|
// Using setIcon renders correctly on normal and retina displays. It is
|
||||||
// not completely responsive, particularly on OS X.
|
// not completely responsive, particularly on macOS.
|
||||||
// Calling setStyleSheet is responsive, but does not render correctly on
|
// Calling setStyleSheet is responsive, but does not render correctly on
|
||||||
// retina displays: https://bugreports.qt.io/browse/QTBUG-36825
|
// retina displays: https://bugreports.qt.io/browse/QTBUG-36825
|
||||||
// Subclass QToolButton, which lets us catch events and set icons as needed.
|
// Subclass QToolButton, which lets us catch events and set icons as needed.
|
||||||
|
@ -88,7 +88,7 @@ bool StockIconToolButton::event(QEvent *event)
|
||||||
case QEvent::Timer:
|
case QEvent::Timer:
|
||||||
{
|
{
|
||||||
// We can lose QEvent::Leave, QEvent::HoverLeave and underMouse()
|
// We can lose QEvent::Leave, QEvent::HoverLeave and underMouse()
|
||||||
// on OS X if a tooltip appears:
|
// on macOS if a tooltip appears:
|
||||||
// https://bugreports.qt.io/browse/QTBUG-46379
|
// https://bugreports.qt.io/browse/QTBUG-46379
|
||||||
// Work around the issue by periodically checking the mouse
|
// Work around the issue by periodically checking the mouse
|
||||||
// position and scheduling a fake leave event when the mouse
|
// position and scheduling a fake leave event when the mouse
|
||||||
|
|
|
@ -729,13 +729,13 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
|
||||||
//
|
//
|
||||||
// QFileSystemWatcher should allow us to watch for files being
|
// QFileSystemWatcher should allow us to watch for files being
|
||||||
// removed or renamed. It uses kqueues and EVFILT_VNODE on FreeBSD,
|
// removed or renamed. It uses kqueues and EVFILT_VNODE on FreeBSD,
|
||||||
// NetBSD, FSEvents on OS X, inotify on Linux if available, and
|
// NetBSD, FSEvents on macOS, inotify on Linux if available, and
|
||||||
// FindFirstChagneNotification() on Windows. On all other platforms,
|
// FindFirstChagneNotification() on Windows. On all other platforms,
|
||||||
// it just periodically polls, as we're doing now.
|
// it just periodically polls, as we're doing now.
|
||||||
//
|
//
|
||||||
// For unmounts:
|
// For unmounts:
|
||||||
//
|
//
|
||||||
// OS X and FreeBSD deliver NOTE_REVOKE notes for EVFILT_VNODE, and
|
// macOS and FreeBSD deliver NOTE_REVOKE notes for EVFILT_VNODE, and
|
||||||
// QFileSystemWatcher delivers signals for them, just as it does for
|
// QFileSystemWatcher delivers signals for them, just as it does for
|
||||||
// NOTE_DELETE and NOTE_RENAME.
|
// NOTE_DELETE and NOTE_RENAME.
|
||||||
//
|
//
|
||||||
|
@ -762,7 +762,7 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
|
||||||
//
|
//
|
||||||
// Note also that remote file systems might not report file
|
// Note also that remote file systems might not report file
|
||||||
// removal or renames if they're done on the server or done by
|
// removal or renames if they're done on the server or done by
|
||||||
// another client. At least on OS X, they *will* get reported
|
// another client. At least on macOS, they *will* get reported
|
||||||
// if they're done on the machine running the program doing the
|
// if they're done on the machine running the program doing the
|
||||||
// kqueue stuff, and, at least in newer versions, should get
|
// kqueue stuff, and, at least in newer versions, should get
|
||||||
// reported on SMB-mounted (and AFP-mounted?) file systems
|
// reported on SMB-mounted (and AFP-mounted?) file systems
|
||||||
|
@ -778,7 +778,7 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
|
||||||
// catch *that* would be to watch for mounts and re-check all
|
// catch *that* would be to watch for mounts and re-check all
|
||||||
// marked-as-inaccessible files.
|
// marked-as-inaccessible files.
|
||||||
//
|
//
|
||||||
// OS X and FreeBSD also support EVFILT_FS events, which notify you
|
// macOS and FreeBSD also support EVFILT_FS events, which notify you
|
||||||
// of file system mounts and unmounts. We'd need to add our own
|
// of file system mounts and unmounts. We'd need to add our own
|
||||||
// kqueue for that, if we can check those with QSocketNotifier.
|
// kqueue for that, if we can check those with QSocketNotifier.
|
||||||
//
|
//
|
||||||
|
@ -800,7 +800,7 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
|
||||||
// (Speaking of automounters, repeatedly polling recent files will
|
// (Speaking of automounters, repeatedly polling recent files will
|
||||||
// keep the file system from being unmounted, for what that's worth.)
|
// keep the file system from being unmounted, for what that's worth.)
|
||||||
//
|
//
|
||||||
// At least on OS X, you can determine whether a file is on an
|
// At least on macOS, you can determine whether a file is on an
|
||||||
// automounted file system by calling statfs() on its path and
|
// automounted file system by calling statfs() on its path and
|
||||||
// checking whether MNT_AUTOMOUNTED is set in f_flags. FreeBSD
|
// checking whether MNT_AUTOMOUNTED is set in f_flags. FreeBSD
|
||||||
// appears to support that flag as well, but no other *BSD appears
|
// appears to support that flag as well, but no other *BSD appears
|
||||||
|
@ -824,7 +824,7 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
|
||||||
// Application-wide style sheet
|
// Application-wide style sheet
|
||||||
QString app_style_sheet = qApp->styleSheet();
|
QString app_style_sheet = qApp->styleSheet();
|
||||||
#if defined(Q_OS_MAC) && QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
#if defined(Q_OS_MAC) && QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
||||||
// Qt uses the HITheme API to draw splitters. In recent versions of OS X
|
// Qt uses the HITheme API to draw splitters. In recent versions of macOS
|
||||||
// this looks particularly bad: https://bugreports.qt.io/browse/QTBUG-43425
|
// this looks particularly bad: https://bugreports.qt.io/browse/QTBUG-43425
|
||||||
// This doesn't look native but it looks better than Yosemite's bit-rotten
|
// This doesn't look native but it looks better than Yosemite's bit-rotten
|
||||||
// rendering of HIThemeSplitterDrawInfo.
|
// rendering of HIThemeSplitterDrawInfo.
|
||||||
|
@ -898,7 +898,7 @@ void WiresharkApplication::emitAppSignal(AppSignal signal)
|
||||||
|
|
||||||
// Flush any collected app signals.
|
// Flush any collected app signals.
|
||||||
//
|
//
|
||||||
// On OS X emitting PacketDissectionChanged from a dialog can
|
// On macOS emitting PacketDissectionChanged from a dialog can
|
||||||
// render the application unusable:
|
// render the application unusable:
|
||||||
// https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=11361
|
// https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=11361
|
||||||
// https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=11448
|
// https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=11448
|
||||||
|
|
|
@ -84,7 +84,7 @@ public:
|
||||||
void registerUpdate(register_action_e action, const char *message);
|
void registerUpdate(register_action_e action, const char *message);
|
||||||
void emitAppSignal(AppSignal signal);
|
void emitAppSignal(AppSignal signal);
|
||||||
// Emitting app signals (PacketDissectionChanged in particular) from
|
// Emitting app signals (PacketDissectionChanged in particular) from
|
||||||
// dialogs on OS X can be problematic. Dialogs should call queueAppSignal
|
// dialogs on macOS can be problematic. Dialogs should call queueAppSignal
|
||||||
// instead.
|
// instead.
|
||||||
void queueAppSignal(AppSignal signal) { app_signals_ << signal; }
|
void queueAppSignal(AppSignal signal) { app_signals_ << signal; }
|
||||||
// Flush queued app signals. Should be called from the main window after
|
// Flush queued app signals. Should be called from the main window after
|
||||||
|
|
|
@ -177,7 +177,7 @@
|
||||||
</mime-type>
|
</mime-type>
|
||||||
|
|
||||||
<mime-type type="application/x-apple-packetlogger">
|
<mime-type type="application/x-apple-packetlogger">
|
||||||
<comment>Packet Capture (OS X PacketLogger)</comment>
|
<comment>Packet Capture (macOS PacketLogger)</comment>
|
||||||
<generic-icon name="application-wireshark-doc"/>
|
<generic-icon name="application-wireshark-doc"/>
|
||||||
<glob pattern="*.pklg"/>
|
<glob pattern="*.pklg"/>
|
||||||
<glob pattern="*.pklg.gz"/>
|
<glob pattern="*.pklg.gz"/>
|
||||||
|
|
|
@ -143,7 +143,7 @@ static const struct file_extension_info file_type_extensions_base[] = {
|
||||||
{ "TamoSoft CommView", TRUE, "ncf" },
|
{ "TamoSoft CommView", TRUE, "ncf" },
|
||||||
{ "Symbian OS btsnoop", TRUE, "log" },
|
{ "Symbian OS btsnoop", TRUE, "log" },
|
||||||
{ "XML files (including Gammu DCT3 traces)", TRUE, "xml" },
|
{ "XML files (including Gammu DCT3 traces)", TRUE, "xml" },
|
||||||
{ "OS X PacketLogger", TRUE, "pklg" },
|
{ "macOS PacketLogger", TRUE, "pklg" },
|
||||||
{ "Daintree SNA", TRUE, "dcf" },
|
{ "Daintree SNA", TRUE, "dcf" },
|
||||||
{ "IPFIX File Format", TRUE, "pfx;ipfix" },
|
{ "IPFIX File Format", TRUE, "pfx;ipfix" },
|
||||||
{ "Aethra .aps file", TRUE, "aps" },
|
{ "Aethra .aps file", TRUE, "aps" },
|
||||||
|
@ -328,7 +328,7 @@ wtap_get_all_capture_file_extensions_list(void)
|
||||||
* to the following files so that the various desktop environments will
|
* to the following files so that the various desktop environments will
|
||||||
* know that Wireshark can open the file:
|
* know that Wireshark can open the file:
|
||||||
* 1) wireshark-mime-package.xml (for freedesktop.org environments)
|
* 1) wireshark-mime-package.xml (for freedesktop.org environments)
|
||||||
* 2) packaging/macosx/Info.plist.in (for OS X)
|
* 2) packaging/macosx/Info.plist.in (for macOS)
|
||||||
* 3) packaging/nsis/AdditionalTasksPage.ini, packaging/nsis/common.nsh,
|
* 3) packaging/nsis/AdditionalTasksPage.ini, packaging/nsis/common.nsh,
|
||||||
* and packaging/wix/ComponentGroups.wxi (for Windows)
|
* and packaging/wix/ComponentGroups.wxi (for Windows)
|
||||||
*
|
*
|
||||||
|
@ -368,7 +368,7 @@ static struct open_info open_info_base[] = {
|
||||||
* PacketLogger must come before MPEG, because its files
|
* PacketLogger must come before MPEG, because its files
|
||||||
* are sometimes grabbed by mpeg_open.
|
* are sometimes grabbed by mpeg_open.
|
||||||
*/
|
*/
|
||||||
{ "OS X PacketLogger", OPEN_INFO_HEURISTIC, packetlogger_open, "pklg", NULL, NULL },
|
{ "macOS PacketLogger", OPEN_INFO_HEURISTIC, packetlogger_open, "pklg", NULL, NULL },
|
||||||
/* Some MPEG files have magic numbers, others just have heuristics. */
|
/* Some MPEG files have magic numbers, others just have heuristics. */
|
||||||
{ "MPEG", OPEN_INFO_HEURISTIC, mpeg_open, "mpg;mp3", NULL, NULL },
|
{ "MPEG", OPEN_INFO_HEURISTIC, mpeg_open, "mpg;mp3", NULL, NULL },
|
||||||
{ "Daintree SNA", OPEN_INFO_HEURISTIC, daintree_sna_open, "dcf", NULL, NULL },
|
{ "Daintree SNA", OPEN_INFO_HEURISTIC, daintree_sna_open, "dcf", NULL, NULL },
|
||||||
|
@ -1477,7 +1477,7 @@ static const struct file_type_subtype_info dump_open_table_base[] = {
|
||||||
NULL, NULL, NULL },
|
NULL, NULL, NULL },
|
||||||
|
|
||||||
/* WTAP_FILE_TYPE_SUBTYPE_PACKETLOGGER */
|
/* WTAP_FILE_TYPE_SUBTYPE_PACKETLOGGER */
|
||||||
{ "OS X PacketLogger", "pklg", "pklg", NULL,
|
{ "macOS PacketLogger", "pklg", "pklg", NULL,
|
||||||
FALSE, FALSE, 0,
|
FALSE, FALSE, 0,
|
||||||
NULL, NULL, NULL },
|
NULL, NULL, NULL },
|
||||||
|
|
||||||
|
@ -2651,7 +2651,7 @@ wtap_dump_file_write(wtap_dumper *wdh, const void *buf, size_t bufsize, int *err
|
||||||
errno = WTAP_ERR_CANT_WRITE;
|
errno = WTAP_ERR_CANT_WRITE;
|
||||||
nwritten = fwrite(buf, 1, bufsize, (FILE *)wdh->fh);
|
nwritten = fwrite(buf, 1, bufsize, (FILE *)wdh->fh);
|
||||||
/*
|
/*
|
||||||
* At least according to the Mac OS X man page,
|
* At least according to the macOS man page,
|
||||||
* this can return a short count on an error.
|
* this can return a short count on an error.
|
||||||
*/
|
*/
|
||||||
if (nwritten != bufsize) {
|
if (nwritten != bufsize) {
|
||||||
|
|
|
@ -3231,7 +3231,7 @@ pcapng_write_sysdig_event_block(wtap_dumper *wdh,
|
||||||
/*
|
/*
|
||||||
* libpcap's maximum pcapng block size is currently 16MB.
|
* libpcap's maximum pcapng block size is currently 16MB.
|
||||||
*
|
*
|
||||||
* The maximum pcapng block size in OS X's private pcapng reading code
|
* The maximum pcapng block size in macOS's private pcapng reading code
|
||||||
* is 1MB. (Yes, this means that a program using the standard pcap
|
* is 1MB. (Yes, this means that a program using the standard pcap
|
||||||
* code to read pcapng files can handle bigger blocks than can programs
|
* code to read pcapng files can handle bigger blocks than can programs
|
||||||
* using the private code, such as Apple's tcpdump, can handle.)
|
* using the private code, such as Apple's tcpdump, can handle.)
|
||||||
|
|
|
@ -84,13 +84,13 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For dealing with APIs which are only deprecated in OS X (like the
|
* For dealing with APIs which are only deprecated in macOS (like the
|
||||||
* OpenSSL and MIT/Heimdal Kerberos APIs).
|
* OpenSSL and MIT/Heimdal Kerberos APIs).
|
||||||
*
|
*
|
||||||
* Dear Apple: this is a cross-platform program, and we're not
|
* Dear Apple: this is a cross-platform program, and we're not
|
||||||
* going to use your Shiny New Frameworks on OS X unless there's
|
* going to use your Shiny New Frameworks on macOS unless there's
|
||||||
* a sufficiently clear benefit to make it worth our while to have
|
* a sufficiently clear benefit to make it worth our while to have
|
||||||
* both OS X and non-OS X versions of the code.
|
* both macOS and non-macOS versions of the code.
|
||||||
*/
|
*/
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
# define USES_APPLE_DEPRECATED_API DIAG_OFF(deprecated-declarations)
|
# define USES_APPLE_DEPRECATED_API DIAG_OFF(deprecated-declarations)
|
||||||
|
|
|
@ -163,7 +163,7 @@ endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
#
|
#
|
||||||
# We assume that APPLE means OS X so that we have the OS X
|
# We assume that APPLE means macOS so that we have the macOS
|
||||||
# frameworks.
|
# frameworks.
|
||||||
#
|
#
|
||||||
FIND_LIBRARY (APPLE_CORE_FOUNDATION_LIBRARY CoreFoundation)
|
FIND_LIBRARY (APPLE_CORE_FOUNDATION_LIBRARY CoreFoundation)
|
||||||
|
|
|
@ -111,7 +111,7 @@ __private_extern__ char *__crashreporter_info__ = NULL;
|
||||||
*
|
*
|
||||||
* backtrace is reported under "Application Specific Backtrace".
|
* backtrace is reported under "Application Specific Backtrace".
|
||||||
*
|
*
|
||||||
* Dunno which versions are supported by which versions of OS X.
|
* Dunno which versions are supported by which versions of macOS.
|
||||||
*/
|
*/
|
||||||
struct crashreporter_annotations_t {
|
struct crashreporter_annotations_t {
|
||||||
uint64_t version; /* unsigned long */
|
uint64_t version; /* unsigned long */
|
||||||
|
|
|
@ -1955,7 +1955,7 @@ file_open_error_message(int err, gboolean for_writing)
|
||||||
* Either you have a fixed swap partition or a fixed swap file,
|
* Either you have a fixed swap partition or a fixed swap file,
|
||||||
* and it needs to be made bigger.
|
* and it needs to be made bigger.
|
||||||
*
|
*
|
||||||
* This is UN*X, but it's not OS X, so we assume the user is
|
* This is UN*X, but it's not macOS, so we assume the user is
|
||||||
* *somewhat* nerdy.
|
* *somewhat* nerdy.
|
||||||
*/
|
*/
|
||||||
#define ENOMEM_REASON "your system is out of swap space"
|
#define ENOMEM_REASON "your system is out of swap space"
|
||||||
|
|
|
@ -46,7 +46,7 @@ typedef void (WINAPI *nativesi_func_ptr)(LPSYSTEM_INFO);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Handles the rather elaborate process of getting OS version information
|
* Handles the rather elaborate process of getting OS version information
|
||||||
* from OS X (we want the OS X version, not the Darwin version, the latter
|
* from macOS (we want the macOS version, not the Darwin version, the latter
|
||||||
* being easy to get with uname()).
|
* being easy to get with uname()).
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_OS_X_FRAMEWORKS
|
#ifdef HAVE_OS_X_FRAMEWORKS
|
||||||
|
@ -71,7 +71,7 @@ get_string_from_dictionary(CFPropertyListRef dict, CFStringRef key)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the OS X version information, and append it to the GString.
|
* Get the macOS version information, and append it to the GString.
|
||||||
* Return TRUE if we succeed, FALSE if we fail.
|
* Return TRUE if we succeed, FALSE if we fail.
|
||||||
*/
|
*/
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -87,7 +87,7 @@ get_os_x_version_info(GString *str)
|
||||||
char *string;
|
char *string;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On OS X, report the OS X version number as the OS, and put
|
* On macOS, report the macOS version number as the OS, and put
|
||||||
* the Darwin information in parentheses.
|
* the Darwin information in parentheses.
|
||||||
*
|
*
|
||||||
* Alas, Gestalt() is deprecated in Mountain Lion, so the build
|
* Alas, Gestalt() is deprecated in Mountain Lion, so the build
|
||||||
|
@ -431,13 +431,13 @@ get_os_version_info(GString *str)
|
||||||
* On Solaris, it's some kind of build information.
|
* On Solaris, it's some kind of build information.
|
||||||
* On HP-UX, it appears to be some sort of subrevision
|
* On HP-UX, it appears to be some sort of subrevision
|
||||||
* thing.
|
* thing.
|
||||||
* On *BSD and Darwin/OS X, it's a long string giving
|
* On *BSD and Darwin/macOS, it's a long string giving
|
||||||
* a build date, config file name, etc., etc., etc..
|
* a build date, config file name, etc., etc., etc..
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_OS_X_FRAMEWORKS
|
#ifdef HAVE_OS_X_FRAMEWORKS
|
||||||
/*
|
/*
|
||||||
* On Mac OS X, report the Mac OS X version number as
|
* On macOS, report the macOS version number as the OS
|
||||||
* the OS version if we can, and put the Darwin information
|
* version if we can, and put the Darwin information
|
||||||
* in parentheses.
|
* in parentheses.
|
||||||
*/
|
*/
|
||||||
if (get_os_x_version_info(str)) {
|
if (get_os_x_version_info(str)) {
|
||||||
|
|
|
@ -246,7 +246,7 @@ relinquish_special_privs_perm(void)
|
||||||
* real and effective group and user IDs to the original
|
* real and effective group and user IDs to the original
|
||||||
* values of the real and effective group and user IDs.
|
* values of the real and effective group and user IDs.
|
||||||
* If we're not, don't bother - doing so seems to mung
|
* If we're not, don't bother - doing so seems to mung
|
||||||
* our group set, at least in OS X 10.5.
|
* our group set, at least in Mac OS X 10.5.
|
||||||
*
|
*
|
||||||
* (Set the effective UID last - that takes away our
|
* (Set the effective UID last - that takes away our
|
||||||
* rights to set anything else.)
|
* rights to set anything else.)
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
#define UTF8_RIGHTWARDS_ARROW "\xe2\x86\x92" /* 8594 / 0x2192 */
|
#define UTF8_RIGHTWARDS_ARROW "\xe2\x86\x92" /* 8594 / 0x2192 */
|
||||||
#define UTF8_LEFT_RIGHT_ARROW "\xe2\x86\x94" /* 8596 / 0x2194 */
|
#define UTF8_LEFT_RIGHT_ARROW "\xe2\x86\x94" /* 8596 / 0x2194 */
|
||||||
|
|
||||||
/* OS X command key */
|
/* macOS command key */
|
||||||
#define UTF8_PLACE_OF_INTEREST_SIGN "\xe2\x8c\x98" /* 8984 / 0x2318 */
|
#define UTF8_PLACE_OF_INTEREST_SIGN "\xe2\x8c\x98" /* 8984 / 0x2318 */
|
||||||
|
|
||||||
#define UTF8_SYMBOL_FOR_NULL "\xe2\x90\x80" /* 9216 / 0x2400 */
|
#define UTF8_SYMBOL_FOR_NULL "\xe2\x90\x80" /* 9216 / 0x2400 */
|
||||||
|
|
Loading…
Reference in New Issue