aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip-neighbor/ip_neighbor_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ip-neighbor/ip_neighbor_api.c')
-rw-r--r--src/vnet/ip-neighbor/ip_neighbor_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/ip-neighbor/ip_neighbor_api.c b/src/vnet/ip-neighbor/ip_neighbor_api.c
index f626577ef0e..ec1e493f368 100644
--- a/src/vnet/ip-neighbor/ip_neighbor_api.c
+++ b/src/vnet/ip-neighbor/ip_neighbor_api.c
@@ -133,6 +133,9 @@ send_ip_neighbor_details (index_t ipni, void *arg)
clib_memset (mp, 0, sizeof (*mp));
mp->_vl_msg_id = ntohs (VL_API_IP_NEIGHBOR_DETAILS + REPLY_MSG_ID_BASE);
mp->context = ctx->context;
+ mp->age =
+ clib_host_to_net_f64 ((vlib_time_now (vlib_get_main ()) -
+ ipn->ipn_time_last_updated));
ip_neighbor_encode (&mp->neighbor, ipn);
vl_api_send_msg (ctx->reg, (u8 *) mp);