mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 23:27:31 -04:00
unix: add Linux MPLS tunnel constants for use with rtnetlink APIs
Change-Id: Ic990c616c416e7bfe98e68eb74bab2810a1126ef Reviewed-on: https://go-review.googlesource.com/c/sys/+/271137 Trust: Matt Layher <mdlayher@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
+7
-1
@@ -103,6 +103,7 @@ struct termios2 {
|
|||||||
#include <linux/keyctl.h>
|
#include <linux/keyctl.h>
|
||||||
#include <linux/loop.h>
|
#include <linux/loop.h>
|
||||||
#include <linux/lwtunnel.h>
|
#include <linux/lwtunnel.h>
|
||||||
|
#include <linux/mpls_iptunnel.h>
|
||||||
#include <linux/ncsi.h>
|
#include <linux/ncsi.h>
|
||||||
#include <linux/net_namespace.h>
|
#include <linux/net_namespace.h>
|
||||||
#include <linux/net_tstamp.h>
|
#include <linux/net_tstamp.h>
|
||||||
@@ -2923,7 +2924,7 @@ const (
|
|||||||
PPS_FETCH = C.PPS_FETCH
|
PPS_FETCH = C.PPS_FETCH
|
||||||
)
|
)
|
||||||
|
|
||||||
// lwtunnel APIs
|
// lwtunnel and related APIs
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LWTUNNEL_ENCAP_NONE = C.LWTUNNEL_ENCAP_NONE
|
LWTUNNEL_ENCAP_NONE = C.LWTUNNEL_ENCAP_NONE
|
||||||
@@ -2936,4 +2937,9 @@ const (
|
|||||||
LWTUNNEL_ENCAP_SEG6_LOCAL = C.LWTUNNEL_ENCAP_SEG6_LOCAL
|
LWTUNNEL_ENCAP_SEG6_LOCAL = C.LWTUNNEL_ENCAP_SEG6_LOCAL
|
||||||
LWTUNNEL_ENCAP_RPL = C.LWTUNNEL_ENCAP_RPL
|
LWTUNNEL_ENCAP_RPL = C.LWTUNNEL_ENCAP_RPL
|
||||||
LWTUNNEL_ENCAP_MAX = C.LWTUNNEL_ENCAP_MAX
|
LWTUNNEL_ENCAP_MAX = C.LWTUNNEL_ENCAP_MAX
|
||||||
|
|
||||||
|
MPLS_IPTUNNEL_UNSPEC = C.MPLS_IPTUNNEL_UNSPEC
|
||||||
|
MPLS_IPTUNNEL_DST = C.MPLS_IPTUNNEL_DST
|
||||||
|
MPLS_IPTUNNEL_TTL = C.MPLS_IPTUNNEL_TTL
|
||||||
|
MPLS_IPTUNNEL_MAX = C.MPLS_IPTUNNEL_MAX
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2993,4 +2993,9 @@ const (
|
|||||||
LWTUNNEL_ENCAP_SEG6_LOCAL = 0x7
|
LWTUNNEL_ENCAP_SEG6_LOCAL = 0x7
|
||||||
LWTUNNEL_ENCAP_RPL = 0x8
|
LWTUNNEL_ENCAP_RPL = 0x8
|
||||||
LWTUNNEL_ENCAP_MAX = 0x8
|
LWTUNNEL_ENCAP_MAX = 0x8
|
||||||
|
|
||||||
|
MPLS_IPTUNNEL_UNSPEC = 0x0
|
||||||
|
MPLS_IPTUNNEL_DST = 0x1
|
||||||
|
MPLS_IPTUNNEL_TTL = 0x2
|
||||||
|
MPLS_IPTUNNEL_MAX = 0x2
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user