diff options
author | Neale Ranns <nranns@cisco.com> | 2018-02-12 08:36:11 -0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-02-15 14:22:33 +0000 |
commit | 8b30e471df4d42214619e1d6c50cc8298426b45f (patch) | |
tree | fc2421ebfcfdbc7651d16d3de323a69da2393efe /src/vnet/adj/adj_internal.h | |
parent | 07510dd1a812fe064c8d44dd25e6c8a598a709cf (diff) |
Allow interface types to override glean adjacency behaivour
update the glean adj on a local interface MAC change
Change-Id: Ia5c5cde424ed0fea3431532cc5abf22b364bbab5
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/adj/adj_internal.h')
-rw-r--r-- | src/vnet/adj/adj_internal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/vnet/adj/adj_internal.h b/src/vnet/adj/adj_internal.h index e6d276e4d02..3b7ddb2f10c 100644 --- a/src/vnet/adj/adj_internal.h +++ b/src/vnet/adj/adj_internal.h @@ -78,6 +78,21 @@ adj_fib_proto_2_nd (fib_protocol_t fp) return (0); } +static inline ip46_type_t +adj_proto_to_46 (fib_protocol_t proto) +{ + switch (proto) + { + case FIB_PROTOCOL_IP4: + return (IP46_TYPE_IP4); + case FIB_PROTOCOL_IP6: + return (IP46_TYPE_IP6); + default: + return (IP46_TYPE_IP4); + } + return (IP46_TYPE_IP4); +} + /** * @brief * Get a pointer to an adjacency object from its index |