aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ip-neighbor/ip_neighbor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/ip-neighbor/ip_neighbor.c b/src/vnet/ip-neighbor/ip_neighbor.c
index afb97acb39c..a0179f7f375 100644
--- a/src/vnet/ip-neighbor/ip_neighbor.c
+++ b/src/vnet/ip-neighbor/ip_neighbor.c
@@ -1047,7 +1047,8 @@ ip_neighbor_walk (ip46_type_t type,
/* *INDENT-OFF* */
hash_foreach (key, ipni, *hash,
({
- cb (ipni, ctx);
+ if (WALK_STOP == cb (ipni, ctx))
+ break;
}));
/* *INDENT-ON* */
}
@@ -1063,7 +1064,8 @@ ip_neighbor_walk (ip46_type_t type,
/* *INDENT-OFF* */
hash_foreach (key, ipni, hash,
({
- cb (ipni, ctx);
+ if (WALK_STOP == cb (ipni, ctx))
+ break;
}));
/* *INDENT-ON* */
}