FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
l2tp.h File Reference
+ Include dependency graph for l2tp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  l2t_session_t
 
struct  l2t_main_t
 
struct  l2t_trace_t
 
struct  ip6_l2tpv3_config_t
 

Enumerations

enum  ip6_to_l2_lookup_t { L2T_LOOKUP_SRC_ADDRESS = 0, L2T_LOOKUP_DST_ADDRESS, L2T_LOOKUP_SESSION_ID }
 
enum  { SESSION_COUNTER_USER_TO_NETWORK = 0, SESSION_COUNTER_NETWORK_TO_USER }
 

Functions

static u32 session_index_to_counter_index (u32 session_index, u32 counter_id)
 
u8format_l2t_trace (u8 *s, va_list *args)
 
uword unformat_pg_l2tp_header (unformat_input_t *input, va_list *args)
 
void l2tp_encap_init (vlib_main_t *vm)
 
int create_l2tpv3_ipv6_tunnel (l2t_main_t *lm, ip6_address_t *client_address, ip6_address_t *our_address, u32 local_session_id, u32 remote_session_id, u64 local_cookie, u64 remote_cookie, int l2_sublayer_present, u32 encap_fib_index, u32 *sw_if_index)
 
int l2tpv3_set_tunnel_cookies (l2t_main_t *lm, u32 sw_if_index, u64 new_local_cookie, u64 new_remote_cookie)
 
int l2tpv3_interface_enable_disable (vnet_main_t *vnm, u32 sw_if_index, int enable_disable)
 

Variables

l2t_main_t l2t_main
 
vlib_node_registration_t l2t_encap_node
 
vlib_node_registration_t l2t_decap_node
 (constructor) VLIB_REGISTER_NODE (l2t_decap_node) More...
 
vlib_node_registration_t l2t_decap_local_node
 (constructor) VLIB_REGISTER_NODE (l2t_decap_local_node) More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SESSION_COUNTER_USER_TO_NETWORK 
SESSION_COUNTER_NETWORK_TO_USER 

Definition at line 101 of file l2tp.h.

◆ ip6_to_l2_lookup_t

Enumerator
L2T_LOOKUP_SRC_ADDRESS 
L2T_LOOKUP_DST_ADDRESS 
L2T_LOOKUP_SESSION_ID 

Definition at line 51 of file l2tp.h.

Function Documentation

◆ create_l2tpv3_ipv6_tunnel()

int create_l2tpv3_ipv6_tunnel ( l2t_main_t lm,
ip6_address_t client_address,
ip6_address_t our_address,
u32  local_session_id,
u32  remote_session_id,
u64  local_cookie,
u64  remote_cookie,
int  l2_sublayer_present,
u32  encap_fib_index,
u32 sw_if_index 
)

Definition at line 283 of file l2tp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_l2t_trace()

u8* format_l2t_trace ( u8 s,
va_list *  args 
)

Definition at line 30 of file l2tp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ l2tp_encap_init()

void l2tp_encap_init ( vlib_main_t vm)

Definition at line 218 of file encap.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ l2tpv3_interface_enable_disable()

int l2tpv3_interface_enable_disable ( vnet_main_t vnm,
u32  sw_if_index,
int  enable_disable 
)

Definition at line 614 of file l2tp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ l2tpv3_set_tunnel_cookies()

int l2tpv3_set_tunnel_cookies ( l2t_main_t lm,
u32  sw_if_index,
u64  new_local_cookie,
u64  new_remote_cookie 
)

Definition at line 531 of file l2tp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ session_index_to_counter_index()

static u32 session_index_to_counter_index ( u32  session_index,
u32  counter_id 
)
inlinestatic

Definition at line 108 of file l2tp.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_pg_l2tp_header()

uword unformat_pg_l2tp_header ( unformat_input_t input,
va_list *  args 
)

Definition at line 41 of file pg.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ l2t_decap_local_node

vlib_node_registration_t l2t_decap_local_node

(constructor) VLIB_REGISTER_NODE (l2t_decap_local_node)

Definition at line 275 of file decap.c.

◆ l2t_decap_node

vlib_node_registration_t l2t_decap_node

(constructor) VLIB_REGISTER_NODE (l2t_decap_node)

Definition at line 253 of file decap.c.

◆ l2t_encap_node

vlib_node_registration_t l2t_encap_node

◆ l2t_main

l2t_main_t l2t_main

Definition at line 26 of file l2tp.c.