|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
36 #define IGMP_DEFAULT_ROBUSTNESS_VARIABLE (2)
38 #define IGMP_DBG(...) \
39 vlib_log_debug (igmp_main.logger, __VA_ARGS__);
46 #if CLIB_ARCH_IS_BIG_ENDIAN
47 #define IGMP_GENERAL_QUERY_ADDRESS (0xE0000001)
48 #define IGMP_MEMBERSHIP_REPORT_ADDRESS (0xE0000016)
49 #define IGMP_SSM_DEFAULT (0xE8000000)
51 #define IGMP_GENERAL_QUERY_ADDRESS (0x010000E0)
52 #define IGMP_MEMBERSHIP_REPORT_ADDRESS (0x160000E0)
53 #define IGMP_SSM_DEFAULT (0x000000E8)
57 #define group_ptr(p, l) ((igmp_membership_group_v3_t *)((u8*)(p) + (l)))
58 #define group_cptr(p, l) ((const igmp_membership_group_v3_t *)((u8*)(p) + (l)))
142 const ip46_address_t * saddr,
const ip46_address_t *
gaddr);
153 const ip46_address_t * saddr,
const ip46_address_t *
gaddr);
igmp_config_t * configs
pool of configs
enum igmp_mode_t_ igmp_mode_t
IGMP source The representation of a specified source address with in multicast group.
igmp_src_t * srcs
pool of sources
IGMP interface configuration.
int igmp_enable_disable(u32 sw_if_index, u8 enable, igmp_mode_t mode)
IGMP interface enable/disable.
IGMP group A multicast group address for which reception has been requested.
vl_api_tunnel_mode_t mode
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
int igmp_listen(vlib_main_t *vm, igmp_filter_mode_t filter, u32 sw_if_index, const ip46_address_t *saddr, const ip46_address_t *gaddr)
igmp listen Called by a host to request reception of multicast packets
vlib_log_class_t logger
logger - VLIB log class
u32 * n_configs_per_mfib_index
the number of igmp configs for each mfib_index (VRF)
igmp_group_t * groups
pool of groups
struct igmp_main_t_ igmp_main_t
collection of data related to IGMP
u32 * igmp_config_by_sw_if_index
per-interface DB of configs
vpe_client_registration_t * api_clients
API client registered for events.
u32 * igmp_proxy_device_by_vrf_id
per-vrf DB of proxy devices
vl_api_ip4_address_t gaddr
uword * igmp_api_client_by_client_index
enum igmp_filter_mode_t_ igmp_filter_mode_t
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.
igmp_proxy_device_t * proxy_devices
pool of proxy devices
vl_api_interface_index_t sw_if_index
collection of data related to IGMP
u16 msg_id_base
API base message ID.