Documentation ¶
Overview ¶
Package tunnel_types contains generated bindings for API file tunnel_types.api.
Contents: - 3 enums - 1 struct
Index ¶
Constants ¶
View Source
const ( APIFile = "tunnel_types" APIVersion = "1.0.1" VersionCrc = 0x882f6758 )
Variables ¶
View Source
var ( TunnelEncapDecapFlags_name = map[uint8]string{ 0: "TUNNEL_API_ENCAP_DECAP_FLAG_NONE", 1: "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DF", 2: "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_SET_DF", 4: "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP", 8: "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN", 16: "TUNNEL_API_ENCAP_DECAP_FLAG_DECAP_COPY_ECN", 32: "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_INNER_HASH", 64: "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_HOP_LIMIT", 128: "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_FLOW_LABEL", } TunnelEncapDecapFlags_value = map[string]uint8{ "TUNNEL_API_ENCAP_DECAP_FLAG_NONE": 0, "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DF": 1, "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_SET_DF": 2, "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP": 4, "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN": 8, "TUNNEL_API_ENCAP_DECAP_FLAG_DECAP_COPY_ECN": 16, "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_INNER_HASH": 32, "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_HOP_LIMIT": 64, "TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_FLOW_LABEL": 128, } )
View Source
var ( TunnelMode_name = map[uint8]string{ 0: "TUNNEL_API_MODE_P2P", 1: "TUNNEL_API_MODE_MP", } TunnelMode_value = map[string]uint8{ "TUNNEL_API_MODE_P2P": 0, "TUNNEL_API_MODE_MP": 1, } )
View Source
var ( TunnelFlags_name = map[uint8]string{ 1: "TUNNEL_API_FLAG_TRACK_MTU", } TunnelFlags_value = map[string]uint8{ "TUNNEL_API_FLAG_TRACK_MTU": 1, } )
Functions ¶
This section is empty.
Types ¶
type Tunnel ¶
type Tunnel struct { Instance uint32 `binapi:"u32,name=instance" json:"instance,omitempty"` Src ip_types.Address `binapi:"address,name=src" json:"src,omitempty"` Dst ip_types.Address `binapi:"address,name=dst" json:"dst,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` EncapDecapFlags TunnelEncapDecapFlags `binapi:"tunnel_encap_decap_flags,name=encap_decap_flags" json:"encap_decap_flags,omitempty"` Mode TunnelMode `binapi:"tunnel_mode,name=mode" json:"mode,omitempty"` Flags TunnelFlags `binapi:"tunnel_flags,name=flags" json:"flags,omitempty"` Dscp ip_types.IPDscp `binapi:"ip_dscp,name=dscp" json:"dscp,omitempty"` HopLimit uint8 `binapi:"u8,name=hop_limit" json:"hop_limit,omitempty"` }
Tunnel defines type 'tunnel'.
type TunnelEncapDecapFlags ¶
type TunnelEncapDecapFlags uint8
TunnelEncapDecapFlags defines enum 'tunnel_encap_decap_flags'.
const ( TUNNEL_API_ENCAP_DECAP_FLAG_NONE TunnelEncapDecapFlags = 0 TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DF TunnelEncapDecapFlags = 1 TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_SET_DF TunnelEncapDecapFlags = 2 TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP TunnelEncapDecapFlags = 4 TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN TunnelEncapDecapFlags = 8 TUNNEL_API_ENCAP_DECAP_FLAG_DECAP_COPY_ECN TunnelEncapDecapFlags = 16 TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_INNER_HASH TunnelEncapDecapFlags = 32 TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_HOP_LIMIT TunnelEncapDecapFlags = 64 TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_FLOW_LABEL TunnelEncapDecapFlags = 128 )
func (TunnelEncapDecapFlags) String ¶
func (x TunnelEncapDecapFlags) String() string
type TunnelFlags ¶
type TunnelFlags uint8
TunnelFlags defines enum 'tunnel_flags'.
const (
TUNNEL_API_FLAG_TRACK_MTU TunnelFlags = 1
)
func (TunnelFlags) String ¶
func (x TunnelFlags) String() string
type TunnelMode ¶
type TunnelMode uint8
TunnelMode defines enum 'tunnel_mode'.
const ( TUNNEL_API_MODE_P2P TunnelMode = 0 TUNNEL_API_MODE_MP TunnelMode = 1 )
func (TunnelMode) String ¶
func (x TunnelMode) String() string
Click to show internal directories.
Click to hide internal directories.