FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
sr.h File Reference

Segment Routing header. More...

+ Include dependency graph for sr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ip6_sr_tunnel_key_t
 Segment Route tunnel key. More...
 
struct  ip6_sr_tunnel_t
 Segment Route tunnel. More...
 
struct  ip6_sr_hmac_key_t
 Shared secret for keyed-hash message authentication code (HMAC). More...
 
struct  ip6_sr_add_del_tunnel_args_t
 Args required for add/del tunnel. More...
 
struct  ip6_sr_add_del_policy_args_t
 Args for creating a policy. More...
 
struct  ip6_sr_policy_t
 Segment Routing policy. More...
 
struct  ip6_sr_add_del_multicastmap_args_t
 Args for mapping of multicast address to policy name. More...
 
struct  ip6_sr_main_t
 Segment Routing state. More...
 

Functions

int ip6_sr_add_del_tunnel (ip6_sr_add_del_tunnel_args_t *a)
 Add or Delete a Segment Routing tunnel. More...
 
int ip6_sr_add_del_policy (ip6_sr_add_del_policy_args_t *a)
 Add or Delete a Segment Routing policy. More...
 
int ip6_sr_add_del_multicastmap (ip6_sr_add_del_multicastmap_args_t *a)
 Add or Delete a mapping of IP6 multicast address to Segment Routing policy. More...
 
void vnet_register_sr_app_callback (void *cb)
 Register a callback routine to set next0 in sr_local. More...
 
void sr_fix_hmac (ip6_sr_main_t *sm, ip6_header_t *ip, ip6_sr_header_t *sr)
 Use passed HMAC key in ip6_sr_header_t in OpenSSL HMAC routines. More...
 

Variables

ip6_sr_main_t sr_main
 
format_function_t format_ip6_sr_header
 
format_function_t format_ip6_sr_header_with_length
 
vlib_node_registration_t ip6_sr_input_node
 
vlib_node_registration_t sr_replicate_node
 (constructor) VLIB_REGISTER_NODE (sr_replicate_node) More...
 

Detailed Description

Segment Routing header.

Note
sr_replicate only works using DPDK today

Definition in file sr.h.

Function Documentation

int ip6_sr_add_del_multicastmap ( ip6_sr_add_del_multicastmap_args_t a)

Add or Delete a mapping of IP6 multicast address to Segment Routing policy.

Parameters
aip6_sr_add_del_multicastmap_args_t *
Returns
retval int

Definition at line 1761 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip6_sr_add_del_policy ( ip6_sr_add_del_policy_args_t a)

Add or Delete a Segment Routing policy.

Parameters
aip6_sr_add_del_policy_args_t *
Returns
retval int

Definition at line 1509 of file sr.c.

+ Here is the caller graph for this function:

int ip6_sr_add_del_tunnel ( ip6_sr_add_del_tunnel_args_t a)

Add or Delete a Segment Routing tunnel.

Parameters
aip6_sr_add_del_tunnel_args_t *
Returns
retval int

Definition at line 896 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void sr_fix_hmac ( ip6_sr_main_t sm,
ip6_header_t ip,
ip6_sr_header_t sr 
)

Use passed HMAC key in ip6_sr_header_t in OpenSSL HMAC routines.

Parameters
smip6_sr_main_t *
ipip6_header_t *
srip6_sr_header_t *

Definition at line 46 of file sr.c.

+ Here is the caller graph for this function:

void vnet_register_sr_app_callback ( void *  cb)

Register a callback routine to set next0 in sr_local.

Parameters
cbvoid *

Definition at line 3112 of file sr.c.

Variable Documentation

format_function_t format_ip6_sr_header

Definition at line 236 of file sr.h.

format_function_t format_ip6_sr_header_with_length

Definition at line 237 of file sr.h.

vlib_node_registration_t ip6_sr_input_node

Definition at line 239 of file sr.h.

ip6_sr_main_t sr_main

Definition at line 234 of file sr.h.

vlib_node_registration_t sr_replicate_node

(constructor) VLIB_REGISTER_NODE (sr_replicate_node)

Definition at line 449 of file sr_replicate.c.