|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
80 if (config->
mode == IGMP_MODE_ROUTER)
132 if (config->
mode == IGMP_MODE_ROUTER)
146 const ip46_address_t *
saddrs)
148 const ip46_address_t *s1;
192 const ip46_address_t *
saddrs)
194 const ip46_address_t *s1;
225 const ip46_address_t *
saddrs)
227 ip46_address_t *intersect;
228 const ip46_address_t *s1;
238 if (s1->ip4.as_u32 ==
src->key->ip4.as_u32)
291 #define _(v,t) case IGMP_GROUP_TIMER_##v: return (format (s, "%s", t));
302 u32 indent = va_arg (*args,
u32);
enum igmp_mode_t_ igmp_mode_t
vnet_interface_main_t * im
IGMP source The representation of a specified source address with in multicast group.
u32 igmp_group_n_srcs(const igmp_group_t *group, igmp_filter_mode_t mode)
igmp_src_t * srcs
pool of sources
u32 igmp_group_index(const igmp_group_t *g)
#define clib_memcpy(d, s, n)
igmp_config_t * igmp_config_get(u32 index)
Get the config from the pool index.
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
void igmp_timer_retire(igmp_timer_id_t *tid)
IGMP interface configuration.
#define IGMP_TIMER_ID_INVALID
void igmp_src_refresh(igmp_src_t *src)
void igmp_group_src_remove(igmp_group_t *group, igmp_src_t *src)
static void clib_mem_free(void *p)
igmp_src_t * igmp_src_lookup(igmp_group_t *group, const igmp_key_t *key)
igmp group lookup
@ foreach_igmp_group_timer
void igmp_group_clear(igmp_group_t **group)
void igmp_proxy_device_mfib_path_add_del(igmp_group_t *group, u8 add)
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
static uword hash_elts(void *v)
#define hash_set_mem(h, key, value)
IGMP group A multicast group address for which reception has been requested.
vl_api_tunnel_mode_t mode
#define pool_put(P, E)
Free an object E in pool P.
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 n_reports_sent
The number of times the last report has been sent.
u8 * format_igmp_timer_id(u8 *s, va_list *args)
igmp_src_t * igmp_group_src_update(igmp_group_t *group, const igmp_key_t *skey, igmp_mode_t mode)
u32 config
The pool index of the config object this group is in.
#define IGMP_GROUP_N_TIMERS
#define hash_create_mem(elts, key_bytes, value_bytes)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
static u8 ip46_address_is_equal(const ip46_address_t *ip46_1, const ip46_address_t *ip46_2)
igmp_group_t * igmp_group_get(u32 index)
u32 igmp_src_index(igmp_src_t *src)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
#define FOR_EACH_SRC(_src, _group, _filter, _body)
#define hash_unset_mem(h, key)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
vnet_main_t * vnet_get_main(void)
u32 timers[IGMP_GROUP_N_TIMERS]
A vector of running timers for the group.
u32 igmp_config_index(const igmp_config_t *c)
Get the pool index for a config.
igmp_group_t * groups
pool of groups
u8 * format_igmp_group(u8 *s, va_list *args)
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
void igmp_src_free(igmp_src_t *src)
#define hash_get_mem(h, key)
ip46_address_t * igmp_group_new_intersect_present(igmp_group_t *group, igmp_filter_mode_t mode, const ip46_address_t *saddrs)
igmp_key_t * key
The group's key within the per-interface config.
format_function_t format_vnet_sw_if_index_name
description fragment has unexpected format
vl_api_ip4_address_t saddrs[n_srcs]
u8 * format_igmp_group_timer_type(u8 *s, va_list *args)
#define vec_foreach(var, vec)
Vector iterator.
uword * igmp_group_by_key
Database of groups joined on the link.
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
void igmp_group_free_all_srcs(igmp_group_t *group)
igmp_filter_mode_t router_filter_mode
The current filter mode of the group (see 6.2.1)
enum igmp_group_timer_type_t_ igmp_group_timer_type_t
Types of timers maintained for each group.
enum igmp_filter_mode_t_ igmp_filter_mode_t
igmp_group_t * igmp_group_alloc(igmp_config_t *config, const igmp_key_t *gkey, igmp_filter_mode_t mode)
static void * clib_mem_alloc(uword size)
vl_api_fib_path_type_t type
u8 * format_igmp_src(u8 *s, va_list *args)
collection of data related to IGMP
uword * igmp_src_by_key[IGMP_N_FILTER_MODES]
Source list per-filter mode.
igmp_src_t * igmp_src_alloc(u32 group_index, const igmp_key_t *skey, igmp_mode_t mode)
ip46_address_t igmp_key_t
IGMP Key Used to index groups within an interface config and sources within a list.