aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stream.c
AgeCommit message (Collapse)AuthorFilesLines
2010-03-25(Minor): Do some sanity checking....wmeier1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32278 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-12Use se_alloc instead of GMemChunks.wmeier1-109/+49
Fixes memory leak when using GLib v2.10 or later. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30553 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-06Split a bunch of init routines into init() and cleanup(). This allows us to ↵krj1-40/+51
free memory properly on shutdown. This is an initial step. There's still some work to do. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29754 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-26#include <emem.h> not req'dwmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26093 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-25Constify a bunch of stuff, to squelch -Wwrite-strings warnings. guy1-1/+1
epan/dissectors/packet-ncp2222.inc is a bit hard to fix, so we're not ready to enable that warning by default yet. Throw in some casts to handle GLib routines that take arbitrary non-const pointers (they can later return the pointers, and some callers might want to modify or free up those pointers in cases where they're known to be writable or allocated). Use ep_tvb_memdup() rather than a combination of ep_alloc() and tvb_memcpy(). Clean up some indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25601 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-29From David Howells :standel1-2/+2
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat 4.1.2-8). The failures fall into two categories: (1) Casts between pointers and 32-bit integers without an intermediary cast via 'long' or 'unsigned long'. This results in a compiler warning complaining about casts between a pointer and an integer of a different size. (2) Passing values to "%lld" or similar printf-style format options that the compiler thinks are a different size. Such values need to be cast to 'long long' or 'unsigned long long'. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21975 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-21Include "emem.h".etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20890 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-21From Richard van der Hoff:etxrab1-8/+8
This patch replaces g_assert() calls in epan/stream.c with DISSECTOR_ASSERT(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20889 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-11from albert chinsahlberg1-4/+14
remove some c99-isms git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16464 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-03A hash table doesn't *have* to have a value destroy function - and, inguy1-16/+3
fact, in GLib 1.2, it *can't* have one. As the value destroy function for this hash table does nothing, don't bother with it - and create the hash table with "g_hash_table_new(), rather than "g_hash_table_new_full()", so it works with GLib 1.2[.x]. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16096 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-03From Jeff Snyder:etxrab1-0/+532
04-stream.diff A simplified packet reassembly API built on top of fragment_add_seq_next for reassembling fragments that are delivered in-order, where fragments are identified by a framenum and an offset into that frame. Streams are attached to a conversation or a circuit and are unidirectional. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16082 f5534014-38df-0310-8fa8-9805f1628bb7