FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
b
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
Functions
d
f
g
l
m
n
o
p
t
v
Variables
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
c
e
g
h
k
m
n
o
r
s
Related Functions
c
d
e
h
i
m
o
p
r
s
v
Source
Files
Symbols
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
gbp_subnet.h
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
#ifndef __GBP_SUBNET_H__
17
#define __GBP_SUBNET_H__
18
19
#include <
plugins/gbp/gbp_types.h
>
20
21
typedef
enum
gbp_subnet_type_t_
22
{
23
GBP_SUBNET_TRANSPORT
,
24
GBP_SUBNET_STITCHED_INTERNAL
,
25
GBP_SUBNET_STITCHED_EXTERNAL
,
26
GBP_SUBNET_L3_OUT
,
27
GBP_SUBNET_ANON_L3_OUT
,
28
}
gbp_subnet_type_t
;
29
30
extern
int
gbp_subnet_add
(
u32
rd_id
,
31
const
fib_prefix_t
* pfx,
32
gbp_subnet_type_t
type
,
33
u32
sw_if_index
,
sclass_t
sclass
);
34
35
extern
int
gbp_subnet_del
(
u32
rd_id
,
const
fib_prefix_t
* pfx);
36
37
typedef
walk_rc_t
(*
gbp_subnet_cb_t
) (
u32
rd_id
,
38
const
fib_prefix_t
* pfx,
39
gbp_subnet_type_t
type
,
40
u32
sw_if_index
,
41
sclass_t
sclass
,
void
*
ctx
);
42
43
extern
void
gbp_subnet_walk
(
gbp_subnet_cb_t
cb,
void
*
ctx
);
44
45
#endif
46
47
/*
48
* fd.io coding-style-patch-verification: ON
49
*
50
* Local Variables:
51
* eval: (c-set-style "gnu")
52
* End:
53
*/
gbp_subnet_cb_t
walk_rc_t(* gbp_subnet_cb_t)(u32 rd_id, const fib_prefix_t *pfx, gbp_subnet_type_t type, u32 sw_if_index, sclass_t sclass, void *ctx)
Definition:
gbp_subnet.h:37
gbp_types.h
GBP_SUBNET_STITCHED_INTERNAL
@ GBP_SUBNET_STITCHED_INTERNAL
Definition:
gbp_subnet.h:24
gbp_subnet_del
int gbp_subnet_del(u32 rd_id, const fib_prefix_t *pfx)
Definition:
gbp_subnet.c:230
GBP_SUBNET_STITCHED_EXTERNAL
@ GBP_SUBNET_STITCHED_EXTERNAL
Definition:
gbp_subnet.h:25
gbp_subnet_walk
void gbp_subnet_walk(gbp_subnet_cb_t cb, void *ctx)
Definition:
gbp_subnet.c:416
GBP_SUBNET_TRANSPORT
@ GBP_SUBNET_TRANSPORT
Definition:
gbp_subnet.h:23
gbp_subnet_add
int gbp_subnet_add(u32 rd_id, const fib_prefix_t *pfx, gbp_subnet_type_t type, u32 sw_if_index, sclass_t sclass)
Definition:
gbp_subnet.c:255
GBP_SUBNET_ANON_L3_OUT
@ GBP_SUBNET_ANON_L3_OUT
Definition:
gbp_subnet.h:27
sclass
u16 sclass
Definition:
gbp.api:131
gbp_subnet_type_t
enum gbp_subnet_type_t_ gbp_subnet_type_t
rd_id
u32 rd_id
Definition:
gbp.api:35
sclass_t
u16 sclass_t
Definition:
gbp_types.h:25
GBP_SUBNET_L3_OUT
@ GBP_SUBNET_L3_OUT
Definition:
gbp_subnet.h:26
u32
unsigned int u32
Definition:
types.h:88
gbp_subnet_type_t_
gbp_subnet_type_t_
Definition:
gbp_subnet.h:21
ctx
long ctx[MAX_CONNS]
Definition:
main.c:144
sw_if_index
vl_api_interface_index_t sw_if_index
Definition:
wireguard.api:34
walk_rc_t
enum walk_rc_t_ walk_rc_t
Walk return code.
fib_prefix_t_
Aggregate type for a prefix.
Definition:
fib_types.h:202
type
vl_api_fib_path_type_t type
Definition:
fib_types.api:123
src
plugins
gbp
gbp_subnet.h
Generated on Sat Jan 8 2022 10:03:49 for FD.io VPP by
1.8.17