diff options
| author | vivek <vivek@cumulusnetworks.com> | 2017-05-14 22:44:13 -0700 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-12 12:29:25 -0400 | 
| commit | 2232a77c2bb35586fbdc8156e9c0781fc7020066 (patch) | |
| tree | d3e6b25ba230f5212c1dc29d12ab0bc53a68f236 /zebra/rt_socket.c | |
| parent | 4122e2528618539c0620e1e3a3090654b8752ba0 (diff) | |
zebra: MAC and Neighbor (ARP/ND) handling
Implement handling of MACs and Neighbors (ARP/ND entries) in zebra:
- MAC and Neighbor database handlers
- Read MACs and Neighbors from the kernel, when needed and create
entries in zebra's MAC and Neighbor databases.
- Handle add/update/delete notifications from the kernel for MACs and
Neighbors and update zebra's database appropriately
- Inform locally learnt MACs and Neighbors to client
- Handle MACIP add/delete from client and install appriporiate entries
into the kernel
- Since Neighbor entries will be installed on an SVI, implement the
needed mappings
NOTE: kernel interface is only implemented for Linux/netlink
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by:   Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_socket.c')
| -rw-r--r-- | zebra/rt_socket.c | 25 | 
1 files changed, 25 insertions, 0 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index bf7e3403e4..c03ed27c63 100644 --- a/zebra/rt_socket.c +++ b/zebra/rt_socket.c @@ -441,3 +441,28 @@ kernel_del_vtep (vni_t vni, struct interface *ifp, struct in_addr *vtep_ip)  {    return 0;  } + +int +kernel_add_mac (struct interface *ifp, vlanid_t vid, +                struct ethaddr *mac, struct in_addr vtep_ip) +{ +  return 0; +} + +int +kernel_del_mac (struct interface *ifp, vlanid_t vid, +                struct ethaddr *mac, struct in_addr vtep_ip, int local) +{ +  return 0; +} + +int kernel_add_neigh (struct interface *ifp, struct ipaddr *ip, +                      struct ethaddr *mac) +{ +  return 0; +} + +int kernel_del_neigh (struct interface *ifp, struct ipaddr *ip) +{ +  return 0; +}  | 
