48 if (IGMP_MODE_ROUTER == src->
mode)
82 src->
group = group_index;
85 if (IGMP_MODE_ROUTER == mode)
void igmp_timer_retire(igmp_timer_id_t *tid)
u32 group
The group this source is on.
u32 timers[IGMP_SRC_N_TIMERS]
Timers.
void igmp_src_blocked(igmp_src_t *src)
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
void igmp_src_free(igmp_src_t *src)
igmp_timer_id_t igmp_timer_schedule(f64 when, u32 obj, igmp_timer_function_t fn, void *data)
Schedule a timer to expire in 'when' seconds.
void igmp_src_refresh(igmp_src_t *src)
u32 igmp_timer_type_get(igmp_timer_type_t t)
memset(h->entries, 0, sizeof(h->entries[0])*entries)
igmp_src_t * igmp_src_alloc(u32 group_index, const igmp_key_t *skey, igmp_mode_t mode)
igmp_config_t * igmp_config_get(u32 index)
Get the config from the pool index.
void igmp_event(igmp_filter_mode_t filter, u32 sw_if_index, const ip46_address_t *saddr, const ip46_address_t *gaddr)
Send an IGMP event to listening parties.
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
u32 config
The pool index of the config object this group is in.
void igmp_group_src_remove(igmp_group_t *group, igmp_src_t *src)
#define pool_put(P, E)
Free an object E in pool P.
collection of data related to IGMP
#define clib_memcpy(a, b, c)
#define IGMP_TIMER_ID_INVALID
igmp_group_t * igmp_group_get(u32 index)
On expiry the source has not been refreshed by a query and can now be reaped.
igmp_mode_t mode
the mode that provided this source
u32 igmp_src_index(igmp_src_t *src)
static void clib_mem_free(void *p)
ip46_address_t igmp_key_t
IGMP Key Used to index groups within an interface config and sources within a list.
static void * clib_mem_alloc(uword size)
IGMP interface configuration.
igmp_key_t * key
The group's key within the per-interface config.
IGMP group A multicast group address for which reception has been requested.
igmp_key_t * key
The source's key.
enum igmp_mode_t_ igmp_mode_t
u32 igmp_group_n_srcs(const igmp_group_t *group, igmp_filter_mode_t mode)
void igmp_group_clear(igmp_group_t *group)
igmp_src_t * srcs
pool of sources
IGMP source The representation of a specified source address with in multicast group.
static void igmp_src_exp(u32 obj, void *dat)