Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
mcast_stream.h File Reference
#include <epan/tap.h>

Go to the source code of this file.

Classes

struct  buffer
 
struct  _mcast_stream_info
 
struct  _mcaststream_tapinfo
 

Macros

#define MAX_SPEED   200000
 

Typedefs

typedef struct buffer t_buffer
 
typedef struct _mcast_stream_info mcast_stream_info_t
 
typedef struct _mcaststream_tapinfo mcaststream_tapinfo_t
 
typedef void(* mcaststream_tap_reset_cb) (mcaststream_tapinfo_t *tapinfo)
 
typedef void(* mcaststream_tap_draw_cb) (mcaststream_tapinfo_t *tapinfo)
 

Functions

GString * register_tap_listener_mcast_stream (mcaststream_tapinfo_t *tapinfo)
 Registers the mcast_streams tap listener (if not already done).
 
void remove_tap_listener_mcast_stream (mcaststream_tapinfo_t *tapinfo)
 Remove the mcast_streams tap listener.
 
void mcaststream_reset (mcaststream_tapinfo_t *tapinfo)
 Free all accumulated mcast stream tap data.
 
tap_packet_status mcaststream_packet (void *tapdata, packet_info *pinfo, epan_dissect_t *edt, const void *data, tap_flags_t flags)
 Tap packet callback for the mcast_streams tap.
 

Variables

int32_t mcast_stream_trigger
 
int32_t mcast_stream_bufferalarm
 
uint16_t mcast_stream_burstint
 
int32_t mcast_stream_emptyspeed
 
int32_t mcast_stream_cumulemptyspeed
 

Detailed Description

Copyright 2006, Iskratel , Slovenia By Jakob Bratkovic j.bra.nosp@m.tkov.nosp@m.ic@is.nosp@m.krat.nosp@m.el.si and Miha Jemec m.jem.nosp@m.ec@i.nosp@m.skrat.nosp@m.el.s.nosp@m.i

based on rtp_stream.h Copyright 2003, Alcatel Business Systems By Lars Ruoff lars..nosp@m.ruof.nosp@m.f@gmx.nosp@m..net

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ mcaststream_packet()

tap_packet_status mcaststream_packet ( void *  tapdata,
packet_info pinfo,
epan_dissect_t edt,
const void *  data,
tap_flags_t  flags 
)

Tap packet callback for the mcast_streams tap.

Tap callback (tap_packet_cb) for Mcast stream tap updates. Useful if for some reason you can't register the default listener, but want to make use of the existing Mcast calculations.

Parameters
tapdataPointer to the mcaststream_tapinfo_t to update; cast from void* inside the function.
pinfoPacket metadata for the current packet.
edtThe epan dissect context for the current packet.
dataTap-specific data for the current packet.
flagsTap flags for the current packet.
Returns
TAP_PACKET_REDRAW if the display should be refreshed after this packet, TAP_PACKET_DONT_REDRAW otherwise.

◆ mcaststream_reset()

void mcaststream_reset ( mcaststream_tapinfo_t tapinfo)

Free all accumulated mcast stream tap data.

Parameters
tapinfoThe mcast stream tap state structure to clear.

◆ register_tap_listener_mcast_stream()

GString * register_tap_listener_mcast_stream ( mcaststream_tapinfo_t tapinfo)

Registers the mcast_streams tap listener (if not already done).

From that point on, the Mcast streams list will be updated with every redissection. This function is also the entry point for the initialization routine of the tap system. So whenever mcast_stream.c is added to the list of WIRESHARK_TAP_SRCs, the tap will be registered on startup. If not, it will be registered on demand by the mcast_streams and mcast_analysis functions that need it.

Parameters
tapinfoThe mcast stream tap state structure to populate.
Returns
NULL on success, or a GString describing the registration error (the caller must free it with g_string_free()).

◆ remove_tap_listener_mcast_stream()

void remove_tap_listener_mcast_stream ( mcaststream_tapinfo_t tapinfo)

Remove the mcast_streams tap listener.

Parameters
tapinfoThe mcast stream tap state structure whose listener should be removed.