summaryrefslogtreecommitdiffstats
path: root/zebra/rt_socket.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2017-05-15 07:44:13 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-12 18:29:25 +0200
commit2232a77c2bb35586fbdc8156e9c0781fc7020066 (patch)
treed3e6b25ba230f5212c1dc29d12ab0bc53a68f236 /zebra/rt_socket.c
parentzebra: MAC and Neighbor hash table definition (diff)
downloadfrr-2232a77c2bb35586fbdc8156e9c0781fc7020066.tar.xz
frr-2232a77c2bb35586fbdc8156e9c0781fc7020066.zip
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.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index bf7e3403e..c03ed27c6 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;
+}