aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes
AgeCommit message (Collapse)AuthorFilesLines
2004-07-17G_MAXINT32, G_MININT32, and G_MAXUINT32 aren't defined by GLib 1.2[.x],Guy Harris1-0/+7
so we have to define them ourselves if they're not defined. svn path=/trunk/; revision=11384
2004-07-16I'm not sure "strtol()" and "strtoul()" are guaranteed to clear "errno"Guy Harris1-3/+19
on success, so we clear it before calling them. Assign the value of "strtol()" to a "long" and assign the value of "strtoul()" to an "unsigned long", as those are the return types for those functions - "gint32" and "guint32" might not be large enough for the return value on an LP64 platform. Check for errno being EINVAL, as that can happen if the number isn't valid. Before assigning the value returned by "strtol()" or "strtoul()" to the final destination, check whether it's in the right range for that destination. svn path=/trunk/; revision=11382
2004-07-04Instead of using pointer casts in the slab allocator stuff, add aGuy Harris2-3/+6
"SLAB_ITEM_TYPE_DEFINE()" macro to define a union of the type of object for the slab and a pointer to an object of that union type, and use that type for items on the slab allocator free lists; that *should* avoid having the compiler think two pointers to an item being added to or removed from the free list don't point to the same object just because they have different types. svn path=/trunk/; revision=11306
2004-07-04Make the "SLAB_ALLOC()" and "SLAB_FREE()" macros take the type of theGuy Harris2-6/+6
object being allocated, rather than the name of the free list, as an argument (with the name of the free list constructed from the name of the type), and add macros to define and declare the free list, also taking the type of the object being allocated. svn path=/trunk/; revision=11305
2004-06-28From Graeme Hewson: prevent an assertion failure if a display filterGuy Harris1-14/+14
specifies [i:] and i is >= the length of the frame. svn path=/trunk/; revision=11258
2004-06-26From Laurent Rabret: replace "lib" with "link /lib"; "lib" is just aGuy Harris1-2/+2
wrapper around "link /lib", and not all Microsoft C compiler distributions provide "lib". svn path=/trunk/; revision=11242
2004-06-24from tomas kRonnie Sahlberg1-1/+6
updates to the asn2eth compiler and a new regenerated h235 dissector svn path=/trunk/; revision=11231
2004-06-06Add a "force_separators" parameter to hex_str_to_bytes so that it'sGerald Combs1-2/+2
possible to paste in WEP keys without any separators. Add doxygen comments to strutil.h. svn path=/trunk/; revision=11123
2004-06-03From Graeme Hewson:Guy Harris1-23/+11
Fix assertion failure when absolute value of negative slice offset > field length. Remove code for handling negative slice lengths. svn path=/trunk/; revision=11084
2004-05-09From Lars Roland: add support for building a libethereal.dll with MSVC:Guy Harris1-3/+7
add a config.nmake option to control whether to build libethereal.dll or not; remove "./wiretap" from PATH to prevent problems due to wrongly-loaded files; build dissector.lib with MSVC; move "print.c" and "ps.c" to the dissector helpers, as "print.c" imports variables from packet-frame.c and packet-data.c, which are in libethereal; move "g711.c" out of the dissector helpers, as they're used only by Ethereal in a tap, not in Tethereal or in any dissector; add a .def file for libethereal; arrange to declare global variables exported from libethereal with "__declspec(dllimport)" when building programs that import those variables; update the NSIS installer. Make the "configure" script define ETH_VAR_IMPORT as "extern". svn path=/trunk/; revision=10834
2004-05-09From Graeme Hewson:Guy Harris1-7/+9
Fix off-by-one errors in slice_func svn path=/trunk/; revision=10831
2004-05-09From Graeme Hewson:Guy Harris1-2/+2
"aim.fnac.ssi.buddyname==ab" caused segmentation fault. Fix handling of unparsed value as byte string. svn path=/trunk/; revision=10830
2004-05-02Make sure the character values we pass to "isprint()" aren'tGuy Harris1-4/+4
sign-extended. svn path=/trunk/; revision=10767
2004-04-26When producing a display-filter representation of an FT_STRING*, representGilbert Ramirez1-7/+33
any non-printable character in hex, as "\xNN". We rely on isprint(), which may not be the best solution because it is locale-specific. svn path=/trunk/; revision=10707
2004-04-14At last compiling on CygWin works again! Added the missing PCRE and GLIBOlivier Biot1-1/+3
libraries to libftypes. Provide caching of computed configure tests. svn path=/trunk/; revision=10600
2004-03-24Fix the CLEANFILES target so both static and shared libraries are cleaned.Olivier Biot1-1/+2
svn path=/trunk/; revision=10475
2004-03-13Make libethereal and libwiretap shared libs.Jörg Mayer1-7/+3
svn path=/trunk/; revision=10368
2004-02-27First attempt at "bitwise AND" display filter operator.Olivier Biot11-11/+112
Document how a display operator can be added. svn path=/trunk/; revision=10250
2004-02-22If the LHS is a STRING or UNPARSED string, and the RHS is a FIELD,Gilbert Ramirez1-1/+4
then make sure that the FIELD can participate in the relation that is expressed in the display filter. Note that tvbuff's *should* be able to participate in == comparisons, etc., but those functions need to be added to ftype-tvbuff.c first. svn path=/trunk/; revision=10175
2004-02-09Forgot *.laJörg Mayer1-4/+5
svn path=/trunk/; revision=10012
2004-02-09Ignore shared dll stuffJörg Mayer1-0/+2
svn path=/trunk/; revision=10011
2004-02-01Cast the result of "tvb_get_ptr()" to squelch a compiler warning.Guy Harris1-2/+2
svn path=/trunk/; revision=9954
2004-02-01signed/unsigend warning fixesJörg Mayer2-3/+4
svn path=/trunk/; revision=9931
2004-01-25Fix 'warning: cast discards qualifiers from pointer target type' by removing ↵Jörg Mayer1-5/+5
cast svn path=/trunk/; revision=9845
2004-01-25Remove the cast again and do the proper fix (add right type to union)Jörg Mayer2-4/+5
svn path=/trunk/; revision=9844
2004-01-25Add a cast to avoid a signedness warningJörg Mayer1-2/+2
svn path=/trunk/; revision=9843
2004-01-22epan don't need GTK_CFLAGS as GTK isn't used,Ulf Lamping1-2/+2
GLIB_CFLAGS are just enough svn path=/trunk/; revision=9779
2004-01-01Add support of contains operator in slices.Olivier Biot1-3/+18
svn path=/trunk/; revision=9512
2003-12-29Pull most of bytes_from_unparsed() into a new routine,Gerald Combs1-84/+4
hex_str_to_bytes(). Use the new routine to initialize any WEP keys we have defined. This has the side effect of fixing an overflow if the user entered a long WEP key. svn path=/trunk/; revision=9471
2003-12-18Add support of the "matches" operator to FT_BYTES and FT_ETHER. I don't thinkOlivier Biot3-17/+65
it would make sense to add PCRE support for byte arrays containing an integer or an IP address. Avoid lengthy pointer constructs in cmp_matches(). svn path=/trunk/; revision=9343
2003-12-17Add protocols to the header fields for which the "matches" operator can beOlivier Biot1-4/+54
appliedi (PCRE). In fact, all FT_TVBUFF fields. svn path=/trunk/; revision=9329
2003-12-10Make the _pcre_tuple_t struct internal.Gerald Combs2-12/+17
svn path=/trunk/; revision=9233
2003-12-09Internal PCRE field type for efficient RE parsing in dfilters.Olivier Biot1-1/+2
svn path=/trunk/; revision=9225
2003-12-09Internal PCRE field type for efficient RE parsing in dfilters.Olivier Biot5-35/+275
svn path=/trunk/; revision=9224
2003-12-07Add PCRE support to the Windows build.Gerald Combs1-2/+2
svn path=/trunk/; revision=9185
2003-12-06From Olivier BiotGilbert Ramirez10-24/+130
New "matches" operater in display filter language. Uses PCRE. If a "matches" operator is found in a dfilter while libpcre has not been used to build the binary, then an exception is thrown after using dfilter_fail() to set an apporporiate error message. svn path=/trunk/; revision=9182
2003-12-03The "ptr_u" unions no longer have a "next" pointer - they now just haveGuy Harris2-47/+45
one member - or have one that's not used, so get rid of those unions. svn path=/trunk/; revision=9151
2003-12-03Instead of requiring slab-allocated structures to have a "next" pointer,Guy Harris2-5/+4
when adding them to the free list, cast the pointer to the structure to a pointer to a "freed_item_t" which contains the "next" pointer. This reduces the memory requirement for some of those structures, and leaves us free to slab-allocate structures that have a "next" pointer for other reasons. svn path=/trunk/; revision=9150
2003-12-02From Didier Gautheron: put an "fvalue_t" structure into a "field_info"Guy Harris2-5/+28
structure, rather than separately allocating "fvalue_t"s and having the "field_info" structure point to them - this appears to speed up protocol tree construction a bit. svn path=/trunk/; revision=9146
2003-12-02Use the LSAB_ALLOC and SLAB_FREE macros to allocate/free fvalue_t dataRonnie Sahlberg2-49/+7
svn path=/trunk/; revision=9140
2003-11-25Individual fvalue_t's aren't individually allocated with "g_malloc()",Guy Harris1-10/+22
so they can't be freed with "g_free()"; keep a list of the chunks of "fvalue_t"s, which are whare are allocated with "g_malloc()", so we can free them all. svn path=/trunk/; revision=9090
2003-11-25fvalue_free() is one of the most called functions.Ronnie Sahlberg5-83/+79
This function is also very small, so small that teh overhead for the actual function call and return is likely to be a significant part of its execution time. change it into a macro and make it thus slightly faster by eliminating the function call overhead. svn path=/trunk/; revision=9083
2003-11-25Change the handling of temporary allocation of fvalue_t structures to be faster.Ronnie Sahlberg2-81/+85
Use a similar technique as was used in epan/proto.c to speed up the field_info allocation/deallocation routines svn path=/trunk/; revision=9082
2003-10-29Make the "fvalue_set" methods for types whose value is allocated freeGuy Harris3-5/+35
any previously-allocated version first, so that they don't leak memory. From Olivier Biot: add a "proto_item_append_string()" routine, to append to the string value a protocol tree item has. svn path=/trunk/; revision=8821
2003-10-10Give every Makefile.nmake file a "distclean" rule, and have "distclean"Guy Harris1-1/+2
recurse into subdirectories doing "nmake -f Makefile.nmake distclean". Have "nmake -f Makefile.nmake clean" not remove stuff that "make clean" doesn't remove (such as Flex/Bison output and config.h files) - and have "nmake -f Makefile.nmake distclean" remove stuff that "make distclean" removes, including "tethereal-tap-register.c" and "ethereal-tap-register.c". svn path=/trunk/; revision=8672
2003-08-27Include <string.h> to get "strlen()" declared.Guy Harris1-1/+2
svn path=/trunk/; revision=8281
2003-08-27Add a "contains" operator for byte-strings, strings, and tvbuffs (protocols).Gilbert Ramirez11-42/+259
The search uses a naive approach; more work is required to add a Boyer-Moore Search algorithm. svn path=/trunk/; revision=8280
2003-07-31Give FT_IPv4 val_repr_len and val_to_repr methods, and use them forGuy Harris1-3/+18
generating display filters from FT_IPv4 fields. svn path=/trunk/; revision=8110
2003-07-31Add val_repr_len and val_to_repr methods for FT_FLOAT and FT_DOUBLE, andGuy Harris1-5/+44
use them when generating display filters to match field values. Use "%{FLT_DIG}g" rather than "%{FLT_DIG}f" for FT_FLOAT. svn path=/trunk/; revision=8109
2003-07-30Give FT_ABSOLUTE_TIME and FT_RELATIVE_TIME val_repr_len and val_to_reprGuy Harris1-5/+35
methods, and use them when constructing display filters. svn path=/trunk/; revision=8107