mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
unix: add Linux lwtunnel constants for use with rtnetlink APIs
Change-Id: Ibe39b315321c18916870dcfc97b083a18b91be2b Reviewed-on: https://go-review.googlesource.com/c/sys/+/271077 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Matt Layher <mdlayher@gmail.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
@@ -102,6 +102,7 @@ struct termios2 {
|
||||
#include <linux/if_xdp.h>
|
||||
#include <linux/keyctl.h>
|
||||
#include <linux/loop.h>
|
||||
#include <linux/lwtunnel.h>
|
||||
#include <linux/ncsi.h>
|
||||
#include <linux/net_namespace.h>
|
||||
#include <linux/net_tstamp.h>
|
||||
@@ -2921,3 +2922,18 @@ const (
|
||||
PPS_GETCAP = C.PPS_GETCAP
|
||||
PPS_FETCH = C.PPS_FETCH
|
||||
)
|
||||
|
||||
// lwtunnel APIs
|
||||
|
||||
const (
|
||||
LWTUNNEL_ENCAP_NONE = C.LWTUNNEL_ENCAP_NONE
|
||||
LWTUNNEL_ENCAP_MPLS = C.LWTUNNEL_ENCAP_MPLS
|
||||
LWTUNNEL_ENCAP_IP = C.LWTUNNEL_ENCAP_IP
|
||||
LWTUNNEL_ENCAP_ILA = C.LWTUNNEL_ENCAP_ILA
|
||||
LWTUNNEL_ENCAP_IP6 = C.LWTUNNEL_ENCAP_IP6
|
||||
LWTUNNEL_ENCAP_SEG6 = C.LWTUNNEL_ENCAP_SEG6
|
||||
LWTUNNEL_ENCAP_BPF = C.LWTUNNEL_ENCAP_BPF
|
||||
LWTUNNEL_ENCAP_SEG6_LOCAL = C.LWTUNNEL_ENCAP_SEG6_LOCAL
|
||||
LWTUNNEL_ENCAP_RPL = C.LWTUNNEL_ENCAP_RPL
|
||||
LWTUNNEL_ENCAP_MAX = C.LWTUNNEL_ENCAP_MAX
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user