FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
ip_types.api
Go to the documentation of this file.
1
/* Hey Emacs use -*- mode: C -*- */
2
/*
3
* Copyright (c) 2018 Cisco and/or its affiliates.
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
17
typedef
u8
ip4_address
[4];
18
typedef
u8
ip6_address
[16];
19
20
enum
address_family
{
21
ADDRESS_IP4
= 0,
22
ADDRESS_IP6
,
23
};
24
25
union
address_union
{
26
vl_api_ip4_address_t
ip4
;
27
vl_api_ip6_address_t
ip6
;
28
};
29
30
typedef
address
{
31
vl_api_address_family_t af;
32
vl_api_address_union_t
un
;
33
};
34
35
typedef
prefix
{
36
vl_api_address_t
address
;
37
u8
address_length
;
38
};
39
40
typedef
mprefix
{
41
vl_api_address_family_t af;
42
u16
grp_address_length
;
43
vl_api_address_union_t
grp_address
;
44
vl_api_address_union_t
src_address
;
45
};
46
47
typedef
ip6_prefix
{
48
vl_api_ip6_address_t
prefix
;
49
u8
len
;
50
};
51
52
typedef
ip4_prefix
{
53
vl_api_ip4_address_t
prefix
;
54
u8
len
;
55
};
ip6_prefix
typedef ip6_prefix
Definition:
ip_types.api:47
address
typedef address
Definition:
ip_types.api:30
u8
unsigned char u8
Definition:
types.h:56
ADDRESS_IP6
Definition:
ip_types.api:22
address_union::ip6
vl_api_ip6_address_t ip6
Definition:
ip_types.api:27
ip4_prefix
typedef ip4_prefix
Definition:
ip_types.api:52
address_length
u8 address_length
Definition:
ip_types.api:37
u16
unsigned short u16
Definition:
types.h:57
ADDRESS_IP4
Definition:
ip_types.api:21
grp_address_length
u16 grp_address_length
Definition:
ip_types.api:42
src_address
vl_api_address_union_t src_address
Definition:
ip_types.api:44
len
u8 len
Definition:
ip_types.api:49
ip6_address
u8 ip6_address[16]
Definition:
ip_types.api:18
address_union
Definition:
ip_types.api:25
mprefix
typedef mprefix
Definition:
ip_types.api:40
address_family
address_family
Definition:
ip_types.api:20
ip4_address
u8 ip4_address[4]
Definition:
ip_types.api:17
prefix
typedef prefix
Definition:
ip_types.api:35
grp_address
vl_api_address_union_t grp_address
Definition:
ip_types.api:43
un
vl_api_address_union_t un
Definition:
ip_types.api:32
address_union::ip4
vl_api_ip4_address_t ip4
Definition:
ip_types.api:26
src
vnet
ip
ip_types.api
Generated on Mon Nov 25 2019 16:01:06 for FD.io VPP by
1.8.13