FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
lb_types.api
Go to the documentation of this file.
1
/* Hey Emacs use -*- mode: C -*- */
2
/*
3
* Copyright (c) 2019 Vinci Consulting Corp. All Rights Reserved.
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at:
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
import
"vnet/ip/ip_types.api"
;
17
18
enum
lb_srv_type
19
{
20
LB_API_SRV_TYPE_CLUSTERIP
= 0,
21
LB_API_SRV_TYPE_NODEPORT
= 1,
22
LB_API_SRV_N_TYPES
= 2,
23
};
24
25
enum
lb_encap_type
26
{
27
LB_API_ENCAP_TYPE_GRE4
= 0,
28
LB_API_ENCAP_TYPE_GRE6
= 1,
29
LB_API_ENCAP_TYPE_L3DSR
= 2,
30
LB_API_ENCAP_TYPE_NAT4
= 3 ,
31
LB_API_ENCAP_TYPE_NAT6
=4,
32
LB_API_ENCAP_N_TYPES
=5,
33
};
34
35
/* Lookup types */
36
enum
lb_lkp_type_t
37
{
38
LB_API_LKP_SAME_IP_PORT
= 0,
39
LB_API_LKP_DIFF_IP_PORT
= 1,
40
LB_API_LKP_ALL_PORT_IP
=2,
41
LB_API_LKP_N_TYPES
=3,
42
};
43
44
enum
lb_vip_type
45
{
46
LB_API_VIP_TYPE_IP6_GRE6
= 0,
47
LB_API_VIP_TYPE_IP6_GRE4
= 1,
48
LB_API_VIP_TYPE_IP4_GRE6
= 2,
49
LB_API_VIP_TYPE_IP4_GRE4
= 3,
50
LB_API_VIP_TYPE_IP4_L3DSR
= 4,
51
LB_API_VIP_TYPE_IP4_NAT4
= 5,
52
LB_API_VIP_TYPE_IP6_NAT6
= 6,
53
LB_API_VIP_N_TYPES
= 7,
54
};
55
56
enum
lb_nat_protocol
57
{
58
LB_API_NAT_PROTOCOL_UDP
= 0x06,
59
LB_API_NAT_PROTOCOL_TCP
= 0x17,
60
LB_API_NAT_PROTOCOL_ANY
= 0xffffffff,
61
};
62
63
/** \brief Define connection statistics structure
64
@param pfx - ip prefix and length
65
@param protocol - tcp or udp.
66
@param port - destination port.
67
*/
68
typeonly define lb_vip
69
{
70
vl_api_address_with_prefix_t
pfx
;
71
vl_api_ip_proto_t
protocol
;
72
u16
port
;
73
};
LB_API_VIP_TYPE_IP4_GRE6
Definition:
lb_types.api:48
LB_API_NAT_PROTOCOL_UDP
Definition:
lb_types.api:58
LB_API_ENCAP_TYPE_L3DSR
Definition:
lb_types.api:29
lb_encap_type
lb_encap_type
Definition:
lb_types.api:25
LB_API_NAT_PROTOCOL_ANY
Definition:
lb_types.api:60
lb_nat_protocol
lb_nat_protocol
Definition:
lb_types.api:56
LB_API_VIP_TYPE_IP6_NAT6
Definition:
lb_types.api:52
lb_lkp_type_t
lb_lkp_type_t
Lookup type.
Definition:
lb.h:197
LB_API_VIP_TYPE_IP4_NAT4
Definition:
lb_types.api:51
LB_API_VIP_TYPE_IP6_GRE6
Definition:
lb_types.api:46
LB_API_VIP_TYPE_IP6_GRE4
Definition:
lb_types.api:47
LB_API_ENCAP_TYPE_GRE4
Definition:
lb_types.api:27
LB_API_LKP_ALL_PORT_IP
Definition:
lb_types.api:40
u16
unsigned short u16
Definition:
types.h:57
lb_vip_type
lb_vip_type
Definition:
lb_types.api:44
LB_API_ENCAP_TYPE_NAT6
Definition:
lb_types.api:31
vl_api_lb_vip_t::pfx
vl_api_address_with_prefix_t pfx
Definition:
lb_types.api:70
LB_API_ENCAP_TYPE_NAT4
Definition:
lb_types.api:30
vl_api_lb_vip_t::port
u16 port
Definition:
lb_types.api:72
LB_API_VIP_TYPE_IP4_L3DSR
Definition:
lb_types.api:50
LB_API_LKP_DIFF_IP_PORT
Definition:
lb_types.api:39
LB_API_VIP_N_TYPES
Definition:
lb_types.api:53
LB_API_NAT_PROTOCOL_TCP
Definition:
lb_types.api:59
LB_API_ENCAP_N_TYPES
Definition:
lb_types.api:32
lb_srv_type
lb_srv_type
Definition:
lb_types.api:18
vl_api_lb_vip_t::protocol
vl_api_ip_proto_t protocol
Definition:
lb_types.api:71
LB_API_ENCAP_TYPE_GRE6
Definition:
lb_types.api:28
LB_API_SRV_N_TYPES
Definition:
lb_types.api:22
LB_API_LKP_N_TYPES
Definition:
lb_types.api:41
LB_API_SRV_TYPE_NODEPORT
Definition:
lb_types.api:21
LB_API_LKP_SAME_IP_PORT
Definition:
lb_types.api:38
LB_API_VIP_TYPE_IP4_GRE4
Definition:
lb_types.api:49
LB_API_SRV_TYPE_CLUSTERIP
Definition:
lb_types.api:20
src
plugins
lb
lb_types.api
Generated on Mon Oct 19 2020 14:03:22 for FD.io VPP by
1.8.13