FD.io VPP
v18.07.1-19-g511ce25
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) |
Scehdule 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) |
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 60 of file igmp_timer.h.
#define IGMP_TIMER_ID_INVALID (~0) |
Definition at line 28 of file igmp_timer.h.
typedef void(* igmp_timer_function_t) (u32 obj, void *data) |
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 66 of file igmp_timer.h.
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 132 of file igmp_timer.c.
void igmp_timer_retire | ( | igmp_timer_id_t * | tid | ) |
Definition at line 222 of file igmp_timer.c.
igmp_timer_id_t igmp_timer_schedule | ( | f64 | when, |
u32 | obj, | ||
igmp_timer_function_t | fn, | ||
void * | data | ||
) |
Scehdule a timer to expire in 'when' seconds.
Definition at line 196 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 | ||
) |