FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
igmp_api.h File Reference
+ Include dependency graph for igmp_api.h:

Go to the source code of this file.

Functions

int igmp_enable_disable (u32 sw_if_index, u8 enable, u8 mode)
 IGMP interface enable/disable Called by a router to enable/disable the reception of IGMP messages. More...
 
int igmp_listen (vlib_main_t *vm, u8 enable, u32 sw_if_index, const ip46_address_t *saddr, const ip46_address_t *gaddr)
 igmp listen (RFC3376 Section 2). More...
 

Function Documentation

int igmp_enable_disable ( u32  sw_if_index,
u8  enable,
u8  mode 
)

IGMP interface enable/disable Called by a router to enable/disable the reception of IGMP messages.

Parameters
sw_if_index- Interface
enable- enable/disable
mode- Host (1) or router (0)
int igmp_listen ( vlib_main_t vm,
u8  enable,
u32  sw_if_index,
const ip46_address_t *  saddr,
const ip46_address_t *  gaddr 
)

igmp listen (RFC3376 Section 2).

Parameters
vm- vlib main
enable- 0 == remove (S,G), else add (S,G), aka. include/exclue
sw_if_index- interface sw_if_index
saddr- source address
gaddr- group address
cli_api_configured- if zero, an igmp report has been received on interface

Add/del (S,G) on an interface. If user configured, send a status change report from the interface. If a report was received on interface notify registered api clients.