aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
AgeCommit message (Collapse)AuthorFilesLines
2013-06-26openSAFETY: CRC Maintenance, new CRC, new expert interface implemented. Bug ↵Michael Mann2-0/+50
8847 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8847) From Roland Knall svn path=/trunk/; revision=50166
2013-06-26Move tempfile.{h,c} into wsutil.Jeff Morriss4-0/+348
svn path=/trunk/; revision=50163
2013-06-26As pointed out by Guy: timestats uses packet_info so it belongs in epanJeff Morriss4-149/+0
not wsutil. svn path=/trunk/; revision=50159
2013-06-25Move a couple of time-related modules into wsutil.Jeff Morriss6-0/+469
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-25makefile.nmake -> Makefile.nmake and minor whitespace (spaces -> tabs) changes.Chris Maynard1-1/+1
svn path=/trunk/; revision=50140
2013-06-20Add a few of our headers to code generated by pycrc (their faq says we can doEvan Huus3-0/+75
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-19From Anders:Jeff Morriss2-4/+1056
Check Header CRC of SYNC protocol. svn path=/trunk/; revision=50062
2013-05-10Add some comments to #else and #endif to make it clearer what's goingGuy Harris1-3/+3
on. svn path=/trunk/; revision=49223
2013-04-24dumpabi: This would create the directories in the sourcedir insteadJörg Mayer1-1/+1
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-16Fix another dozen or so files with bad FSF addresses as caught by licensecheck.Evan Huus5-12/+12
svn path=/trunk/; revision=48869
2013-04-15Add links to Google Breakpad and other possible solutions.Gerald Combs1-0/+6
svn path=/trunk/; revision=48863
2013-04-03Distribute CMakeLists.txt.Guy Harris1-0/+1
svn path=/trunk/; revision=48716
2013-03-14Use pragma diagnostic also when compiling with clang.Stig Bjørlykke1-0/+11
svn path=/trunk/; revision=48295
2013-03-12From David Arnold:Jaap Keuter1-1/+1
Replace use of INCLUDES with AM_CPPFLAGS in all Makefiles to placate recent autotools. svn path=/trunk/; revision=48261
2013-03-03Check to see if GLib's printf routines support the X/Open / POSIXGerald Combs1-5/+11
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-03From beroset:Anders Broman1-2/+2
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48038
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey15-82/+40
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2013-02-28From Anders: revert r47934: it doesn't work everywhere.Jeff Morriss1-5/+5
See email discussion on -dev. svn path=/trunk/; revision=47940
2013-02-28Export libwsutil symbols using WS_DLL_PUBLIC defineBalint Reczey24-156/+123
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-28str_util.c: Although the glib documentation doesn't explicitly say so,Gerald Combs1-5/+5
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-26Print human-readable statistics by default. Raw values can be printedGerald Combs2-1/+4
using "-M". Based on a suggestion by Hansang Bae. svn path=/trunk/; revision=47900
2013-02-25ABI dumps don't have to depend on config.h directlyBalint Reczey1-1/+1
They depend on libs which need config.h already. svn path=/trunk/; revision=47883
2013-02-25Add dumpabi targets to CMake buildsBalint Reczey2-2/+23
Also update automake generated targets to match CMake generated ones svn path=/trunk/; revision=47879
2013-02-24Generate abi-descriptor.xml-s in CMake buildsBalint Reczey1-0/+7
svn path=/trunk/; revision=47865
2013-02-23Set library versions in CMake buildsBalint Reczey1-0/+1
svn path=/trunk/; revision=47848
2013-02-21use pragma GCC diagnostic to work around gcrypt.h warningsMartin Kaiser1-0/+34
distinguish between different gcc versions this should allow a clean build with libgcrypt 1.5.0 svn path=/trunk/; revision=47803
2013-02-21add wsutil/wsgcrypt.h as a wrapper around libgcrypt's gcrypt.hMartin Kaiser2-1/+37
(not used for now) svn path=/trunk/; revision=47801
2013-02-20As http://www.jrsoftware.org/iskb.php?mutexsessions points out, a sessionGerald Combs1-1/+23
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-20Exclude create_app_running_mutex.Gerald Combs1-1/+1
svn path=/trunk/; revision=47762
2013-02-20When any of our executables start on Windows create or open a "WiresharkGerald Combs3-0/+15
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-01-29Use readlink instead of ls.Gerald Combs1-1/+1
svn path=/trunk/; revision=47338
2013-01-28make dumpabi target build with multiple digits in library version numbersBalint Reczey1-1/+1
svn path=/trunk/; revision=47329
2013-01-16Get rid of C++ comments from the CUPS code.Guy Harris1-7/+7
svn path=/trunk/; revision=47111
2013-01-15Add crash_info.cGuy Harris1-0/+1
svn path=/trunk/; revision=47107
2013-01-15Use GLib "return an allocated string generated by printf-styleGuy Harris1-4/+4
formatting" routines and the corresponding deallocate routines. svn path=/trunk/; revision=47106
2013-01-15I must haz config.h (to define _U_, if nothing else).Guy Harris1-0/+2
svn path=/trunk/; revision=47105
2013-01-15Add some routines to wsutil to, at least on some platforms, addGuy Harris4-0/+210
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-04replace "unsigned" datatype with "guint". Some mpeg files needed "unsigned ↵Michael Mann2-21/+21
int" instead. bugs 7825-7827 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7825) svn path=/trunk/; revision=46928
2012-12-26Squash some sign-conversion warnings that g++ picks up but gcc doesEvan Huus2-2/+2
not. QtShark now builds warning-free (for me at least). svn path=/trunk/; revision=46786
2012-12-26Fix a bunch of warnings.Guy Harris2-2/+2
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-12-21Include <wsutil/crc11.h> so that we check whether the prototypes thereinGuy Harris1-0/+2
match the actual function types here. svn path=/trunk/; revision=46648
2012-12-21Squelch some cast-discard warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=46647
2012-12-20fclose() and fflush() are standard C routines, so there's no need forGuy Harris1-4/+0
our own wrappers. (pcapio.c isn't using wrappers around, for example, fwrite().) svn path=/trunk/; revision=46640
2012-12-20Add ws_fclose(), ws_fflush(), and ws_fdopen() to the fileutils.Michael Tüxen1-0/+6
Retire libpcap_fdopen(), libpcap_dump_flush(), and libpcap_dump_close(). svn path=/trunk/; revision=46636
2012-11-05try to fix Id.Anders Broman1-1/+1
svn path=/trunk/; revision=45922
2012-10-19The file set and export object trees are lists. Make them act likeGerald Combs1-3/+1
it. Show human-readable sizes in the file set dialog. Move the format_size_flags_e operator to qt_ui_utils.cpp for lack of a better place. svn path=/trunk/; revision=45661
2012-10-18Move ui-independent object export routines to the common ui directory.Gerald Combs1-0/+16
Implement DICOM, HTTP, and SMB object exports. Rename the GTK+ export files. C++-ize epan/tap.h. Fix an apparent memory leak in eo_save_all_clicked_cb. The Qt dialog has an indeterminate progress bar. I tried adding something similar to the GTK+ dialog but event processing led down a rabbit hole. svn path=/trunk/; revision=45647
2012-10-18str_util.c:format_size() uses 0xff00 for the mask, so left-shift ↵Chris Maynard1-2/+2
format_size_prefix_[si|iec] by 8, not 16. Fixes Coverity CID 733852: Operands don't affect result. svn path=/trunk/; revision=45637
2012-10-10Fix a copy+paste error and a missing include. Adjust the format_sizeGerald Combs1-4/+4
digit threshold. svn path=/trunk/; revision=45456
2012-10-10Add a format_size function similar to g_format_size that renders a sizeGerald Combs3-4/+78
value in a human-readable format. Use it in the welcome screen, status bar, and Win32 interface details. Note that in the welcome screen and status bar we've switched from customary binary prefixes to strict SI. svn path=/trunk/; revision=45453