summaryrefslogtreecommitdiffstats
path: root/src/vnet/adj/adj_delegate.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-12-15 22:26:37 +0000
committerNeale Ranns <nranns@cisco.com>2019-12-15 22:26:37 +0000
commit77cfc0171da0fa2b305378731a5fefd659d8947d (patch)
tree954e04cafa9c30395c293487c100d59dc7ab31d8 /src/vnet/adj/adj_delegate.h
parent5d4b8912d2fe186b4fb920a72b3a2f7b556f4e7d (diff)
fib: Adjacency creation notifications for dlegates
Type: feature Signed-off-by: Neale Ranns <nranns@cisco.com> Change-Id: I3feddfe44dee528b9ca05aa0150e9423306ae49d
Diffstat (limited to 'src/vnet/adj/adj_delegate.h')
-rw-r--r--src/vnet/adj/adj_delegate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/adj/adj_delegate.h b/src/vnet/adj/adj_delegate.h
index f6da245bb52..096c1823e27 100644
--- a/src/vnet/adj/adj_delegate.h
+++ b/src/vnet/adj/adj_delegate.h
@@ -78,11 +78,17 @@ typedef void (*adj_delegate_adj_deleted_t)(adj_delegate_t *aed);
typedef u8 * (*adj_delegate_format_t)(const adj_delegate_t *aed, u8 *s);
/**
+ * Notification that an adjacency has been created
+ */
+typedef u8 * (*adj_delegate_adj_created_t)(adj_index_t ai);
+
+/**
* An ADJ delegate virtual function table
*/
typedef struct adj_delegate_vft_t_ {
adj_delegate_format_t adv_format;
adj_delegate_adj_deleted_t adv_adj_deleted;
+ adj_delegate_adj_created_t adv_adj_created;
} adj_delegate_vft_t;
/**