network: route: expose route_hash_ops

This commit is contained in:
Yu Watanabe
2021-12-01 03:56:00 +09:00
parent 9e11bd58fb
commit 28870a9d2e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ int route_compare_func(const Route *a, const Route *b) {
}
}
DEFINE_PRIVATE_HASH_OPS_WITH_KEY_DESTRUCTOR(
DEFINE_HASH_OPS_WITH_KEY_DESTRUCTOR(
route_hash_ops,
Route,
route_hash_func,
+1
View File
@@ -70,6 +70,7 @@ typedef struct Route {
void route_hash_func(const Route *route, struct siphash *state);
int route_compare_func(const Route *a, const Route *b);
extern const struct hash_ops route_hash_ops;
int route_new(Route **ret);
Route *route_free(Route *route);