Balint Reczey
41723a5ef2
Signal error on field values that cannot be safely represented as strings instead of crashing.
...
This fixes bug 2845.
svn path=/trunk/; revision=26749
2008-11-11 13:32:51 +00:00
Guy Harris
35ce35ebf5
Include the new Makefile.common file.
...
svn path=/trunk/; revision=25659
2008-07-02 02:18:53 +00:00
Guy Harris
a04774395f
Add Makefile.common files for epan/dfilter and epan/ftypes.
...
Add checkapi rules to Makefile.am files.
svn path=/trunk/; revision=25656
2008-07-02 01:44:30 +00:00
Guy Harris
b6e20d89be
Put printf into a separate "termoutput" API group. For most files,
...
check for it - but not for TShark plugins, as they are expected to
print to the standard output.
svn path=/trunk/; revision=25653
2008-07-01 21:13:32 +00:00
Anders Broman
09a741cb17
Add FT_INT64 to IS_FT_INT and FT_UINT_64 to IS_FT_UINT.
...
svn path=/trunk/; revision=25623
2008-06-28 17:23:07 +00:00
Stig Bjørlykke
dd6c6af3e4
Rename some variables to avoid shadowing warnings.
...
svn path=/trunk/; revision=25543
2008-06-23 20:23:29 +00:00
Guy Harris
160a305efa
g_ascii_strtoull() is in GLib 2.2 and later, and we require GLib 2.4 or
...
later, so there's no longer any need to have our own g_ascii_strtoull.
svn path=/trunk/; revision=25423
2008-06-04 01:30:40 +00:00
Guy Harris
caa183b45b
We require GLib 2.4 or later, and they define G_MININT32, G_MAXIN32,
...
G_MAXUINT32, and G_MAXUINT64; don't check whether we need to define them
ourselves.
svn path=/trunk/; revision=25420
2008-06-03 23:57:47 +00:00
Anders Broman
2640b786f4
Fix run checkapi for more targets.
...
svn path=/trunk/; revision=25414
2008-06-03 05:35:19 +00:00
Jeff Morriss
73c7570102
Undo rev 24518 and (re)fix http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2291 .
...
svn path=/trunk/; revision=25327
2008-05-20 14:30:01 +00:00
Stig Bjørlykke
5ccc52fbb6
From Alex deVries (bug 2486):
...
This adds fpSyncFork and fpSyncDir functionality to the AFP dissector.
svn path=/trunk/; revision=25142
2008-04-21 21:36:11 +00:00
Stig Bjørlykke
6f89fd00d0
Corrected ne operator for FT_BYTES.
...
svn path=/trunk/; revision=25126
2008-04-20 22:34:47 +00:00
Jeff Morriss
bc580e1aa0
All our programs link against glib so don't there's no need to link our 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-03-01 12:14:38 +00:00
Stephen Fisher
a97304bd26
Fix typo in comment
...
svn path=/trunk/; revision=24288
2008-02-08 05:45:46 +00:00
Stig Bjørlykke
28ae535b00
Removed even more "statement not reached" warnings.
...
svn path=/trunk/; revision=24286
2008-02-07 15:44:45 +00:00
Stig Bjørlykke
c6af1bfdd4
Removed some "statement not reached" warnings.
...
svn path=/trunk/; revision=24282
2008-02-07 12:14:40 +00:00
Stig Bjørlykke
6d4a2e7ebf
Changed email address for Gerald from zing.org to wireshark.org
...
in a lot of files, which I suppose is correct.
svn path=/trunk/; revision=24034
2008-01-08 22:54:51 +00:00
Guy Harris
9aa28e3176
At least on some LP64 platforms (such as OpenBSD 4.2 on x86-64),
...
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-12-05 09:05:52 +00:00
Stephen Fisher
849e628334
Introduce a new field type called FT_EBCDIC. This field works the same as
...
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-19 21:27:01 +00:00
Guy Harris
d913f45ef1
Fix bug 1956 - make the bitwise-AND routine treat its arguments as being
...
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-06 09:19:59 +00:00
Guy Harris
69ba6c7762
The "bitwise AND" display filter operator is supposed to evaluate to
...
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-11-06 08:46:57 +00:00
Luis Ontanon
bcd55f4c8e
replace oid_to_str_buf() and oid_to_str()
...
fix a potential buffer overflow due to a very liberal estimate by oid_repr_len()
svn path=/trunk/; revision=22659
2007-08-25 17:29:55 +00:00
Jörg Mayer
b16106f89f
Only #deinfe __USE_XOPEN if not already defined. On my Suse 10.2 it was
...
already #defined to 1, so this would create a warning/error.
svn path=/trunk/; revision=21508
2007-04-22 20:04:34 +00:00
Stephen Fisher
62f88a4a04
From Sebastien Tandel:
...
(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
2007-03-23 17:49:59 +00:00
Stephen Fisher
84c5becd89
Add -Werror for gcc to a few more directories and fix a few warnings
...
svn path=/trunk/; revision=21129
2007-03-22 23:24:13 +00:00
Ulf Lamping
dcb1e1bdfd
add "treat warnings as errors" flag(s)
...
svn path=/trunk/; revision=21125
2007-03-22 22:54:00 +00:00
Bill Meier
04d29de81d
Fix Windows Makefiles so clean removes all pdb files (PDB_FILE no longer defined)
...
svn path=/trunk/; revision=21052
2007-03-18 15:36:22 +00:00
Bill Meier
09f508b57b
A few more ethereal --> wireshark
...
svn path=/trunk/; revision=20559
2007-01-26 01:34:29 +00:00
Martin Mathieson
806cf80659
Remove extra element.
...
svn path=/trunk/; revision=20477
2007-01-18 13:13:55 +00:00
Martin Mathieson
5d32fd280e
Missed this one (I don't build with pcre)
...
svn path=/trunk/; revision=20474
2007-01-18 11:44:24 +00:00
Martin Mathieson
997e5415f9
Add separate union entries to fvalue.value for signed and unsigned
...
32-bit numbers. Separate signed and unsigned accessors have been
added and used where appropriate.
Definitely not for 0.99.5.
svn path=/trunk/; revision=20472
2007-01-18 11:02:26 +00:00
Ronnie Sahlberg
95e50279ab
since all callers to fvalue_set for FT_STRING[Z] use already_copied==FALSE we now assert that this is the case in ftype-string.c and no longer have a conditional whetehr to create a local copy or not.
...
svn path=/trunk/; revision=20246
2006-12-30 00:57:46 +00:00
Jaap Keuter
4a780726ce
Reverse commit 20209, breaking the build across the board.
...
svn path=/trunk/; revision=20210
2006-12-24 16:12:04 +00:00
Ronnie Sahlberg
017fdab8a1
make the PCRE ftype use ep allocated memory instead of g_malloced memory
...
svn path=/trunk/; revision=20209
2006-12-23 21:17:32 +00:00
Ronnie Sahlberg
44535d37b2
make ipv4 ftype use cheap ep_ memory isntead of slightly less cheap g_ memory
...
for the temporary storage while parsing
svn path=/trunk/; revision=20205
2006-12-23 00:10:49 +00:00
Ronnie Sahlberg
8fc740a53e
hmm
...
best to revert this for a while.
revert all changes from previous patch.
svn path=/trunk/; revision=20195
2006-12-22 09:01:12 +00:00
Ronnie Sahlberg
8433f6d589
change some slab allocated memory into ep/emem allocated structures instead.
...
this primarily removes code and simplifies (==eliminates) the need to track the data that is allocated and should potentially be slightly faster than a slab allocator.
however these functions are called A LOT so there might be a performance hit when using emem with full debugging canary values and all the bells and whistles activated.
this change also makes any future attempt to parallellize dissection of frames easier if we just make the ep allocator allocate from a threads specific ep pool.
(something we would have to do anyway to make ep allocations multithreaded)
this works in all my tests so far but needs more test coverage.
svn path=/trunk/; revision=20194
2006-12-22 08:35:43 +00:00
Guy Harris
5123a82b3c
Fix bytes_repr_len() to correctly handle a zero-length FT_BYTES field
...
svn path=/trunk/; revision=19863
2006-11-07 20:30:34 +00:00
Tomas Kukosa
d89ef87534
Bug 1053: New SNMP filtering is broken
...
Do not try to parse OID as hexbytes string
svn path=/trunk/; revision=19772
2006-11-02 08:48:58 +00:00
Gerald Combs
f7e38bd5e6
Change ETH_VAR_IMPORT to WS_VAR_IMPORT. Try to fix a duplicate variable
...
definition in the Catapult DCT2000 code.
svn path=/trunk/; revision=18524
2006-06-20 18:30:54 +00:00
Gerald Combs
b15974d094
libethereal -> libwireshark. idl2eth -> idl2wrs. There are a _lot_ of
...
changes here. It compiles OK on OS X, but hasn't been tested anywhere else.
svn path=/trunk/; revision=18260
2006-05-31 00:23:01 +00:00
Ronnie Sahlberg
89f022b12b
name change
...
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Gilbert Ramirez
e3899ed4a4
Add infrastructure for display filter functions.
...
Add upper() and lower() display filter functions for string fields.
svn path=/trunk/; revision=18071
2006-05-02 14:26:17 +00:00
Guy Harris
7db8eea5c6
Make the GUIDs in various data structures e_guid_t's rather than arrays
...
of 16 bytes. Use "sizeof" for the size of e_guid_t's, and use structure
assignment to copy GUID values.
Make functions such as append_h225ras_call() and new_h225ras_call() take
pointers to e_guid_t's as arguments.
Define GUID_LEN in epan/guid-utils.h and use it as the length of a GUID
in a packet. (Note that "sizeof e_guid_t" is not guaranteed to be 16,
although it is guaranteed to be the size of an e_guid_t.)
When constructing a display filter that matches a GUID, use
guid_to_str() to construct the string for the GUID.
svn path=/trunk/; revision=17676
2006-03-19 20:45:45 +00:00
Jörg Mayer
7e40853dbb
propset...
...
svn path=/trunk/; revision=17574
2006-03-11 01:45:42 +00:00
Tomas Kukosa
082627bdb5
few warnings from GUID handling avoided
...
svn path=/trunk/; revision=17568
2006-03-10 14:14:39 +00:00
Tomas Kukosa
923855bb20
new FT_GUID handling - big/little endian supported
...
svn path=/trunk/; revision=17566
2006-03-10 11:58:22 +00:00
Jaap Keuter
7f2b94c59b
Fix bug 764. Always initialize the members of the tuple on creation.
...
svn path=/trunk/; revision=17390
2006-02-23 21:22:54 +00:00
Tomas Kukosa
c41cac4285
mark unused parameter
...
svn path=/trunk/; revision=16700
2005-12-06 12:50:11 +00:00
Tomas Kukosa
dcae7d303f
new field type FT_OID for OBJECT IDENTIFIERs
...
svn path=/trunk/; revision=16652
2005-12-02 13:16:58 +00:00