Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
GBP: redirect contracts
[vpp.git]
/
src
/
plugins
/
gbp
/
gbp_route_domain.c
diff --git
a/src/plugins/gbp/gbp_route_domain.c
b/src/plugins/gbp/gbp_route_domain.c
index
c030ee5
..
df3959e
100644
(file)
--- a/
src/plugins/gbp/gbp_route_domain.c
+++ b/
src/plugins/gbp/gbp_route_domain.c
@@
-62,6
+62,12
@@
vlib_log_class_t grd_logger;
#define GBP_BD_DBG(...) \
vlib_log_debug (grd_logger, __VA_ARGS__);
#define GBP_BD_DBG(...) \
vlib_log_debug (grd_logger, __VA_ARGS__);
+index_t
+gbp_route_domain_index (const gbp_route_domain_t * grd)
+{
+ return (grd - gbp_route_domain_pool);
+}
+
gbp_route_domain_t *
gbp_route_domain_get (index_t i)
{
gbp_route_domain_t *
gbp_route_domain_get (index_t i)
{