FD.io VPP
v21.01.1
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | IGMP_TIMER_ID_INVALID (~0) |
#define | foreach_igmp_timer_type |
IGMP timer types and their values QUERY - the general query timer SRC - source expiration LEAVE - leave latency. More... | |
Typedefs | |
typedef u32 | igmp_timer_id_t |
The id of a running timer. More... | |
typedef void(* | igmp_timer_function_t) (u32 obj, void *data) |
A call-back function invoked when a timer expires;. More... | |
typedef enum igmp_timer_type_t_ | igmp_timer_type_t |
Enumerations | |
enum | igmp_timer_type_t_ { foreach_igmp_timer_type } |
Functions | |
igmp_timer_id_t | igmp_timer_schedule (f64 when, u32 obj, igmp_timer_function_t fn, void *data) |
Schedule a timer to expire in 'when' seconds. More... | |
void | igmp_timer_retire (igmp_timer_id_t *tid) |
int | igmp_timer_is_running (igmp_timer_id_t tid) |
f64 | igmp_timer_get_expiry_time (igmp_timer_id_t t) |
void * | igmp_timer_get_data (igmp_timer_id_t t) |
void | igmp_timer_set_data (igmp_timer_id_t t, void *data) |
u8 * | format_igmp_timer_id (u8 *s, va_list *args) |
u32 | igmp_timer_type_get (igmp_timer_type_t t) |
void | igmp_timer_type_set (igmp_timer_type_t t, u32 v) |
#define foreach_igmp_timer_type |
IGMP timer types and their values QUERY - the general query timer SRC - source expiration LEAVE - leave latency.
Definition at line 62 of file igmp_timer.h.
#define IGMP_TIMER_ID_INVALID (~0) |
Definition at line 28 of file igmp_timer.h.
A call-back function invoked when a timer expires;.
obj | - the [pool] index of the object that scheduled the timer |
data | - Data registered by the client at schedule time. |
Definition at line 35 of file igmp_timer.h.
typedef u32 igmp_timer_id_t |
The id of a running timer.
Definition at line 26 of file igmp_timer.h.
typedef enum igmp_timer_type_t_ igmp_timer_type_t |
enum igmp_timer_type_t_ |
Enumerator | |
---|---|
foreach_igmp_timer_type |
Definition at line 68 of file igmp_timer.h.
Definition at line 235 of file igmp_timer.c.
void* igmp_timer_get_data | ( | igmp_timer_id_t | t | ) |
f64 igmp_timer_get_expiry_time | ( | igmp_timer_id_t | t | ) |
int igmp_timer_is_running | ( | igmp_timer_id_t | tid | ) |
Definition at line 131 of file igmp_timer.c.
void igmp_timer_retire | ( | igmp_timer_id_t * | tid | ) |
Definition at line 221 of file igmp_timer.c.
igmp_timer_id_t igmp_timer_schedule | ( | f64 | when, |
u32 | obj, | ||
igmp_timer_function_t | fn, | ||
void * | data | ||
) |
Schedule a timer to expire in 'when' seconds.
Definition at line 195 of file igmp_timer.c.
void igmp_timer_set_data | ( | igmp_timer_id_t | t, |
void * | data | ||
) |
u32 igmp_timer_type_get | ( | igmp_timer_type_t | t | ) |
void igmp_timer_type_set | ( | igmp_timer_type_t | t, |
u32 | v | ||
) |