FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
adj_types.h File Reference
+ Include dependency graph for adj_types.h:
+ This graph shows which files directly or indirectly include this file:

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

Macro Definition Documentation

◆ ADJ_INDEX_INVALID

#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 Documentation

◆ adj_index_t

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.

◆ adj_walk_cb_t

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.

◆ adj_walk_rc_t

return codes from a adjacency walker callback function

Enumeration Type Documentation

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