FD.io VPP  v18.11-rc0-18-g2a3fb1a
Vector Packet Processing
igmp_config.h File Reference
+ Include dependency graph for igmp_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  igmp_config_t_
 IGMP interface configuration. More...
 

Macros

#define IGMP_CONFIG_N_TIMERS   (IGMP_CONFIG_TIMER_GENERAL_QUERY + 1)
 
#define FOR_EACH_GROUP(_group, _config, _body)
 

Typedefs

typedef enum igmp_config_timer_type_t_ igmp_config_timer_type_t
 
typedef struct igmp_config_t_ igmp_config_t
 IGMP interface configuration. More...
 

Enumerations

enum  igmp_config_timer_type_t_ { IGMP_CONFIG_TIMER_GENERAL_REPORT, IGMP_CONFIG_TIMER_GENERAL_QUERY }
 

Functions

void igmp_clear_config (igmp_config_t *config)
 igmp clear config More...
 
igmp_config_tigmp_config_lookup (u32 sw_if_index)
 igmp config lookup More...
 
u32 igmp_config_index (const igmp_config_t *c)
 Get the pool index for a config. More...
 
igmp_config_tigmp_config_get (u32 index)
 Get the config from the pool index. More...
 
igmp_group_tigmp_group_lookup (igmp_config_t *config, const igmp_key_t *key)
 igmp group lookup More...
 

Macro Definition Documentation

#define FOR_EACH_GROUP (   _group,
  _config,
  _body 
)
Value:
do { \
igmp_key_t *__key__; \
u32 __gid__; \
hash_foreach_mem(__key__, __gid__, _config->igmp_group_by_key, \
({ \
_group = pool_elt_at_index(igmp_main.groups, __gid__); \
do { _body; } while (0); \
})); \
} while (0);
unsigned int u32
Definition: types.h:88
#define hash_foreach_mem(key_var, value_var, h, body)
Definition: hash.h:461
ip46_address_t igmp_key_t
IGMP Key Used to index groups within an interface config and sources within a list.
Definition: igmp_types.h:49

Definition at line 76 of file igmp_config.h.

#define IGMP_CONFIG_N_TIMERS   (IGMP_CONFIG_TIMER_GENERAL_QUERY + 1)

Definition at line 38 of file igmp_config.h.

Typedef Documentation

typedef struct igmp_config_t_ igmp_config_t

IGMP interface configuration.

Enumeration Type Documentation

Enumerator
IGMP_CONFIG_TIMER_GENERAL_REPORT 

On expiry send a general report.

IGMP_CONFIG_TIMER_GENERAL_QUERY 

On expiry send a general query.

Definition at line 25 of file igmp_config.h.

Function Documentation

void igmp_clear_config ( igmp_config_t config)

igmp clear config

Parameters
config- igmp configuration

Clear all (S,G)s on specified config and remove this config from pool.

Definition at line 22 of file igmp_config.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

igmp_config_t* igmp_config_get ( u32  index)

Get the config from the pool index.

Definition at line 70 of file igmp_config.c.

+ Here is the caller graph for this function:

u32 igmp_config_index ( const igmp_config_t c)

Get the pool index for a config.

Definition at line 64 of file igmp_config.c.

+ Here is the caller graph for this function:

igmp_config_t* igmp_config_lookup ( u32  sw_if_index)

igmp config lookup

Parameters
im- igmp main
sw_if_index- interface sw_if_index

Definition at line 45 of file igmp_config.c.

+ Here is the caller graph for this function:

igmp_group_t* igmp_group_lookup ( igmp_config_t config,
const igmp_key_t key 
)

igmp group lookup

Parameters
config- igmp configuration
key- igmp key

Definition at line 76 of file igmp_config.c.

+ Here is the caller graph for this function: