FD.io VPP
v18.10-34-gcce845e
Vector Packet Processing
Main Page
Related Pages
Modules
Namespaces
Data Structures
Source
Files
Symbols
ipip.api
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Cisco and/or its affiliates.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at:
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
/**
17
* The IPIP module implements IP{v4,v6} over IP{v4,v6} tunnelling as
18
* described in RFC2473 and to some extent the largely historical
19
* RFC1853. The module also supports an IPv4 over IPv6 automatic
20
* tunnelling mechanism called 6RD (RFC5969).
21
*
22
* The IPIP API module supports a CRD model for adding, deleting and
23
* listing tunnels. A tunnel is represented as an interface in
24
* VPP. The "handle" representing a tunnel is the sw_if_index. As any
25
* interface, the user must configure an IPv4 and/or IPv6 address on
26
* the interface. This is the inner or payload protocol.
27
*
28
* Tunnel MTU: The tunnel MTU (the payload MTU) is configurable per
29
* protocol. If a tunnel MTU is larger than the path MTU, the outer
30
* packet will be fragmented. Fragmentation support is configurable,
31
* as it can have severe performance issues, and might be used as an
32
* attack vector (the remote side must reassemble.)
33
*
34
* Traffic class / TOS field can either be configured to a fixed
35
* value, or can be copied from the inner to the outer header.
36
* (For now we have stolen ~0 to indicate copy).
37
*
38
* Note:
39
*
40
* - The Tunnel encapsulation limit described in RFC2473 is not
41
* implemented.
42
*
43
* - ICMP proxying, as in a tunnel head-end receiving ICMP erors on
44
* the outer packet is currently not relayed to the original source
45
* of the packet.
46
*
47
* - PMTUD / MTU probing and tunnel keepalives are not yet implemented.
48
*
49
*/
50
51
option
version
=
"1.1.0"
;
52
53
/**
54
* Create an IP{v4,v6} over IP{v4,v6} tunnel.
55
*/
56
define
ipip_add_tunnel
57
{
58
u32
client_index
;
59
u32
context
;
60
u8
is_ipv6
;
61
u32
instance
;
/* If non-~0, specifies a custom dev instance */
62
u8
src_address
[16];
63
u8
dst_address[16];
64
u32
table_id
;
65
u8
tc_tos
;
/* If ~0, the TOS/TC value is copied from
66
inner packet, otherwise set to value */
67
};
68
69
define ipip_add_tunnel_reply
70
{
71
u32
context
;
72
i32
retval
;
73
u32
sw_if_index
;
74
};
75
76
/**
77
* Delete an IP{v4,v6} over IP{v4,v6} tunnel.
78
*/
79
autoreply define
ipip_del_tunnel
80
{
81
u32
client_index
;
82
u32
context
;
83
u32
sw_if_index
;
84
};
85
86
/**
87
* Create an IPv4 over IPv6 automatic tunnel (6RD)
88
*/
89
define ipip_6rd_add_tunnel
90
{
91
u32
client_index
;
92
u32
context
;
93
u32
ip6_table_id
;
94
u32
ip4_table_id
;
95
u8
ip6_prefix[16];
96
u8
ip4_prefix[4];
97
u8
ip4_src[4];
98
u8
ip6_prefix_len
;
99
u8
ip4_prefix_len
;
100
u8
security_check
;
101
u8
tc_tos
;
/* If ~0, the TOS/TC value is copied from
102
inner packet, otherwise set to value */
103
};
104
105
define ipip_6rd_add_tunnel_reply
106
{
107
u32
context
;
108
i32
retval
;
109
u32
sw_if_index
;
110
};
111
112
/**
113
* Delete an IPv4 over IPv6 automatic tunnel (6RD)
114
*/
115
autoreply define ipip_6rd_del_tunnel
116
{
117
u32
client_index
;
118
u32
context
;
119
u32
sw_if_index
;
120
};
121
122
/**
123
* List all IPIP tunnels
124
*/
125
define ipip_tunnel_dump
126
{
127
u32
client_index
;
128
u32
context
;
129
u32
sw_if_index
;
130
};
131
132
define ipip_tunnel_details
133
{
134
u32
context
;
135
u32
sw_if_index
;
136
u32
instance
;
137
u8
is_ipv6
;
138
u8
src_address
[16];
139
u8
dst_address[16];
140
u32
fib_index
;
141
u8
tc_tos
;
142
};
143
144
/*
145
* Local Variables:
146
* eval: (c-set-style "gnu")
147
* End:
148
*/
vl_api_ipip_6rd_add_tunnel_reply_t::context
u32 context
Definition:
ipip.api:107
vl_api_ipip_6rd_add_tunnel_t::client_index
u32 client_index
Definition:
ipip.api:91
vl_api_ipip_tunnel_dump_t::sw_if_index
u32 sw_if_index
Definition:
ipip.api:129
vl_api_ipip_tunnel_details_t::is_ipv6
u8 is_ipv6
Definition:
ipip.api:137
ipip_add_tunnel
int ipip_add_tunnel(ipip_transport_t transport, u32 instance, ip46_address_t *src, ip46_address_t *dst, u32 fib_index, u8 tc_tos, u32 *sw_if_indexp)
Definition:
ipip.c:467
vl_api_ipip_del_tunnel_t::context
u32 context
Definition:
ipip.api:82
vl_api_ipip_tunnel_details_t::sw_if_index
u32 sw_if_index
Definition:
ipip.api:135
vl_api_ipip_6rd_add_tunnel_t::ip6_prefix_len
u8 ip6_prefix_len
Definition:
ipip.api:98
vl_api_ipip_del_tunnel_t::client_index
u32 client_index
Definition:
ipip.api:81
vl_api_ipip_tunnel_details_t::instance
u32 instance
Definition:
ipip.api:136
vl_api_ipip_add_tunnel_t::tc_tos
u8 tc_tos
Definition:
ipip.api:65
u8
unsigned char u8
Definition:
types.h:56
vl_api_ipip_6rd_add_tunnel_reply_t::retval
i32 retval
Definition:
ipip.api:108
vl_api_ipip_6rd_add_tunnel_t::ip4_table_id
u32 ip4_table_id
Definition:
ipip.api:94
vl_api_ipip_tunnel_details_t::context
u32 context
Definition:
ipip.api:134
version
option version
The IPIP module implements IP{v4,v6} over IP{v4,v6} tunnelling as described in RFC2473 and to some ex...
Definition:
ipip.api:51
vl_api_ipip_add_tunnel_t::table_id
u32 table_id
Definition:
ipip.api:64
u32
unsigned int u32
Definition:
types.h:88
vl_api_ipip_add_tunnel_t::is_ipv6
u8 is_ipv6
Definition:
ipip.api:60
vl_api_ipip_6rd_add_tunnel_t::context
u32 context
Definition:
ipip.api:92
src_address
vl_api_address_union_t src_address
Definition:
ip_types.api:49
vl_api_ipip_6rd_add_tunnel_reply_t::sw_if_index
u32 sw_if_index
Definition:
ipip.api:109
vl_api_ipip_tunnel_dump_t::client_index
u32 client_index
Definition:
ipip.api:127
vl_api_ipip_add_tunnel_reply_t::retval
i32 retval
Definition:
ipip.api:72
i32
signed int i32
Definition:
types.h:77
vl_api_ipip_tunnel_details_t::fib_index
u32 fib_index
Definition:
ipip.api:140
vl_api_ipip_6rd_add_tunnel_t::tc_tos
u8 tc_tos
Definition:
ipip.api:101
vl_api_ipip_6rd_add_tunnel_t::ip4_prefix_len
u8 ip4_prefix_len
Definition:
ipip.api:99
vl_api_ipip_6rd_del_tunnel_t::client_index
u32 client_index
Definition:
ipip.api:117
vl_api_ipip_add_tunnel_reply_t::context
u32 context
Definition:
ipip.api:71
vl_api_ipip_del_tunnel_t::sw_if_index
u32 sw_if_index
Definition:
ipip.api:83
vl_api_ipip_6rd_del_tunnel_t::context
u32 context
Definition:
ipip.api:118
vl_api_ipip_add_tunnel_t::instance
u32 instance
Definition:
ipip.api:61
vl_api_ipip_tunnel_dump_t::context
u32 context
Definition:
ipip.api:128
vl_api_ipip_6rd_del_tunnel_t::sw_if_index
u32 sw_if_index
Definition:
ipip.api:119
vl_api_ipip_add_tunnel_reply_t::sw_if_index
u32 sw_if_index
Definition:
ipip.api:73
ipip_del_tunnel
int ipip_del_tunnel(u32 sw_if_index)
Definition:
ipip.c:566
vl_api_ipip_6rd_add_tunnel_t::ip6_table_id
u32 ip6_table_id
Definition:
ipip.api:93
vl_api_ipip_add_tunnel_t::context
u32 context
Definition:
ipip.api:59
vl_api_ipip_6rd_add_tunnel_t::security_check
u8 security_check
Definition:
ipip.api:100
vl_api_ipip_tunnel_details_t::tc_tos
u8 tc_tos
Definition:
ipip.api:141
vl_api_ipip_add_tunnel_t::client_index
u32 client_index
Definition:
ipip.api:58
src
vnet
ipip
ipip.api
Generated on Thu May 16 2019 14:26:34 for FD.io VPP by
1.8.11