summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bfd.h1
-rw-r--r--lib/lib_errors.c8
-rw-r--r--lib/lib_errors.h1
-rw-r--r--lib/mpls.h1
4 files changed, 11 insertions, 0 deletions
diff --git a/lib/bfd.h b/lib/bfd.h
index 94430051a..f824b0fd9 100644
--- a/lib/bfd.h
+++ b/lib/bfd.h
@@ -24,6 +24,7 @@
#define _ZEBRA_BFD_H
#include "lib/json.h"
+#include "lib/zclient.h"
#define BFD_DEF_MIN_RX 300
#define BFD_MIN_MIN_RX 50
diff --git a/lib/lib_errors.c b/lib/lib_errors.c
index d45e21ddc..1faee603c 100644
--- a/lib/lib_errors.c
+++ b/lib/lib_errors.c
@@ -21,6 +21,7 @@
#include <zebra.h>
#include <lib_errors.h>
+/* clang-format off */
static struct ferr_ref ferr_lib_err[] = {
{
.code = LIB_ERR_PRIVILEGES,
@@ -101,9 +102,16 @@ static struct ferr_ref ferr_lib_err[] = {
.suggestion = "Open an Issue with all relevant log files and restart FRR"
},
{
+ .code = LIB_ERR_UNAVAILABLE,
+ .title = "Feature or system unavailable",
+ .description = "FRR was not compiled with support for a particular feature, or it is not available on the current platform",
+ .suggestion = "Recompile FRR with the feature enabled, or find out what platforms support the feature"
+ },
+ {
.code = END_FERR,
}
};
+/* clang-format on */
void lib_error_init(void)
{
diff --git a/lib/lib_errors.h b/lib/lib_errors.h
index 5a68efb30..9e3383793 100644
--- a/lib/lib_errors.h
+++ b/lib/lib_errors.h
@@ -36,6 +36,7 @@ enum lib_ferr_refs {
LIB_ERR_NS,
LIB_ERR_DEVELOPMENT,
LIB_ERR_ZMQ,
+ LIB_ERR_UNAVAILABLE,
};
extern void lib_error_init(void);
diff --git a/lib/mpls.h b/lib/mpls.h
index ff6f1d6c9..c9dd60dce 100644
--- a/lib/mpls.h
+++ b/lib/mpls.h
@@ -22,6 +22,7 @@
#ifndef _QUAGGA_MPLS_H
#define _QUAGGA_MPLS_H
+#include <zebra.h>
#include <arpa/inet.h>
#ifdef MPLS_LABEL_MAX