summaryrefslogtreecommitdiffstats
path: root/nhrpd/netlink.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-01-19 16:27:01 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-03-07 16:20:29 +0100
commit2fb975da777d27077b3580cb18390b5015b50fb8 (patch)
treea0877c908b64c4dc1cfb6101e61420007038aeca /nhrpd/netlink.h
parentMerge branch 'frr/pull/255' ("vtysh: Fix cli help string to have only 1 menti... (diff)
downloadfrr-2fb975da777d27077b3580cb18390b5015b50fb8.tar.xz
frr-2fb975da777d27077b3580cb18390b5015b50fb8.zip
nhrpd: implement next hop resolution protocol
This provides DMVPN support and integrates to strongSwan. Please read README.nhrpd and README.kernel for more details. [DL: cherry-picked from dafa05e65fe4b3b3ed5525443f554215ba14f42c] [DL: merge partially resolved, this commit will not build.] Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'nhrpd/netlink.h')
-rw-r--r--nhrpd/netlink.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/nhrpd/netlink.h b/nhrpd/netlink.h
new file mode 100644
index 000000000..f05596ba1
--- /dev/null
+++ b/nhrpd/netlink.h
@@ -0,0 +1,24 @@
+/* NHRP netlink/neighbor table API
+ * Copyright (c) 2014-2015 Timo Teräs
+ *
+ * This file is free software: you may copy, redistribute and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#include <stdint.h>
+
+union sockunion;
+struct interface;
+
+extern int netlink_nflog_group;
+extern int netlink_req_fd;
+
+int netlink_init(void);
+int netlink_configure_arp(unsigned int ifindex, int pf);
+void netlink_update_binding(struct interface *ifp, union sockunion *proto, union sockunion *nbma);
+void netlink_set_nflog_group(int nlgroup);
+
+void netlink_gre_get_info(unsigned int ifindex, uint32_t *gre_key, unsigned int *link_index, struct in_addr *saddr);
+void netlink_gre_set_link(unsigned int ifindex, unsigned int link_index);