Jeff Morriss
99050171cb
Keep checkAPIs happy (even though it's just test code). Get that test code
...
compiling again (warning free).
Fix the checkapi target in automake.
svn path=/trunk/; revision=51114
2013-08-02 02:34:13 +00:00
Jeff Morriss
2b69003dc0
Link wsutil with gnutls on Windows too.
...
svn path=/trunk/; revision=51109
2013-08-02 01:11:08 +00:00
Jeff Morriss
95b4443aeb
LIBGCRYPT_CFLAGS is not set in Windows builds, use GNUTLS_CFLAGS instead.
...
svn path=/trunk/; revision=51108
2013-08-02 00:52:13 +00:00
Jeff Morriss
1248db2ad6
pint.h is in wsutil now.
...
svn path=/trunk/; revision=51107
2013-08-02 00:31:37 +00:00
Jeff Morriss
9d0bcc9d09
Include LIBGCRYPT_CFLAGS in wsutil (but not in epan/crypt).
...
svn path=/trunk/; revision=51103
2013-08-01 23:56:09 +00:00
Jeff Morriss
2df54da6e2
Move a bunch of the crypt modules and pint.h into wsutil.
...
This means wsutil now links against libcrypt.
Protect a bunch of the crypt header files from multiple inclusion.
svn path=/trunk/; revision=51100
2013-08-01 23:34:47 +00:00
Jörg Mayer
f833e8e59d
Looks like building with -Werror in wsutil was forgotten with
...
cmake.
svn path=/trunk/; revision=50788
2013-07-22 14:43:17 +00:00
Martin Kaiser
b8cc7b5239
make getopt_long() available on systems that don't have it natively
...
svn path=/trunk/; revision=50677
2013-07-16 20:15:02 +00:00
Jeff Morriss
56735f8c16
Move u3.{h,c} and g711.{h,c} into wsutil.
...
Project g711.h against multiple inclusion and add C++ compatibility wrapper.
svn path=/trunk/; revision=50654
2013-07-16 02:04:55 +00:00
Jeff Morriss
2d30d5beb1
Move strnatcmp.{h,c} from epan into wsutil: there's nothing epan-specific
...
there and moving it avoids having to recompile the file for use in editcap
and mergecap (which don't link against libwireshark).
svn path=/trunk/; revision=50650
2013-07-16 01:16:50 +00:00
Jeff Morriss
a8ad045a77
Add report_err.c to cmake build.
...
svn path=/trunk/; revision=50600
2013-07-15 03:12:02 +00:00
Jeff Morriss
54bb2e7a5c
Move report_err.{h,c} from epan into wsutil: there's nothing epan-specific there and moving it avoids having to recompile the file for use in editcap and capinfos (which don't link against libwireshark).
...
svn path=/trunk/; revision=50598
2013-07-15 02:48:26 +00:00
Bill Meier
828d4e89f6
Define certain 'const char *...' arrays as static.
...
(That is: Don't create the array on the stack each time
the function is called).
Reduces code memory usage and execution time.
(See SVN #50271 )
svn path=/trunk/; revision=50300
2013-07-01 15:41:05 +00:00
Michael Mann
6e1f213fca
openSAFETY: CRC Maintenance, new CRC, new expert interface implemented. Bug 8847 ( https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8847 )
...
From Roland Knall
svn path=/trunk/; revision=50166
2013-06-26 12:11:08 +00:00
Jeff Morriss
bbf6a3766e
Move tempfile.{h,c} into wsutil.
...
svn path=/trunk/; revision=50163
2013-06-26 01:14:35 +00:00
Jeff Morriss
74dc568ef1
As pointed out by Guy: timestats uses packet_info so it belongs in epan
...
not wsutil.
svn path=/trunk/; revision=50159
2013-06-26 00:18:44 +00:00
Jeff Morriss
a441793cba
Move a couple of time-related modules into wsutil.
...
A bunch of files didn't really need to include these header files so remove
the include line rather than changing it.
svn path=/trunk/; revision=50154
2013-06-25 22:02:20 +00:00
Chris Maynard
ce088c334d
makefile.nmake -> Makefile.nmake and minor whitespace (spaces -> tabs) changes.
...
svn path=/trunk/; revision=50140
2013-06-25 15:32:49 +00:00
Evan Huus
6c65dd2b30
Add a few of our headers to code generated by pycrc (their faq says we can do
...
basically whatever we want with it, and this cleans up a couple of licensecheck
errors).
Fix FSF address in one dissector.
svn path=/trunk/; revision=50080
2013-06-20 16:54:13 +00:00
Jeff Morriss
8e7abd9871
From Anders:
...
Check Header CRC of SYNC protocol.
svn path=/trunk/; revision=50062
2013-06-19 22:28:58 +00:00
Guy Harris
4422348ebc
Add some comments to #else and #endif to make it clearer what's going
...
on.
svn path=/trunk/; revision=49223
2013-05-10 02:41:22 +00:00
Jörg Mayer
7e51c9713b
dumpabi: This would create the directories in the sourcedir instead
...
of the binary dir. Fixed that.
NOTE: It fails with and without this patch for out of tree builds:
jmayer@egg:~/work/wireshark/svn/build/qt-gtk3> make dumpabi
[ 1%] Built target wsutil
[ 1%] Generating libwsutil.abi.tar.gz
ERROR: can't find modules
cp: cannot stat `abi_dumps/libwsutil/libwsutil_*': No such file or directory
make[3]: *** [wsutil/libwsutil.abi.tar.gz] Error 1
make[2]: *** [wsutil/CMakeFiles/dumpabi-libwsutil.dir/all] Error 2
make[1]: *** [CMakeFiles/dumpabi.dir/rule] Error 2
make: *** [dumpabi] Error 2
jmayer@egg:~/work/wireshark/svn/build/qt-gtk3>
svn path=/trunk/; revision=49014
2013-04-24 12:57:56 +00:00
Evan Huus
d0bd2097f0
Fix another dozen or so files with bad FSF addresses as caught by licensecheck.
...
svn path=/trunk/; revision=48869
2013-04-16 00:00:09 +00:00
Gerald Combs
e96673d549
Add links to Google Breakpad and other possible solutions.
...
svn path=/trunk/; revision=48863
2013-04-15 23:02:34 +00:00
Guy Harris
b6ee206d2f
Distribute CMakeLists.txt.
...
svn path=/trunk/; revision=48716
2013-04-03 07:38:44 +00:00
Stig Bjørlykke
ca5516c665
Use pragma diagnostic also when compiling with clang.
...
svn path=/trunk/; revision=48295
2013-03-14 08:42:51 +00:00
Jaap Keuter
827eb58b04
From David Arnold:
...
Replace use of INCLUDES with AM_CPPFLAGS in all Makefiles to placate recent autotools.
svn path=/trunk/; revision=48261
2013-03-12 06:53:39 +00:00
Gerald Combs
a79e5d5b94
Check to see if GLib's printf routines support the X/Open / POSIX
...
thousands grouping (') flag and use it in format_size if it's available.
As far as I can tell this translates to "everywhere except Windows and
OpenBSD". According to the various build logs at
https://build.opensuse.org/package/show?package=mingw32-glib2&project=windows%3Amingw%3Awin32
the OBS GLib packages enable GLib's internal printf implementation from
Gnulib which means we *should* be able to enable this on Windows.
Unfortunately this doesn't appear to be the case.
svn path=/trunk/; revision=48042
2013-03-03 19:34:58 +00:00
Anders Broman
85973068cc
From beroset:
...
remove C++ incompatibilities
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416
svn path=/trunk/; revision=48038
2013-03-03 17:14:19 +00:00
Balint Reczey
1ebdb2e521
Export libwireshark symbols using WS_DLL_PUBLIC define
...
Also remove old WS_VAR_IMPORT define and related Makefile magic
everywhere in the project.
svn path=/trunk/; revision=47992
2013-03-01 23:53:11 +00:00
Jeff Morriss
98ea7d3a8d
From Anders: revert r47934: it doesn't work everywhere.
...
See email discussion on -dev.
svn path=/trunk/; revision=47940
2013-02-28 15:16:46 +00:00
Balint Reczey
45c2884f1b
Export libwsutil symbols using WS_DLL_PUBLIC define
...
This change replaces *.def and *.sym file usage following the
guideline at http://gcc.gnu.org/wiki/Visibility
svn path=/trunk/; revision=47938
2013-02-28 14:09:46 +00:00
Gerald Combs
2f47e63a88
str_util.c: Although the glib documentation doesn't explicitly say so,
...
it looks like the thousands grouping (') modifier is supported so use it
in format_size.
capinfos.c: Set our locale.
svn path=/trunk/; revision=47934
2013-02-28 04:44:38 +00:00
Gerald Combs
0645396514
Print human-readable statistics by default. Raw values can be printed
...
using "-M". Based on a suggestion by Hansang Bae.
svn path=/trunk/; revision=47900
2013-02-26 06:40:25 +00:00
Balint Reczey
82843905c5
ABI dumps don't have to depend on config.h directly
...
They depend on libs which need config.h already.
svn path=/trunk/; revision=47883
2013-02-25 21:27:07 +00:00
Balint Reczey
d2e0724afc
Add dumpabi targets to CMake builds
...
Also update automake generated targets to match CMake generated ones
svn path=/trunk/; revision=47879
2013-02-25 18:12:20 +00:00
Balint Reczey
e1d24fdb49
Generate abi-descriptor.xml-s in CMake builds
...
svn path=/trunk/; revision=47865
2013-02-24 21:14:17 +00:00
Balint Reczey
7f0ee327ca
Set library versions in CMake builds
...
svn path=/trunk/; revision=47848
2013-02-23 22:54:36 +00:00
Martin Kaiser
b057717767
use pragma GCC diagnostic to work around gcrypt.h warnings
...
distinguish between different gcc versions
this should allow a clean build with libgcrypt 1.5.0
svn path=/trunk/; revision=47803
2013-02-21 18:40:48 +00:00
Martin Kaiser
7126d3a56b
add wsutil/wsgcrypt.h as a wrapper around libgcrypt's gcrypt.h
...
(not used for now)
svn path=/trunk/; revision=47801
2013-02-21 18:09:18 +00:00
Gerald Combs
3ba2c108f1
As http://www.jrsoftware.org/iskb.php?mutexsessions points out, a session
...
mutex may not be visible to other sessions and we may not be able to
create a global mutex. Try to create both, and make each one accessible
to all users. Update the NSIS installer to check for both global and
session mutexes.
svn path=/trunk/; revision=47773
2013-02-20 19:58:55 +00:00
Gerald Combs
8f478c5c44
Exclude create_app_running_mutex.
...
svn path=/trunk/; revision=47762
2013-02-20 03:01:12 +00:00
Gerald Combs
bd4cffae58
When any of our executables start on Windows create or open a "Wireshark
...
is running" mutex. Have the NSIS installer check for this mutex and ask
the user to close Wireshark if it's found. While not perfect this makes
the WinSparkle update process much less annoying.
svn path=/trunk/; revision=47758
2013-02-20 01:19:42 +00:00
Gerald Combs
ec880b7db3
Use readlink instead of ls.
...
svn path=/trunk/; revision=47338
2013-01-29 01:06:24 +00:00
Balint Reczey
c6f9d4c131
make dumpabi target build with multiple digits in library version numbers
...
svn path=/trunk/; revision=47329
2013-01-28 21:45:44 +00:00
Guy Harris
e787c3434e
Get rid of C++ comments from the CUPS code.
...
svn path=/trunk/; revision=47111
2013-01-16 03:56:36 +00:00
Guy Harris
9936b9764a
Add crash_info.c
...
svn path=/trunk/; revision=47107
2013-01-15 23:37:47 +00:00
Guy Harris
111f8ea2bb
Use GLib "return an allocated string generated by printf-style
...
formatting" routines and the corresponding deallocate routines.
svn path=/trunk/; revision=47106
2013-01-15 23:36:48 +00:00
Guy Harris
92b524bb1c
I must haz config.h (to define _U_, if nothing else).
...
svn path=/trunk/; revision=47105
2013-01-15 22:22:44 +00:00
Guy Harris
05825b02cd
Add some routines to wsutil to, at least on some platforms, add
...
information to crash dumps and the like. (Currently, we only handle OS
X's CrashReporter, but we should do this on other platforms where this
information can be added and would be helpful.)
White space tweaks.
svn path=/trunk/; revision=47104
2013-01-15 21:54:41 +00:00