FD.io VPP
v19.04-6-g6f05f72
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | ADJ_INDEX_INVALID ((u32)~0) |
Invalid ADJ index - used when no adj is known likewise blazoned capitals INVALID speak volumes where ~0 does not. More... | |
Typedefs | |
typedef u32 | adj_index_t |
An index for adjacencies. More... | |
typedef enum adj_walk_rc_t_ | adj_walk_rc_t |
return codes from a adjacency walker callback function More... | |
typedef adj_walk_rc_t(* | adj_walk_cb_t) (adj_index_t ai, void *ctx) |
Call back function when walking adjacencies. More... | |
Enumerations | |
enum | adj_walk_rc_t_ { ADJ_WALK_RC_STOP, ADJ_WALK_RC_CONTINUE } |
return codes from a adjacency walker callback function More... | |
#define ADJ_INDEX_INVALID ((u32)~0) |
Invalid ADJ index - used when no adj is known likewise blazoned capitals INVALID speak volumes where ~0 does not.
Definition at line 36 of file adj_types.h.
typedef u32 adj_index_t |
An index for adjacencies.
Alas 'C' is not typesafe enough to b0rk when a u32 is used instead of an adi_index_t. However, for us humans, we can glean much more intent from the declaration foo bar(adj_index_t t); than we can from foo bar(u32 t);
Definition at line 30 of file adj_types.h.
typedef adj_walk_rc_t(* adj_walk_cb_t) (adj_index_t ai, void *ctx) |
Call back function when walking adjacencies.
Definition at line 50 of file adj_types.h.
typedef enum adj_walk_rc_t_ adj_walk_rc_t |
return codes from a adjacency walker callback function
enum adj_walk_rc_t_ |
return codes from a adjacency walker callback function
Enumerator | |
---|---|
ADJ_WALK_RC_STOP | |
ADJ_WALK_RC_CONTINUE |
Definition at line 41 of file adj_types.h.