FD.io VPP  v19.08-27-gf4dcae4
Vector Packet Processing
igmp_timer.h File Reference
+ Include dependency graph for igmp_timer.h:
+ This graph shows which files directly or indirectly include this file:

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)
 
u8format_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)
 

Macro Definition Documentation

#define foreach_igmp_timer_type
Value:
_ (0x1, QUERY) \
_ (0x2, SRC) \
_ (0x3, LEAVE) \
_ (0x4, REPORT_INTERVAL)

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.

Typedef Documentation

typedef void(* igmp_timer_function_t) (u32 obj, void *data)

A call-back function invoked when a timer expires;.

Parameters
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.

The id of a running timer.

Definition at line 26 of file igmp_timer.h.

Enumeration Type Documentation

Enumerator
foreach_igmp_timer_type 

Definition at line 68 of file igmp_timer.h.

Function Documentation

u8* format_igmp_timer_id ( u8 s,
va_list *  args 
)

Definition at line 236 of file igmp_timer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* igmp_timer_get_data ( igmp_timer_id_t  t)

Definition at line 112 of file igmp_timer.c.

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 196 of file igmp_timer.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void igmp_timer_set_data ( igmp_timer_id_t  t,
void *  data 
)

Definition at line 122 of file igmp_timer.c.

+ Here is the caller graph for this function:

u32 igmp_timer_type_get ( igmp_timer_type_t  t)

Definition at line 68 of file igmp_timer.c.

+ Here is the caller graph for this function:

void igmp_timer_type_set ( igmp_timer_type_t  t,
u32  v 
)

Definition at line 75 of file igmp_timer.c.

+ Here is the caller graph for this function: