Logo Search packages:      
Sourcecode: wireshark version File versions  Download package

tvbuff.h File Reference


Detailed Description

"testy, virtual(-izable) buffer". They are testy in that they get mad when an attempt is made to access data beyond the bounds of their array. In that case, they throw an exception.

They are virtualizable in that new tvbuff's can be made from other tvbuffs, while only the original tvbuff may have data. That is, the new tvbuff has virtual data.

Definition in file tvbuff.h.

#include <glib.h>
#include <epan/ipv6-utils.h>
#include <epan/guid-utils.h>
#include "exceptions.h"

Go to the source code of this file.

Classes

struct  tvb_backing_t
struct  tvb_comp_t
struct  tvbuff

Defines

#define TVB_GET_DS_TVB(tvb)   (tvb->ds_tvb)
#define TVB_RAW_OFFSET(tvb)   ((tvb->raw_offset==-1)?(tvb->raw_offset = offset_from_real_beginning(tvb, 0)):tvb->raw_offset)

Typedefs

typedef void(* tvbuff_free_cb_t )(void *)
typedef struct tvbuff tvbuff_t

Enumerations

enum  tvbuff_type { TVBUFF_REAL_DATA, TVBUFF_SUBSET, TVBUFF_COMPOSITE }

Functions

guint8 * ep_tvb_memdup (tvbuff_t *tvb, gint offset, gint length)
int offset_from_real_beginning (tvbuff_t *tvb, int counter)
gboolean tvb_bytes_exist (tvbuff_t *, gint offset, gint length)
gchar * tvb_bytes_to_str (tvbuff_t *tvb, gint offset, gint len)
gchar * tvb_bytes_to_str_punct (tvbuff_t *tvb, gint offset, gint len, gchar punct)
void tvb_composite_append (tvbuff_t *tvb, tvbuff_t *member)
void tvb_composite_finalize (tvbuff_t *tvb)
void tvb_composite_prepend (tvbuff_t *tvb, tvbuff_t *member)
guint tvb_decrement_usage_count (tvbuff_t *, guint count)
void tvb_ensure_bytes_exist (tvbuff_t *tvb, gint offset, gint length)
guint tvb_ensure_length_remaining (tvbuff_t *, gint offset)
char * tvb_fake_unicode (tvbuff_t *tvb, int offset, int len, gboolean little_endian)
gint tvb_find_guint8 (tvbuff_t *, gint offset, gint maxlength, guint8 needle)
gint tvb_find_line_end (tvbuff_t *tvb, gint offset, int len, gint *next_offset, gboolean desegment)
gint tvb_find_line_end_unquoted (tvbuff_t *tvb, gint offset, int len, gint *next_offset)
gint tvb_find_tvb (tvbuff_t *haystack_tvb, tvbuff_t *needle_tvb, gint haystack_offset)
gchar * tvb_format_stringzpad (tvbuff_t *tvb, gint offset, gint size)
gchar * tvb_format_text (tvbuff_t *tvb, gint offset, gint size)
gchar * tvb_format_text_wsp (tvbuff_t *tvb, gint offset, gint size)
void tvb_free (tvbuff_t *)
void tvb_free_chain (tvbuff_t *)
char * tvb_get_ephemeral_faked_unicode (tvbuff_t *tvb, int offset, int len, gboolean little_endian)
guint8 * tvb_get_ephemeral_string (tvbuff_t *tvb, gint offset, gint length)
guint8 * tvb_get_ephemeral_stringz (tvbuff_t *tvb, gint offset, gint *lengthp)
void tvb_get_guid (tvbuff_t *tvb, gint offset, e_guid_t *guid, gboolean little_endian)
guint8 tvb_get_guint8 (tvbuff_t *, gint offset)
guint32 tvb_get_ipv4 (tvbuff_t *, gint offset)
void tvb_get_ipv6 (tvbuff_t *, gint offset, struct e_in6_addr *addr)
guint32 tvb_get_letoh24 (tvbuff_t *, gint offset)
guint64 tvb_get_letoh64 (tvbuff_t *, gint offset)
void tvb_get_letohguid (tvbuff_t *tvb, gint offset, e_guid_t *guid)
gdouble tvb_get_letohieee_double (tvbuff_t *, gint offset)
gfloat tvb_get_letohieee_float (tvbuff_t *, gint offset)
guint32 tvb_get_letohl (tvbuff_t *, gint offset)
guint16 tvb_get_letohs (tvbuff_t *, gint offset)
gint tvb_get_nstringz (tvbuff_t *tvb, gint offset, guint bufsize, guint8 *buffer)
gint tvb_get_nstringz0 (tvbuff_t *tvb, gint offset, guint bufsize, guint8 *buffer)
guint32 tvb_get_ntoh24 (tvbuff_t *, gint offset)
guint64 tvb_get_ntoh64 (tvbuff_t *, gint offset)
void tvb_get_ntohguid (tvbuff_t *tvb, gint offset, e_guid_t *guid)
gdouble tvb_get_ntohieee_double (tvbuff_t *, gint offset)
gfloat tvb_get_ntohieee_float (tvbuff_t *, gint offset)
guint32 tvb_get_ntohl (tvbuff_t *, gint offset)
guint16 tvb_get_ntohs (tvbuff_t *, gint offset)
const guint8 * tvb_get_ptr (tvbuff_t *, gint offset, gint length)
guint8 * tvb_get_string (tvbuff_t *tvb, gint offset, gint length)
guint8 * tvb_get_stringz (tvbuff_t *tvb, gint offset, gint *lengthp)
guint tvb_increment_usage_count (tvbuff_t *, guint count)
guint tvb_length (tvbuff_t *)
gint tvb_length_remaining (tvbuff_t *, gint offset)
guint8 * tvb_memcpy (tvbuff_t *, guint8 *target, gint offset, gint length)
guint8 * tvb_memdup (tvbuff_t *, gint offset, gint length)
gint tvb_memeql (tvbuff_t *tvb, gint offset, const guint8 *str, gint size)
tvbuff_t * tvb_new (tvbuff_type)
tvbuff_t * tvb_new_composite (void)
tvbuff_t * tvb_new_real_data (const guint8 *data, guint length, gint reported_length)
tvbuff_t * tvb_new_subset (tvbuff_t *backing, gint backing_offset, gint backing_length, gint reported_length)
gboolean tvb_offset_exists (tvbuff_t *, gint offset)
gint tvb_pbrk_guint8 (tvbuff_t *, gint offset, gint maxlength, guint8 *needles)
guint tvb_reported_length (tvbuff_t *)
gint tvb_reported_length_remaining (tvbuff_t *tvb, gint offset)
void tvb_set_child_real_data_tvbuff (tvbuff_t *parent, tvbuff_t *child)
void tvb_set_free_cb (tvbuff_t *, tvbuff_free_cb_t)
void tvb_set_real_data (tvbuff_t *, const guint8 *data, guint length, gint reported_length)
void tvb_set_reported_length (tvbuff_t *, guint)
void tvb_set_subset (tvbuff_t *tvb, tvbuff_t *backing, gint backing_offset, gint backing_length, gint reported_length)
gint tvb_strncaseeql (tvbuff_t *tvb, gint offset, const gchar *str, gint size)
gint tvb_strneql (tvbuff_t *tvb, gint offset, const gchar *str, gint size)
gint tvb_strnlen (tvbuff_t *, gint offset, guint maxlength)
guint tvb_strsize (tvbuff_t *tvb, gint offset)
tvbuff_t * tvb_uncompress (tvbuff_t *tvb, int offset, int comprlen)
void tvbuff_cleanup (void)
void tvbuff_init (void)


Generated by  Doxygen 1.6.0   Back to index