diff options
Diffstat (limited to 'hicn-light/src/hicn/core/nexthops.c')
-rw-r--r-- | hicn-light/src/hicn/core/nexthops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/nexthops.c b/hicn-light/src/hicn/core/nexthops.c index 70089399d..1a6096777 100644 --- a/hicn-light/src/hicn/core/nexthops.c +++ b/hicn-light/src/hicn/core/nexthops.c @@ -29,6 +29,12 @@ int nexthops_disable(nexthops_t *nexthops, off_t offset) { return 0; } +int nexthops_disable_all(nexthops_t *nexthops) { + nexthops->flags = ~0; + nexthops->cur_elts = 0; + return 0; +} + void nexthops_reset(nexthops_t *nexthops) { nexthops->flags = 0; nexthops->cur_elts = nexthops->num_elts; |