summaryrefslogtreecommitdiff
path: root/lib/sockunion.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-06-02 08:28:15 -0300
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 09:31:15 -0400
commitd3e2c74adaa2564775f2c60320213e28e329be50 (patch)
treeef609154588b3a799911e990774f47975bf83f7d /lib/sockunion.h
parentbe0dba358f7cd40ae27f012409734786a13d5ce4 (diff)
mpls: add support to the OpenBSD kernel
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/sockunion.h')
-rw-r--r--lib/sockunion.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h
index 105b11a24c..abad43122e 100644
--- a/lib/sockunion.h
+++ b/lib/sockunion.h
@@ -25,12 +25,18 @@
#include "privs.h"
#include "if.h"
+#if defined HAVE_MPLS && defined __OpenBSD__
+#include <netmpls/mpls.h>
+#endif
union sockunion
{
struct sockaddr sa;
struct sockaddr_in sin;
struct sockaddr_in6 sin6;
+#if defined HAVE_MPLS && defined __OpenBSD__
+ struct sockaddr_mpls smpls;
+#endif
};
enum connect_result