FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
tunnel_types.api File Reference

Go to the source code of this file.

Enumerations

enum  tunnel_encap_decap_flags : u8 {
  TUNNEL_API_ENCAP_DECAP_FLAG_NONE = 0, TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DF = 0x1, TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_SET_DF = 0x2, TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP = 0x4,
  TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN = 0x8, TUNNEL_API_ENCAP_DECAP_FLAG_DECAP_COPY_ECN = 0x10, TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_INNER_HASH = 0x20 [backwards_compatible], TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_HOP_LIMIT = 0x40 [backwards_compatible],
  TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_FLOW_LABEL = 0x80 [backwards_compatible]
}
 Flags controlling tunnel behaviour. More...
 
enum  tunnel_mode : u8 { TUNNEL_API_MODE_P2P = 0, TUNNEL_API_MODE_MP }
 tunnel mode More...
 

Variables

option version = "1.0.1"
 
import vnet interface_types api
 
enumflag tunnel_flags
 tunnel mode More...
 
enumflag typedef tunnel
 An IP{v4,v6} tunnel. More...
 
vl_api_address_t src
 Tunnel source and destination address. More...
 
vl_api_address_t dst
 
vl_api_interface_index_t sw_if_index
 ignored on create, set in details/dump More...
 
u32 table_id
 The table ID in which the source and destination addresses are valid. More...
 
vl_api_tunnel_encap_decap_flags_t encap_decap_flags
 
vl_api_tunnel_mode_t mode
 
vl_api_tunnel_flags_t flags
 
vl_api_ip_dscp_t dscp
 
u8 hop_limit
 

Enumeration Type Documentation

◆ tunnel_encap_decap_flags

Flags controlling tunnel behaviour.

Enumerator
TUNNEL_API_ENCAP_DECAP_FLAG_NONE 
TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DF 

at encap, copy the DF bit of the payload into the tunnel header

TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_SET_DF 

at encap, set the DF bit in the tunnel header

TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP 

at encap, copy the DSCP bits of the payload into the tunnel header

TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN 

at encap, copy the ECN bit of the payload into the tunnel header

TUNNEL_API_ENCAP_DECAP_FLAG_DECAP_COPY_ECN 

at decap, copy the ECN bit of the tunnel header into the payload

TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_INNER_HASH 

at encap, compute flow hash on the inner packet for more entropy

TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_HOP_LIMIT 

at encap, copy the hop-limit/TTL of the payload into the tunnel header

TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_FLOW_LABEL 

at encap, copy the Flow Label of the payload into the tunnel header

Definition at line 24 of file tunnel_types.api.

◆ tunnel_mode

enum tunnel_mode : u8

tunnel mode

Enumerator
TUNNEL_API_MODE_P2P 

point-to-point

TUNNEL_API_MODE_MP 

multi-point

Definition at line 48 of file tunnel_types.api.

Variable Documentation

◆ api

import vnet ip ip_types api

Definition at line 18 of file tunnel_types.api.

◆ dscp

vl_api_ip_dscp_t dscp

Definition at line 86 of file tunnel_types.api.

◆ dst

vl_api_address_t dst

Definition at line 77 of file tunnel_types.api.

◆ encap_decap_flags

vl_api_tunnel_encap_decap_flags_t encap_decap_flags

Definition at line 82 of file tunnel_types.api.

◆ flags

vl_api_tunnel_flags_t flags

Definition at line 84 of file tunnel_types.api.

◆ hop_limit

u8 hop_limit

Definition at line 88 of file tunnel_types.api.

◆ mode

vl_api_tunnel_mode_t mode

Definition at line 83 of file tunnel_types.api.

◆ src

vl_api_address_t src

Tunnel source and destination address.

Definition at line 76 of file tunnel_types.api.

◆ sw_if_index

vl_api_interface_index_t sw_if_index

ignored on create, set in details/dump

Definition at line 79 of file tunnel_types.api.

◆ table_id

u32 table_id

The table ID in which the source and destination addresses are valid.

Definition at line 81 of file tunnel_types.api.

◆ tunnel

enumflag typedef tunnel
Initial value:

An IP{v4,v6} tunnel.

Definition at line 72 of file tunnel_types.api.

◆ tunnel_flags

enumflag tunnel_flags

tunnel mode

Definition at line 65 of file tunnel_types.api.

◆ version

option version = "1.0.1"

Definition at line 16 of file tunnel_types.api.

u32
unsigned int u32
Definition: types.h:88
instance
u32 instance
Definition: gre.api:51