80 if (config->
mode == IGMP_MODE_ROUTER)
131 if (config->
mode == IGMP_MODE_ROUTER)
145 const ip46_address_t * saddrs)
147 const ip46_address_t *s1;
191 const ip46_address_t * saddrs)
193 const ip46_address_t *s1;
224 const ip46_address_t * saddrs)
226 ip46_address_t *intersect;
227 const ip46_address_t *s1;
237 if (s1->ip4.as_u32 == src->
key->ip4.as_u32)
290 #define _(v,t) case IGMP_GROUP_TIMER_##v: return (format (s, "%s", t)); 301 u32 indent = va_arg (*args,
u32);
void igmp_proxy_device_mfib_path_add_del(igmp_group_t *group, u8 add)
void igmp_timer_retire(igmp_timer_id_t *tid)
vnet_main_t * vnet_get_main(void)
void igmp_group_free_all_srcs(igmp_group_t *group)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
igmp_src_t * igmp_group_src_update(igmp_group_t *group, const igmp_key_t *skey, igmp_mode_t mode)
#define hash_set_mem(h, key, value)
enum igmp_group_timer_type_t_ igmp_group_timer_type_t
Types of timers maintained for each group.
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
format_function_t format_vnet_sw_if_index_name
void igmp_src_free(igmp_src_t *src)
void igmp_src_refresh(igmp_src_t *src)
#define clib_memcpy(d, s, n)
u32 n_reports_sent
The number of times the last report has been sent.
ip46_address_t * igmp_group_present_minus_new(igmp_group_t *group, igmp_filter_mode_t mode, const ip46_address_t *saddrs)
the set of present sources minus the new set
u32 igmp_config_index(const igmp_config_t *c)
Get the pool index for a config.
igmp_src_t * igmp_src_alloc(u32 group_index, const igmp_key_t *skey, igmp_mode_t mode)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
igmp_config_t * igmp_config_get(u32 index)
Get the config from the pool index.
uword * igmp_group_by_key
Database of groups joined on the link.
#define hash_create_mem(elts, key_bytes, value_bytes)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
#define hash_unset_mem(h, key)
u8 * format_igmp_src(u8 *s, va_list *args)
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)
igmp_src_t * igmp_src_lookup(igmp_group_t *group, const igmp_key_t *key)
igmp group lookup
#define pool_put(P, E)
Free an object E in pool P.
collection of data related to IGMP
igmp_group_t * igmp_group_alloc(igmp_config_t *config, const igmp_key_t *gkey, igmp_filter_mode_t mode)
u32 timers[IGMP_GROUP_N_TIMERS]
A vector of running timers for the group.
u8 * format_igmp_group(u8 *s, va_list *args)
u8 * format_igmp_group_timer_type(u8 *s, va_list *args)
enum igmp_filter_mode_t_ igmp_filter_mode_t
vl_api_vxlan_gbp_api_tunnel_mode_t mode
#define IGMP_TIMER_ID_INVALID
#define IGMP_GROUP_N_TIMERS
static uword hash_elts(void *v)
igmp_group_t * igmp_group_get(u32 index)
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)
ip46_address_t * igmp_group_new_intersect_present(igmp_group_t *group, igmp_filter_mode_t mode, const ip46_address_t *saddrs)
igmp_filter_mode_t router_filter_mode
The current filter mode of the group (see 6.2.1)
IGMP interface configuration.
u8 * format_igmp_timer_id(u8 *s, va_list *args)
igmp_group_t * groups
pool of groups
#define ip46_address_is_equal(a1, a2)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define FOR_EACH_SRC(_src, _group, _filter, _body)
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.
#define hash_get_mem(h, key)
enum igmp_mode_t_ igmp_mode_t
#define vec_foreach(var, vec)
Vector iterator.
ip46_address_t * igmp_group_new_minus_present(igmp_group_t *group, igmp_filter_mode_t mode, const ip46_address_t *saddrs)
the set of new sources minus the present set
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
uword * igmp_src_by_key[IGMP_N_FILTER_MODES]
Source list per-filter mode.
u32 igmp_group_index(const igmp_group_t *g)
IGMP source The representation of a specified source address with in multicast group.