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 = tvb_offset_from_real_beginning(tvb)):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

void * ep_tvb_memdup (tvbuff_t *tvb, const gint offset, size_t length)
gboolean tvb_bytes_exist (const tvbuff_t *, const gint offset, const gint length)
gchar * tvb_bytes_to_str (tvbuff_t *tvb, const gint offset, const gint len)
gchar * tvb_bytes_to_str_punct (tvbuff_t *tvb, const gint offset, const gint len, const gchar punct)
tvbuff_t * tvb_child_uncompress (tvbuff_t *parent, tvbuff_t *tvb, const int offset, int comprlen)
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 *, const guint count)
void tvb_ensure_bytes_exist (const tvbuff_t *tvb, const gint offset, const gint length)
guint tvb_ensure_length_remaining (const tvbuff_t *, const gint offset)
char * tvb_fake_unicode (tvbuff_t *tvb, int offset, const int len, const gboolean little_endian)
gint tvb_find_guint8 (tvbuff_t *, const gint offset, const gint maxlength, const guint8 needle)
gint tvb_find_line_end (tvbuff_t *tvb, const gint offset, int len, gint *next_offset, const gboolean desegment)
gint tvb_find_line_end_unquoted (tvbuff_t *tvb, const gint offset, int len, gint *next_offset)
gint tvb_find_tvb (tvbuff_t *haystack_tvb, tvbuff_t *needle_tvb, const gint haystack_offset)
gchar * tvb_format_stringzpad (tvbuff_t *tvb, const gint offset, const gint size)
gchar * tvb_format_stringzpad_wsp (tvbuff_t *tvb, const gint offset, const gint size)
gchar * tvb_format_text (tvbuff_t *tvb, const gint offset, const gint size)
gchar * tvb_format_text_wsp (tvbuff_t *tvb, const gint offset, const gint size)
void tvb_free (tvbuff_t *)
void tvb_free_chain (tvbuff_t *)
guint32 tvb_get_bits (tvbuff_t *tvb, const gint bit_offset, const gint no_of_bits, const gboolean little_endian)
guint16 tvb_get_bits16 (tvbuff_t *tvb, gint bit_offset, const gint no_of_bits, const gboolean little_endian)
guint32 tvb_get_bits32 (tvbuff_t *tvb, gint bit_offset, const gint no_of_bits, const gboolean little_endian)
guint64 tvb_get_bits64 (tvbuff_t *tvb, gint bit_offset, const gint no_of_bits, const gboolean little_endian)
guint8 tvb_get_bits8 (tvbuff_t *tvb, gint bit_offset, const gint no_of_bits)
char * tvb_get_ephemeral_faked_unicode (tvbuff_t *tvb, int offset, const int len, const gboolean little_endian)
guint8 * tvb_get_ephemeral_string (tvbuff_t *tvb, const gint offset, const gint length)
guint8 * tvb_get_ephemeral_stringz (tvbuff_t *tvb, const gint offset, gint *lengthp)
void tvb_get_guid (tvbuff_t *tvb, const gint offset, e_guid_t *guid, const guint representation)
guint8 tvb_get_guint8 (tvbuff_t *, const gint offset)
guint32 tvb_get_ipv4 (tvbuff_t *, const gint offset)
void tvb_get_ipv6 (tvbuff_t *, const gint offset, struct e_in6_addr *addr)
guint32 tvb_get_letoh24 (tvbuff_t *, const gint offset)
guint64 tvb_get_letoh64 (tvbuff_t *, const gint offset)
void tvb_get_letohguid (tvbuff_t *tvb, const gint offset, e_guid_t *guid)
gdouble tvb_get_letohieee_double (tvbuff_t *, const gint offset)
gfloat tvb_get_letohieee_float (tvbuff_t *, const gint offset)
guint32 tvb_get_letohl (tvbuff_t *, const gint offset)
guint16 tvb_get_letohs (tvbuff_t *, const gint offset)
gint tvb_get_nstringz (tvbuff_t *tvb, const gint offset, const guint bufsize, guint8 *buffer)
gint tvb_get_nstringz0 (tvbuff_t *tvb, const gint offset, const guint bufsize, guint8 *buffer)
guint32 tvb_get_ntoh24 (tvbuff_t *, const gint offset)
guint64 tvb_get_ntoh64 (tvbuff_t *, const gint offset)
void tvb_get_ntohguid (tvbuff_t *tvb, const gint offset, e_guid_t *guid)
gdouble tvb_get_ntohieee_double (tvbuff_t *, const gint offset)
gfloat tvb_get_ntohieee_float (tvbuff_t *, const gint offset)
guint32 tvb_get_ntohl (tvbuff_t *, const gint offset)
guint16 tvb_get_ntohs (tvbuff_t *, const gint offset)
const guint8 * tvb_get_ptr (tvbuff_t *, const gint offset, const gint length)
guint8 * tvb_get_seasonal_string (tvbuff_t *tvb, const gint offset, const gint length)
guint8 * tvb_get_seasonal_stringz (tvbuff_t *tvb, const gint offset, gint *lengthp)
guint8 * tvb_get_string (tvbuff_t *tvb, const gint offset, const gint length)
guint8 * tvb_get_stringz (tvbuff_t *tvb, const gint offset, gint *lengthp)
guint tvb_increment_usage_count (tvbuff_t *, const guint count)
guint tvb_length (const tvbuff_t *)
gint tvb_length_remaining (const tvbuff_t *, const gint offset)
void * tvb_memcpy (tvbuff_t *, void *target, const gint offset, size_t length)
void * tvb_memdup (tvbuff_t *, const gint offset, size_t length)
gint tvb_memeql (tvbuff_t *tvb, const gint offset, const guint8 *str, size_t size)
tvbuff_t * tvb_new (tvbuff_type)
tvbuff_t * tvb_new_child_real_data (tvbuff_t *parent, const guint8 *data, const guint length, const gint reported_length)
tvbuff_t * tvb_new_composite (void)
tvbuff_t * tvb_new_real_data (const guint8 *data, const guint length, const gint reported_length)
tvbuff_t * tvb_new_subset (tvbuff_t *backing, const gint backing_offset, const gint backing_length, const gint reported_length)
tvbuff_t * tvb_new_subset_remaining (tvbuff_t *backing, const gint backing_offset)
gboolean tvb_offset_exists (const tvbuff_t *, const gint offset)
guint tvb_offset_from_real_beginning (const tvbuff_t *tvb)
gint tvb_pbrk_guint8 (tvbuff_t *, const gint offset, const gint maxlength, const guint8 *needles, guchar *found_needle)
guint tvb_reported_length (const tvbuff_t *)
gint tvb_reported_length_remaining (const tvbuff_t *tvb, const gint offset)
void tvb_set_child_real_data_tvbuff (tvbuff_t *parent, tvbuff_t *child)
void tvb_set_free_cb (tvbuff_t *, const tvbuff_free_cb_t)
void tvb_set_real_data (tvbuff_t *, const guint8 *data, const guint length, const gint reported_length)
void tvb_set_reported_length (tvbuff_t *, const guint)
void tvb_set_subset (tvbuff_t *tvb, tvbuff_t *backing, const gint backing_offset, const gint backing_length, const gint reported_length)
gint tvb_skip_wsp (tvbuff_t *tvb, const gint offset, const gint maxlength)
gint tvb_skip_wsp_return (tvbuff_t *tvb, const gint offset)
gint tvb_strncaseeql (tvbuff_t *tvb, const gint offset, const gchar *str, const gint size)
gint tvb_strneql (tvbuff_t *tvb, const gint offset, const gchar *str, const gint size)
gint tvb_strnlen (tvbuff_t *, const gint offset, const guint maxlength)
guint tvb_strsize (tvbuff_t *tvb, const gint offset)
tvbuff_t * tvb_uncompress (tvbuff_t *tvb, const int offset, int comprlen)
void tvbuff_cleanup (void)
void tvbuff_init (void)


Generated by  Doxygen 1.6.0   Back to index