summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMarcel Röthke <marcel.roethke@haw-hamburg.de>2017-11-10 13:56:24 +0100
committerMarcel Röthke <marcel.roethke@haw-hamburg.de>2017-11-10 14:37:52 +0100
commitdabecd7c63a6cb109e76a40bcbc890d336831c53 (patch)
tree088c3311aa53b22cb2a60aa349dba634e65e3538 /configure.ac
parentospf6d: Fix setting interface ipv6 ospf6 cost value (LSA hooks were never cal... (diff)
downloadfrr-dabecd7c63a6cb109e76a40bcbc890d336831c53.tar.xz
frr-dabecd7c63a6cb109e76a40bcbc890d336831c53.zip
bgpd: Add RPKI/RTR support
This commit adds support for the RTR protocol to receive ROA information from a RPKI cache server. That information can than be used to validate the BGP origin AS of IP prefixes. Both features are implemented using [rtrlib](http://rtrlib.realmv6.org/). Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cae506112..41ebab6a1 100755
--- a/configure.ac
+++ b/configure.ac
@@ -387,6 +387,8 @@ AC_ARG_ENABLE([protobuf],
AS_HELP_STRING([--enable-protobuf], [Enable experimental protobuf support]))
AC_ARG_ENABLE([oldvpn_commands],
AS_HELP_STRING([--enable-oldvpn-commands], [Keep old vpn commands]))
+AC_ARG_ENABLE(rpki,
+ AS_HELP_STRING([--enable-rpki], [enable RPKI prefix validation support]))
AC_CHECK_HEADERS(json-c/json.h)
AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c", [], [-lm])
@@ -1796,6 +1798,30 @@ AC_SUBST(CFG_STATE)
AC_SUBST(CFG_MODULE)
AC_DEFINE_UNQUOTED(MODULE_PATH, "$CFG_MODULE", path to modules)
+dnl ------------------------------------
+dnl Enable RPKI and add librtr to libs
+dnl ------------------------------------
+if test "${enable_rpki}" = "yes"; then
+ PKG_CHECK_MODULES(RTRLIB,[rtrlib >= 0.5.0],
+ [AC_DEFINE(HAVE_RPKI,1,Enable RPKI prefix validation for BGP)
+ RPKI=true],
+ [RPKI=false
+ AC_MSG_ERROR([rtrlib was not found on your system or is too old.])]
+ )
+fi
+AM_CONDITIONAL([RPKI], test "x$RPKI" = "xtrue")
+
+dnl ------------------------------------------
+dnl Check whether rtrlib was build with ssh support
+dnl ------------------------------------------
+AC_MSG_CHECKING([whether the RTR Library is compiled with SSH])
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "rtrlib/rtrlib.h"]],
+ [[struct tr_ssh_config config;]])],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(FOUND_SSH,,found_ssh)],
+ AC_MSG_RESULT(no)
+)
+
dnl ---------------------------
dnl Check htonl works correctly
dnl ---------------------------