The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / version_info.c @ master

History | View | Annotate | Download (3.5 KB)

# Date Author Comment
97546165 08/24/2014 04:04 AM Graham Bloice

Modify includes of config.h so that out-of-tree builds, i.e. CMake
don't pick up the in-tree copy.

Change-Id: I7ec473876cdba1a025c52362d7f6adc62d24ce71
Reviewed-on: https://code.wireshark.org/review/3798
Petri-Dish: Graham Bloice <>...

9e6487f2 07/04/2014 03:25 AM Guy Harris

Move utility routines for capturing into a libcaputils static library.

Some of those routines are used only in dumpcap; others are used in
TShark and Wireshark as well.

Change-Id: I9d92483f2fcff57a7d8b6bf6bdf2870505d19fb7
Reviewed-on: https://code.wireshark.org/review/2841...

66b02c75 07/03/2014 11:22 AM Guy Harris

Include <sys/capaibility.h> to get _LINUX_CAPABILITY_VERSION defined.

It's no longer used in version_info.c, but is used in the main source
files of TShark and Wireshark (it's already included in dumpcap).

Change-Id: I2169a2bbed678baf26fc8711d7c13d95cce3ee2a...

f3c62edc 07/03/2014 11:10 AM Guy Harris

Move the GLib version info string stuff to get_glib_version_info().

Change-Id: I1013ad9a0a98bcbf07fe597f9e932f2ea1a5cd28
Reviewed-on: https://code.wireshark.org/review/2818
Reviewed-by: Guy Harris <>

b4ce3525 07/03/2014 04:46 AM Guy Harris

Make --help and --version information a bit more uniform.

Have --version print the version number, the copyright information, the
"compiled with" information, the "running on/with" information, and the
compiler information.

Have --help print the version number, a one-line summary of what the...

1d92195d 06/23/2014 05:56 PM Guy Harris

Have individual programs get libpcap and libz version info.

That way, the code that constructs the runtime version string doesn't
itself have to call libpcap and libz, and could be usable in programs
that don't call them.

While we're at it, add "with" to the run-time version information for...

c46329c2 06/21/2014 09:06 PM Guy Harris

Add a routine to return a version string including VCS information.

Add a routine get_ws_vcs_version_info() that, for builds from a tree
checked out from Wireshark's version control system, returns a string
that includes both the Wireshark version number and an indication of...

a70dea19 06/21/2014 05:33 PM Guy Harris

Move get_os_major_version() to wsutil and rename it to get_windows_major_version().

It's Windows-specific, so name it appropriately.

Change-Id: Ic518cbfabebf95757f6b308a4d547a6cabed6a5e
Reviewed-on: https://code.wireshark.org/review/2528
Reviewed-by: Guy Harris <>

73c7addf 06/21/2014 04:31 PM Guy Harris

Move the routine to get memory information to wsutil.

Change-Id: I94717cec5a464166585b258a83f8ccdaccf8d5ff
Reviewed-on: https://code.wireshark.org/review/2525
Reviewed-by: Guy Harris <>

00f23a4f 06/21/2014 04:21 PM Guy Harris

Move the routine to get a CPU information string to wsutil.

Change-Id: Ibf6e57d7382cbbd831a0367fd48d684118712408
Reviewed-on: https://code.wireshark.org/review/2523
Reviewed-by: Guy Harris <>

d99d1b90 06/21/2014 03:35 PM Guy Harris

Add a get_compiler_info() routine in libwsutil to get compiler information.

Change-Id: I8ccb6187f2ee0255460f448aee170768b6fa3f5d
Reviewed-on: https://code.wireshark.org/review/2519
Reviewed-by: Guy Harris <>

e5abf34f 06/21/2014 03:09 PM Guy Harris

Is <stdio.h> necessary here?

Change-Id: Ibfe4fa8b2c1f092781c4137cde7febe2d6f49e81
Reviewed-on: https://code.wireshark.org/review/2518
Reviewed-by: Guy Harris <>

a1112249 06/21/2014 02:02 PM Guy Harris

Move get_os_version_info() to libwsutil.

This mean we also have to move CFString_to_C_string() there for OS X.

Change-Id: Ic91ad872e9d5290cf34f842503ededd5452e4337
Reviewed-on: https://code.wireshark.org/review/2511
Reviewed-by: Guy Harris <>

43443af0 06/21/2014 01:33 PM Guy Harris

Move get_copyright_info() to wsutil.

Change-Id: I75c1c747cd2b4a9845c659636582d54b2caecf1a
Reviewed-on: https://code.wireshark.org/review/2510
Reviewed-by: Guy Harris <>

45712833 06/10/2014 04:12 AM Jakub Zawadzki

CPUID improvements

- Make ws_cpuid() return boolean when CPUID is support or no, this way
it's easier for caller to determinate if it works (and can use cpuinfo[X] or no).

- Add function ws_cpuid_sse42(), use it in ws_mempbrk() [cached] &
version information....

53154166 05/31/2014 09:01 AM Jakub Zawadzki

Move cpuid to seperate header file.

It'll be later used also for detecting sse4.2

Change-Id: I1930abb29026b455d453a79b5f301cdf37585160
Reviewed-on: https://code.wireshark.org/review/1803
Reviewed-by: Michael Mann <>

29659139 03/04/2014 09:27 AM Alexis La Goutte

Remove all $Id$ from top of file

(Using sed : sed -i '/^ \* \$Id\$/,+1 d')

Fix manually some typo (in export_object_dicom.c and crc16-plain.c)

Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8
Reviewed-on: https://code.wireshark.org/review/497
Reviewed-by: Anders Broman <>

f9669809 02/07/2014 06:03 PM Gerald Combs

Replace "svn" with "git" all over the place.

Rename "SVNPATH" to "GITBRANCH" since that seems more appropriate.
Rename "svnversion.h" to "version.h" as Evan suggested. Update some
URLs. In make-version.pl, make sure we don't set an improper upstream
branch name. Use the number of commits + short hash from `git describe`...

ddda691c 01/01/2014 07:20 AM Stig Bjørlykke

Happy new year!

svn path=/trunk/; revision=54529

2f78757f 11/01/2013 09:12 PM Guy Harris

libcap is UN*X-only; libnl is Linux-only.

svn path=/trunk/; revision=53039

5e641a63 09/30/2013 04:14 PM Pascal Quantin

Add identification of Windows 8.1 / Windows Server 2012 R2

svn path=/trunk/; revision=52305

2b3b994b 06/20/2013 05:10 PM Alexis La Goutte

Fix indent (use Tabs)

svn path=/trunk/; revision=50088

874ff29b 06/20/2013 05:10 PM Alexis La Goutte

Fix warning about CPUInfo in Linux (when use qmake to build qtshark)

../../version_info.c: In function 'get_cpu_info':
../../version_info.c:662:5: warning: pointer targets in passing argument 1 of 'do_cpuid' differ in signedness [-Wpointer-sign]
../../version_info.c:622:1: note: expected 'guint32 *' but argument is of type 'int *'...

114657b0 06/17/2013 03:20 AM Stig Bjørlykke

Added a missing CFRelease.

svn path=/trunk/; revision=49976

7a915841 03/24/2013 02:22 PM Guy Harris

Replace implicit conversions with explicit casts.

svn path=/trunk/; revision=48534

ef07303c 03/21/2013 05:58 PM Anders Broman

Make internal functions static.

svn path=/trunk/; revision=48465

7ffa55c8 02/08/2013 09:51 AM Anders Broman

Try using cpuid also for x86_64 if compiled with GCC.

svn path=/trunk/; revision=47567

79eb789b 02/04/2013 11:35 AM Pascal Quantin

Fix warning: unused parameter ‘str’ when compiling on a non Windows machine

svn path=/trunk/; revision=47466

3b1bf703 02/04/2013 10:29 AM Anders Broman

Add CPUBrandString and memory size to VersionInfo on windows if available.

svn path=/trunk/; revision=47465

46b0d0f4 01/01/2013 09:20 AM Pascal Quantin

Welcome in 2013

svn path=/trunk/; revision=46882

dad3ca30 01/01/2013 09:20 AM Pascal Quantin

Add detection of Windows 8 and Windows Server 2012

svn path=/trunk/; revision=46881

bd976ae6 11/22/2012 01:02 AM Guy Harris

On UN*X, if an interface has a description, use it as the "friendly
name". If it doesn't have a description, on OS X, use the System
Configuration framework to attempt to get a "friendly name" for
interfaces.

If a loopback device doesn't have a friendly name, give it "Loopback" as...

e395a29a 09/25/2012 11:27 AM Gerald Combs

Fix compilation warnings.

svn path=/trunk/; revision=45133

3551a86c 09/19/2012 09:29 PM Jeff Morriss

We always HAVE_CONFIG_H so don't bother checking whether we have it or not.

svn path=/trunk/; revision=45015

b5d61604 09/19/2012 06:41 PM Guy Harris

Try ServerVersion.plist first, and use ProductName as the OS name; that
means we report the server as such (and means that if Apple calls it
Shiny Happy Puppy X in the future, we'll report it as such...).

svn path=/trunk/; revision=45013

f5428edd 09/08/2012 03:57 AM Guy Harris

OK, fine, g_malloc() and g_free(). We really should be using
g_try_free(), because, trust me, we can handle allocation failures
here.

svn path=/trunk/; revision=44813

001dbcfc 09/08/2012 03:46 AM Guy Harris

We no longer use Gestalt(), so there's no need to check for it.

We do, however, use CFPropertyListCreateWithStream(), so we need to
check for it, and, if we're able to use the OS X frameworks at all, use
CFPropertyListCreateFromStream() if we don't have...

50351aa1 09/08/2012 03:04 AM Guy Harris

Mountain Lion marks Gestalt() as deprecated, which causes the build to
fail on Mountain Lion with the default -W flags, but no replacement API
was specified. Fall back on dredging information out of
/System/Library/CoreServices/SystemVersion.plist; this also lets us get...

efe4dd96 07/05/2012 03:10 PM Jeff Morriss

List whether we were compiled with LIBNL or not (including which major
version).

svn path=/trunk/; revision=43574

bf81b42e 06/28/2012 06:56 PM Jakub Zawadzki

Update Free Software Foundation address.

(COPYING will be updated in next commit)

svn path=/trunk/; revision=43536

29a14da1 02/20/2012 04:17 PM Anders Broman

Jose Pedro Oliveira: get_os_version_info() is more apropriate for shb_os

svn path=/trunk/; revision=41086

92528dad 01/01/2012 05:02 AM Stig Bjørlykke

Happy New Year!

svn path=/trunk/; revision=40353

7d442f4c 11/07/2011 06:42 PM Gerald Combs

Change the use of threads from "mostly always, depending on your
configure options and Gtk+ and GLib versions" to "always".

svn path=/trunk/; revision=39751

78112980 09/21/2011 01:49 PM Bill Meier

Fix ex "modeline" so it works;
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748

svn path=/trunk/; revision=39081

12074249 09/02/2011 07:20 PM Guy Harris

Update some comments, including a new URL, and add an additional
comment.

svn path=/trunk/; revision=38874

5603cef9 08/23/2011 05:25 AM Stig Bjørlykke

Remove support for libpcre, we use GRegex in GLib.

svn path=/trunk/; revision=38683

76d03b5b 07/16/2011 08:19 AM Michael Tüxen

Provide information regarding thred support.

svn path=/trunk/; revision=38058

5467d67f 07/11/2011 03:15 PM Gerald Combs

In version_info.c, assume we always have the "matches" operator. In
capture_opts.c, assume our output filename has been passed through
arg_list_utf_16to8().

svn path=/trunk/; revision=37974

e015eca9 06/29/2011 04:05 AM Stig Bjørlykke

Show locale in version info (if !win32).
This may help us identifying bugs related to locale.

svn path=/trunk/; revision=37829

8443bbbf 06/28/2011 05:00 AM Stig Bjørlykke

Replace all strerror() with g_strerror().
Remove our local strerror implementation.
Mark strerror as locale unsafe API.

This fixes bug 5715.

svn path=/trunk/; revision=37812

317cb92f 06/10/2011 10:35 PM Guy Harris

The "shared by every program in the Wireshark suite, including dumpcap"
version information doesn't include Python version information (only
programs using libwireshark have that) or GeoIP version information
(ditto). Don't include headers required only for that information;...

00ac593f 05/23/2011 12:09 PM Bill Meier

(Trivial) Testing _MSC_FULL_VER can be done at compile time.

svn path=/trunk/; revision=37366

ba48c506 01/16/2011 06:04 PM Bill Meier

Fix a Windows compiler warning;
Minor whitespace cleanup.

svn path=/trunk/; revision=35563

388453b7 01/01/2011 07:23 AM Stig Bjørlykke

New Year.

svn path=/trunk/; revision=35322

9e5dc7e4 12/01/2010 11:39 AM Stephen Fisher

Fix bug #5453 "Help->About Wireshark mis-reports OS" (again) without the help of MSDN code fragments.

svn path=/trunk/; revision=35090

283e7471 11/30/2010 07:42 PM Stephen Fisher

Back out r35084 since it contains code fragments from MSDN, which are covered
under the "Microsoft Limited Public License" apparently.

svn path=/trunk/; revision=35085

7ba78f68 11/30/2010 06:42 PM Stephen Fisher

Fix bug #5453: Use GetSystemNativeInfo() function if found on the machine running Wireshark instead of GetSystemInfo(), so that we obtain the machine's actual architecture even when running under WOW64 x86 emulation.

svn path=/trunk/; revision=35084

2cedc698 10/21/2010 03:13 AM Stig Bjørlykke

Fixed "Compiled with" information in the About box.

svn path=/trunk/; revision=34601

afd6761f 08/31/2010 02:28 PM Stig Bjørlykke

A GString has it's own length.

svn path=/trunk/; revision=34034

04cf498c 07/15/2010 06:31 PM Guy Harris

More information on getting the distribution name and release.

svn path=/trunk/; revision=33545

96e8176a 07/15/2010 04:59 PM Guy Harris

More details on getting the distribution name and version on Linux.

svn path=/trunk/; revision=33543

d9b1e79b 07/15/2010 04:55 PM Guy Harris

On OS X, give the OS version as

Mac OS X 10.x.y (Darwin a.b.c)

rather than as

Darwin a.b.c (Mac OS X 10.x.y)

and also note that, on Linux, the lsb_release command might be able to
give you the distribution name and version.

svn path=/trunk/; revision=33542

a2d9316f 07/15/2010 05:04 AM Guy Harris

Don't include headers we don't need (they might be generating external
references to functions in libraries with which we're not necessarily
being linked).

svn path=/trunk/; revision=33535

cc3540b0 07/14/2010 10:07 PM Guy Harris

Move the code to get version information for libraries used by
libwireshark into libwireshark, and call it only in programs linked with
libwireshark. That way, programs that don't link with libwireshark
don't have to link with libgcrypt or libgnutls solely so that they can...

36623bcb 05/24/2010 08:35 PM Guy Harris

From H.sivank: GtkOSXApplication support.

Call the various flavors of OS X integration just "OS X integration",
not anything with "IGE" in it - it appears that, in some places,
"ige-mac-integration" refers only to the older Carbon-based functions,
although the library still appears to be called -ligemacintegration....

0c40b925 05/19/2010 07:39 PM Guy Harris

Detect clang and llvm-gcc.

svn path=/trunk/; revision=32905

e309a6ad 05/15/2010 05:38 PM Jörg Mayer

Bruno Matos <>

In version_info.c file, if we put the Python include in first place we
remove the warning/error "_POSIX_C_SOURCE redefined", as in this article:
http://bytes.com/topic/python/answers/30009-warning-_posix_c_source-redefined...

d83b07c8 04/23/2010 10:04 PM Jeff Morriss

Tell, in the version info, if we were compiled 32- or 64-bit.

svn path=/trunk/; revision=32548

534dfde6 04/19/2010 02:39 AM Stig Bjørlykke

Disable usage of zlibVersion() on win32.

svn path=/trunk/; revision=32511

8bd4f613 04/17/2010 06:22 AM Stig Bjørlykke

From Richard Brodie via bug 4606:
Display runtime version for libz, as well as build version.

svn path=/trunk/; revision=32502

8c3069ea 01/01/2010 07:15 AM Stig Bjørlykke

Happy New Year!

svn path=/trunk/; revision=31396

8fc1491a 12/21/2009 04:06 PM Gerald Combs

Switch to using a bundled version of the openSUSE Build Service packages
for GNUTLS since they provide 32-bit and 64-bit Windows packages. We no
longer have winposixtype.h, so remove its #includes and add a ssize_t
typedef to config.h.win32.

svn path=/trunk/; revision=31341

7c0dc5d7 12/17/2009 08:15 PM Gerald Combs

If we don't have PCRE and we do have GLib >= 2.14, use GRegexes for the
"matches" operator.

svn path=/trunk/; revision=31302

33026319 09/16/2009 10:02 PM Guy Harris

Fix typo in comment.

svn path=/trunk/; revision=29955

e9b9b83b 09/16/2009 07:24 PM Bill Meier

Fix a typo.

svn path=/trunk/; revision=29951

bfd830ac 09/16/2009 07:13 PM Bill Meier

Add info as to 32/64 bit and also if "Windows 7" to runtime version info.

svn path=/trunk/; revision=29950

1e93d53b 07/22/2009 07:59 PM Gerald Combs

Use "svn info" to fetch the version by default. Fetch the repository path as
well. Add the repository path to the version strings.

svn path=/trunk/; revision=29171

9a372f68 05/31/2009 12:05 PM Stig Bjørlykke

From Kovarththanan Rajaratnam's patch in bug 3500:
Added info about python version.

svn path=/trunk/; revision=28543

bac80847 04/01/2009 12:01 AM Guy Harris

The second argument to Gestalt() is an SInt32, which, for backwards
compatibility reasons, is a long rather than an int in ILP32 mode
(probably dating back to the old 68000 days, when 32-bit arithmetic was
slower than 16-bit arithmetic, so an int was 16 bits and a long 32 bits...

e22d7c79 01/08/2009 08:24 AM Tomas Kukosa

display runtime versions of GnuTLS and Gcrypt libraries

svn path=/trunk/; revision=27194

60c6bbcd 01/08/2009 02:28 AM Jaap Keuter

We had a roll-over of the calendar thingy.

svn path=/trunk/; revision=27190

d2aa3472 12/30/2008 02:17 PM Gerald Combs

Check in a modified version of Jaap's patch in bug 3162. This should fix
compilation under Visual C++ 6.0.

svn path=/trunk/; revision=27136

7d22c0fb 12/19/2008 06:49 PM Gerald Combs

Rename geoip.[ch] to geoip_db.[ch] so we don't collide with GeoIP.h. Rename
some functions to match.

Add GeoIP lookups to the IP dissector. Add a preference for GeoIP lookups,
which is disabled by default.

svn path=/trunk/; revision=27063

097002bb 12/12/2008 07:02 PM Stig Bjørlykke

Detect Windows Server 2008 in the runtime version info.

svn path=/trunk/; revision=26979

0470fff9 10/27/2008 02:01 PM Stig Bjørlykke

Added info about GeoIP. Only dump info about ADNS if without c-ares.

svn path=/trunk/; revision=26578

afd85795 09/02/2008 07:17 AM Bill Meier

Fix a few Emacs "file variables" to have "safe" values.
That is: indent-tabs-mode: tabs --> indent-tabs-mode: t
Also: fix a typo: set-tabs-mode --> indent-tabs-mode

svn path=/trunk/; revision=26113

bee3c109 08/22/2008 09:40 PM Guy Harris

Fix a typo in a comment.

svn path=/trunk/; revision=26061

6bea15f3 08/12/2008 06:34 AM Stig Bjørlykke

Added c-ares version string.

svn path=/trunk/; revision=25988

021a9267 08/07/2008 05:41 PM Gerald Combs

Add support for the c-ares asynchronous DNS resolution library to the
Windows build. Add support for async IPv6 lookups. Update the ADNS
code slightly.

This is not supported (yet) on the UNIX side.

svn path=/trunk/; revision=25953

83f9ecf9 06/30/2008 01:16 PM Jeff Morriss

Move privileges.c and unicode-utils.c from epan to wsutil (so things like
capinfos and dumpcap don't need to depend on libwireshark nor directly pull
in those modules). Because capinfos and editcap were only being linked with
privileges.c if we had plugins, this allows those programs to be linked when...

3d39efc2 05/07/2008 01:26 AM Anders Broman

Fix some of the Errors/warnings detected by checkapi.

svn path=/trunk/; revision=25248

3b5f1bce 03/05/2008 04:59 AM Stig Bjørlykke

Don't add newline before LIBCAP, as this is done correct in end_string().

svn path=/trunk/; revision=24563

626cd5ef 03/04/2008 06:57 PM Gerald Combs

Add a POSIX capabilities blurb to get_compiled_version_info().

svn path=/trunk/; revision=24561

5b874229 01/15/2008 09:34 AM Stig Bjørlykke

Bump date

svn path=/trunk/; revision=24096

99d60cce 11/30/2007 05:01 PM Ulf Lamping

first steps to support MSVC 2008 Express Edition

svn path=/trunk/; revision=23691

432aa178 11/09/2007 07:57 PM Stephen Fisher

Add MacOS X version next to the Darwin version in version outputs.

svn path=/trunk/; revision=23418

ea22a35a 09/28/2007 08:58 PM Guy Harris

We don't use NetSNMP any more.

svn path=/trunk/; revision=23021

d2d4fcd9 09/14/2007 08:18 PM Gerald Combs

Add routines under Windows to check if npf.sys is running, and to
fetch the major OS version. If we're running Windows >= 6 (Vista)
and npf.sys isn't running, warn the user in Wireshark and TShark.
Add a recent prefs item to disable the warning in Wireshark....

088ba701 08/26/2007 05:35 PM Luis Ontanon

libsmi was missing from the CFLAGS

svn path=/trunk/; revision=22676

6c7f768c 08/26/2007 05:19 PM Anders Broman

Fix a typo

svn path=/trunk/; revision=22675