X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ffib%2Ffib_path_list.h;h=6ed251fa1bb823cc6115e27bb43754080a4922ad;hb=5ae454312c2ffccf47e4b8c430c81f1a3d067e67;hp=380eb1a6864aa472fb60edd255f66784b9645c38;hpb=775f73c6baaf9bc2283e7ab9752c81984823be99;p=vpp.git diff --git a/src/vnet/fib/fib_path_list.h b/src/vnet/fib/fib_path_list.h index 380eb1a6864..6ed251fa1bb 100644 --- a/src/vnet/fib/fib_path_list.h +++ b/src/vnet/fib/fib_path_list.h @@ -104,6 +104,13 @@ typedef enum fib_path_list_flags_t_ { _item <= FIB_PATH_LIST_ATTRIBUTE_LAST; \ _item++) +/** + * The flags on a path-list that contribute to its key in the DB. + * So path-lists with these flags different are not conisdered the + * same. + */ +#define FIB_PATH_LIST_KEY_FLAGS (FIB_PATH_LIST_FLAG_NO_URPF) + extern fib_node_index_t fib_path_list_create(fib_path_list_flags_t flags, const fib_route_path_t *paths); extern fib_node_index_t fib_path_list_create_special(dpo_proto_t nh_proto, @@ -118,10 +125,10 @@ extern fib_node_index_t fib_path_list_copy_and_path_remove( fib_node_index_t pl_index, fib_path_list_flags_t flags, const fib_route_path_t *path); -extern fib_node_index_t fib_path_list_path_add ( +extern fib_node_index_t* fib_path_list_paths_add ( fib_node_index_t path_list_index, const fib_route_path_t *rpaths); -extern fib_node_index_t fib_path_list_path_remove ( +extern fib_node_index_t* fib_path_list_paths_remove ( fib_node_index_t path_list_index, const fib_route_path_t *rpaths); @@ -196,8 +203,6 @@ extern void fib_path_list_walk_w_ext(fib_node_index_t pl_index, extern void fib_path_list_module_init(void); -extern void fib_path_list_module_init(void); - /* * functions for testing. */