summaryrefslogtreecommitdiffstats
path: root/src/vnet/udp
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-06-07 02:08:07 -0700
committerFlorin Coras <florin.coras@gmail.com>2018-06-21 07:44:37 +0000
commit586479a73162426a02b2bbc8ab724e0dfb9921e0 (patch)
tree05701dd882dbc218ffb1bd28f20fce50bbcda61c /src/vnet/udp
parent0c58ad4045c03552a6c6100e8e8441558aaea972 (diff)
BIER neighbor stats
Change-Id: I2f638f1932b4aeddf2408c06d1b8393551675b72 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/udp')
-rw-r--r--src/vnet/udp/udp_encap.c2
-rw-r--r--src/vnet/udp/udp_encap.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/udp/udp_encap.c b/src/vnet/udp/udp_encap.c
index 4b4d5412ca7..914680f98a2 100644
--- a/src/vnet/udp/udp_encap.c
+++ b/src/vnet/udp/udp_encap.c
@@ -599,7 +599,7 @@ udp_encap_walk (udp_encap_walk_cb_t cb, void *ctx)
/* *INDENT-OFF* */
pool_foreach_index(uei, udp_encap_pool,
({
- if (!cb(uei, ctx))
+ if (WALK_STOP == cb(uei, ctx))
break;
}));
/* *INDENT-ON* */
diff --git a/src/vnet/udp/udp_encap.h b/src/vnet/udp/udp_encap.h
index 185d5e7f7f9..e20edec7be5 100644
--- a/src/vnet/udp/udp_encap.h
+++ b/src/vnet/udp/udp_encap.h
@@ -131,7 +131,7 @@ extern void udp_encap_get_stats (index_t uei, u64 * packets, u64 * bytes);
* Callback function invoked when walking all encap objects.
* Return non-zero to continue the walk.
*/
-typedef int (*udp_encap_walk_cb_t) (index_t uei, void *ctx);
+typedef walk_rc_t (*udp_encap_walk_cb_t) (index_t uei, void *ctx);
/**
* Walk each of the encap objects