FD.io VPP
v18.07-34-g55fbdb9
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | abf_policy_t_ |
An ACL based Forwading 'policy'. More... | |
Macros | |
#define | ABF_PLUGIN_VERSION_MAJOR 1 |
#define | ABF_PLUGIN_VERSION_MINOR 0 |
Typedefs | |
typedef struct abf_policy_t_ | abf_policy_t |
An ACL based Forwading 'policy'. More... | |
typedef int(* | abf_policy_walk_cb_t) (index_t index, void *ctx) |
Callback function invoked during a walk of all policies. More... | |
Functions | |
abf_policy_t * | abf_policy_get (index_t index) |
Get an ABF object from its VPP index. More... | |
index_t | abf_policy_find (u32 policy_id) |
Find a ABF object from the client's policy ID. More... | |
void | abf_policy_update (u32 policy_id, u32 acl_index, const fib_route_path_t *rpaths) |
Create or update an ABF Policy. More... | |
int | abf_policy_delete (u32 policy_id, const fib_route_path_t *rpaths) |
Delete paths from an ABF Policy. More... | |
void | abf_policy_walk (abf_policy_walk_cb_t cb, void *ctx) |
Walk/visit each of the ABF policies. More... | |
Variables | |
fib_node_type_t | abf_policy_fib_node_type |
The FIB node type for ABF policies. More... | |
#define ABF_PLUGIN_VERSION_MAJOR 1 |
Definition at line 21 of file abf_policy.h.
#define ABF_PLUGIN_VERSION_MINOR 0 |
Definition at line 22 of file abf_policy.h.
typedef struct abf_policy_t_ abf_policy_t |
An ACL based Forwading 'policy'.
This comprises the ACL index to match against and the forwarding path to take if the match is successfull.
ABF policies are then 'attached' to interfaces. An input feature will run through the list of policies a match will divert the packet, if all miss then we continues down the interface's feature arc
Callback function invoked during a walk of all policies.
Definition at line 102 of file abf_policy.h.
int abf_policy_delete | ( | u32 | policy_id, |
const fib_route_path_t * | rpaths | ||
) |
Delete paths from an ABF Policy.
If no more paths exist, the policy is deleted.
policy_id | User defined Policy ID |
rpaths | The set of paths to forward remove |
Definition at line 175 of file abf_policy.c.
Find a ABF object from the client's policy ID.
policy_id | Client's defined policy ID |
Definition at line 66 of file abf_policy.c.
abf_policy_t* abf_policy_get | ( | index_t | index | ) |
Get an ABF object from its VPP index.
Definition at line 41 of file abf_policy.c.
void abf_policy_update | ( | u32 | policy_id, |
u32 | acl_index, | ||
const fib_route_path_t * | rpaths | ||
) |
Create or update an ABF Policy.
policy_id | User defined Policy ID |
acl_index | The ACL the policy with match on |
rpaths | The set of paths to add to the forwarding set |
Definition at line 80 of file abf_policy.c.
void abf_policy_walk | ( | abf_policy_walk_cb_t | cb, |
void * | ctx | ||
) |
Walk/visit each of the ABF policies.
Definition at line 328 of file abf_policy.c.
fib_node_type_t abf_policy_fib_node_type |
The FIB node type for ABF policies.
The FIB node type for ABF policies.
Definition at line 26 of file abf_policy.c.