FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
ip_types.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 typedef ip4_address {
17  u8 address[4];
18 };
19 
20 typedef ip6_address {
21  u8 address[16];
22 };
23 
27 };
28 
30  vl_api_ip4_address_t ip4;
31  vl_api_ip6_address_t ip6;
32 };
33 
34 typedef address {
35  vl_api_address_family_t af;
36  vl_api_address_union_t un;
37 };
typedef address
Definition: ip_types.api:34
unsigned char u8
Definition: types.h:56
vl_api_ip6_address_t ip6
Definition: ip_types.api:31
typedef ip6_address
Definition: ip_types.api:20
address_family
Definition: ip_types.api:24
typedef ip4_address
Definition: ip_types.api:16
vl_api_address_union_t un
Definition: ip_types.api:36
vl_api_ip4_address_t ip4
Definition: ip_types.api:30