aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes
AgeCommit message (Collapse)AuthorFilesLines
2010-05-12(Trivial) Use consistent indentation.Bill Meier1-3/+3
svn path=/trunk/; revision=32773
2010-05-11Straighten out field type names.Jaap Keuter2-2/+2
svn path=/trunk/; revision=32765
2010-05-08(Trivial) Fix a typo & some indentationBill Meier1-7/+7
svn path=/trunk/; revision=32724
2010-04-30Pick up other check from the almost-identical routine inGuy Harris1-0/+9
epan/dfilter/scanner.l. (The common code should be in a utility routine.) svn path=/trunk/; revision=32619
2010-04-30Fix comment.Guy Harris1-1/+1
svn path=/trunk/; revision=32618
2010-04-30Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1696 :Jeff Morriss1-12/+57
The change put in with rev 11382 meant that, on 64-bit systems, we could not parse negative numbers into integers (since -1 taken as an unsigned 64-bit number is (significantly) larger than G_MAX_UINT32). To fix this, split the val_from_unparsed() routine for integers into two routines: one for signed and one for unsigned; each routine can then do the appropriate "is this bigger than what fits in a *32?" test. svn path=/trunk/; revision=32616
2010-02-27Add a third date format, ABSOLUTE_TIME_DOY_UTC, to show UTC with theGuy Harris1-2/+2
date as YYYY/DDD, where DDD is a 1-origin day of year. Move the formats to a "time_fmt.h" file, included by the headers that use it. Have abs_time_to_str() and abs_time_secs_to_str() take the date format value, rather than a Boolean "show this as UTC" flag, as an argument. Document the ABSOLUTE_TIME_ formats a bit better. Use that format in the CCSDS and VCDU dissectors, rather than having those dissectors do the formatting themselves. svn path=/trunk/; revision=32034
2010-02-23From Jakub Zawadzki:Anders Broman1-3/+12
Optimizations. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4303 svn path=/trunk/; revision=31967
2010-01-19Use more unique names for certain enum constants.Bill Meier1-3/+3
(enum constant names are part of the global name space). (Fixes at least one gcc -Wshadow warning). svn path=/trunk/; revision=31572
2009-12-18Fix our match flags.Gerald Combs2-3/+3
svn path=/trunk/; revision=31303
2009-12-18If we don't have PCRE and we do have GLib >= 2.14, use GRegexes for theGerald Combs6-13/+266
"matches" operator. svn path=/trunk/; revision=31302
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()Guy Harris1-2/+2
indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. svn path=/trunk/; revision=31227
2009-10-11Creatig static sublibs was not a good idea:Jörg Mayer1-42/+0
========================================================================= "du -s build" with sublibs: 396868 build ----------------------------------- "du -s build" without sublibs: 197588 build/ ========================================================================= tshark with sublibs: -rwxr-xr-x 1 jmayer users 27399706 2009-10-11 08:39 tshark* ----------------------------------- tshark without sublibs: -rwxr-xr-x 1 jmayer users 226748 2009-10-11 09:05 tshark* ========================================================================= So undo the following patches: ------------------------------------------------------------------------ r30459 | krj | 2009-10-10 07:08:48 +0200 (Sa, 10 Okt 2009) | 1 line Sort subdirectories alphabetically ------------------------------------------------------------------------ r30458 | krj | 2009-10-10 07:03:36 +0200 (Sa, 10 Okt 2009) | 1 line Add epan/dissectors/CMakeLists.txt which creates a static dissectors library ------------------------------------------------------------------------ --> readd!! *** r30443 | krj | 2009-10-09 21:43:42 +0200 (Fr, 09 Okt 2009) | 1 line Rename DISSECTOR_ASM_UTILS to LIBWIRESHARK_ASM_FILES since these files belongs to ep an not dissectors ------------------------------------------------------------------------ r30442 | krj | 2009-10-09 21:17:26 +0200 (Fr, 09 Okt 2009) | 1 line Add epan/ftypes/CMakeLists.txt which creates a static ftypes library ------------------------------------------------------------------------ r30441 | krj | 2009-10-09 21:13:01 +0200 (Fr, 09 Okt 2009) | 1 line Add epan/dfilter/CMakeLists.txt which creates a static dfilter library ------------------------------------------------------------------------ r30440 | krj | 2009-10-09 21:05:29 +0200 (Fr, 09 Okt 2009) | 1 line Add epan/crypt/CMakeLists.txt which creates a static crypt library ------------------------------------------------------------------------ r30439 | krj | 2009-10-09 20:22:22 +0200 (Fr, 09 Okt 2009) | 1 line Add epan/crc/CMakeLists.txt which creates a static crc library ------------------------------------------------------------------------ To avoid merge problems, I needed to revert r30443 as well, will readd this one in my next patch. svn path=/trunk/; revision=30494
2009-10-09Add epan/ftypes/CMakeLists.txt which creates a static ftypes libraryKovarththanan Rajaratnam1-0/+42
svn path=/trunk/; revision=30442
2009-09-10Introduce a few FT_XXX lengths defines and use those instead of hard coding ↵Kovarththanan Rajaratnam2-9/+13
constants svn path=/trunk/; revision=29846
2009-09-10Use the correct type, that is GByteArray instead of GString. The reason why ↵Kovarththanan Rajaratnam2-4/+3
this 'worked' before (on non-64bit platforms that is): struct _GString { gchar *str; gsize len; gsize allocated_len; }; And: struct _GArray { gchar *data; guint len; }; We only accessed the first two fields of the GString struct. svn path=/trunk/; revision=29841
2009-09-10Remove unused fieldKovarththanan Rajaratnam1-3/+2
svn path=/trunk/; revision=29840
2009-08-29Revert r29614 until I figure out why buildbot doesn't like itKovarththanan Rajaratnam1-2/+2
svn path=/trunk/; revision=29615
2009-08-29Use G_STRINGIFY/G_PASTEKovarththanan Rajaratnam1-2/+2
svn path=/trunk/; revision=29614
2009-08-26(FWIW) One step towards including stdio.h & stdlib.h only when req'd.Bill Meier6-2/+6
svn path=/trunk/; revision=29568
2009-07-16Move th /MP flag setting to LOCAL_CFLAGS set in configure.nmakeAnders Broman1-1/+1
for MSVC variant 2008 only. As suggested by Bill Meier. svn path=/trunk/; revision=29114
2009-07-15Add /MP flag to make use of multi cores.Anders Broman1-1/+1
svn path=/trunk/; revision=29104
2009-04-22Clean up some 64-bit issues.Guy Harris4-4/+4
svn path=/trunk/; revision=28117
2009-03-15Some more P64 fixes - they all assume we don't have truly giganticGuy Harris4-8/+8
strings. svn path=/trunk/; revision=27720
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke2-7/+5
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2009-02-07#include <epan/emem.h> not req'd ...Bill Meier1-1/+0
svn path=/trunk/; revision=27391
2008-11-11Signal error on field values that cannot be safely represented as strings ↵Balint Reczey3-3/+14
instead of crashing. This fixes bug 2845. svn path=/trunk/; revision=26749
2008-07-02Include the new Makefile.common file.Guy Harris1-0/+2
svn path=/trunk/; revision=25659
2008-07-02Add Makefile.common files for epan/dfilter and epan/ftypes.Guy Harris3-40/+56
Add checkapi rules to Makefile.am files. svn path=/trunk/; revision=25656
2008-07-01Put printf into a separate "termoutput" API group. For most files,Guy Harris1-1/+1
check for it - but not for TShark plugins, as they are expected to print to the standard output. svn path=/trunk/; revision=25653
2008-06-28Add FT_INT64 to IS_FT_INT and FT_UINT_64 to IS_FT_UINT.Anders Broman1-2/+2
svn path=/trunk/; revision=25623
2008-06-23Rename some variables to avoid shadowing warnings.Stig Bjørlykke4-14/+14
svn path=/trunk/; revision=25543
2008-06-04g_ascii_strtoull() is in GLib 2.2 and later, and we require GLib 2.4 orGuy Harris1-4/+0
later, so there's no longer any need to have our own g_ascii_strtoull. svn path=/trunk/; revision=25423
2008-06-03We require GLib 2.4 or later, and they define G_MININT32, G_MAXIN32,Guy Harris1-12/+0
G_MAXUINT32, and G_MAXUINT64; don't check whether we need to define them ourselves. svn path=/trunk/; revision=25420
2008-06-03Fix run checkapi for more targets.Anders Broman1-0/+14
svn path=/trunk/; revision=25414
2008-05-20Undo rev 24518 and (re)fix ↵Jeff Morriss1-1/+1
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2291 . svn path=/trunk/; revision=25327
2008-04-21From Alex deVries (bug 2486):Stig Bjørlykke1-9/+110
This adds fpSyncFork and fpSyncDir functionality to the AFP dissector. svn path=/trunk/; revision=25142
2008-04-20Corrected ne operator for FT_BYTES.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=25126
2008-03-01All our programs link against glib so don't there's no need to link our ↵Jeff Morriss1-4/+4
libraries against it too. This should allow us to build Wireshark (with dynamic libs) with static glib (read: it should fix the OS X buildbot building with glib-1.2). svn path=/trunk/; revision=24518
2008-02-08Fix typo in commentStephen Fisher1-1/+1
svn path=/trunk/; revision=24288
2008-02-07Removed even more "statement not reached" warnings.Stig Bjørlykke1-5/+3
svn path=/trunk/; revision=24286
2008-02-07Removed some "statement not reached" warnings.Stig Bjørlykke1-5/+3
svn path=/trunk/; revision=24282
2008-01-08Changed email address for Gerald from zing.org to wireshark.orgStig Bjørlykke1-1/+1
in a lot of files, which I suppose is correct. svn path=/trunk/; revision=24034
2007-12-05At least on some LP64 platforms (such as OpenBSD 4.2 on x86-64),Guy Harris1-2/+2
PRI[dux]64 use "ll", but gint64 and guint64 are "long" and "unsigned long", not "long long" or "unsigned long long", and the compiler warns about using "%ll[doux]" with "long" or "unsigned long". Use G_GINT64_MODIFIER instead. svn path=/trunk/; revision=23760
2007-11-19Introduce a new field type called FT_EBCDIC. This field works the same asStephen Fisher2-0/+39
FT_STRING, except that it converts the data from the packet from EBCDIC to ASCII for display in Wireshark. svn path=/trunk/; revision=23503
2007-11-06Fix bug 1956 - make the bitwise-AND routine treat its arguments as beingGuy Harris1-18/+8
IPv4 addresses. Also, rename that routine to cmp_bitwise_and(), as it's not working on bit strings. svn path=/trunk/; revision=23375
2007-11-06The "bitwise AND" display filter operator is supposed to evaluate toGuy Harris1-9/+10
TRUE if the result of the operation has any bit set; that means that the test should stop and return TRUE as soon as it finds two bytes that when ANDed together are non-zero, and return FALSE if no such byte was found. The other test functions don't have "_bytes" in the routine name; don't put it into this one. svn path=/trunk/; revision=23374
2007-08-25replace oid_to_str_buf() and oid_to_str()Luis Ontanon1-3/+27
fix a potential buffer overflow due to a very liberal estimate by oid_repr_len() svn path=/trunk/; revision=22659
2007-04-22Only #deinfe __USE_XOPEN if not already defined. On my Suse 10.2 it wasJörg Mayer1-2/+5
already #defined to 1, so this would create a warning/error. svn path=/trunk/; revision=21508
2007-03-23From Sebastien Tandel:Stephen Fisher1-1/+1
(Temporarily disable the warnings as errors default on Unix to get to get the buildbots and people with gcc40 going again until those additional warnings gcc40 generates can be fixed-I'm working on it ASAP) Patch for configure.in which disables by default the treatment of warnings as errors. It can be enabled with './configure --with-warnings-as-errors'. The macro will test first if GCC is present. If it's the case, HAVE_WARNINGS_AS_ERRORS is defined. All the USING_GCC have been replaced by HAVE_WARNINGS_AS_ERRORS. With this switch, people won't suffer from unexpected warnings when downloading svn sources during the transition time ;) svn path=/trunk/; revision=21153