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
urpf.api
Go to the documentation of this file.
1
/* Hey Emacs use -*- mode: C -*- */
2
/*
3
* Copyright (c) 2016 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
/** \file
18
This file defines the vpp control-plane API messages
19
used to control the URPF plugin
20
*/
21
22
option
version
=
"1.0.0"
;
23
import
"vnet/ip/ip_types.api"
;
24
import
"vnet/fib/fib_types.api"
;
25
import
"vnet/interface_types.api"
;
26
27
enum
urpf_mode
:
u8
28
{
29
URPF_API_MODE_OFF
,
30
URPF_API_MODE_LOOSE
,
31
URPF_API_MODE_STRICT
,
32
};
33
34
/**
35
* @brief Enable uRPF on a given interface in a given direction
36
* @param client_index - opaque cookie to identify the sender
37
* @param context - sender context, to match reply w/ request
38
* @param mode - Mode
39
* @param af - Address Family
40
* @param sw_if_index - Interface
41
* @param is_input - Direction.
42
*/
43
autoreply define
urpf_update
44
{
45
u32
client_index
;
46
u32
context
;
47
bool
is_input[
default
=
true
];
48
vl_api_urpf_mode_t
mode
;
49
vl_api_address_family_t
af
;
50
vl_api_interface_index_t
sw_if_index
;
51
};
52
53
/*
54
* fd.io coding-style-patch-verification: ON
55
*
56
* Local Variables:
57
* eval: (c-set-style "gnu")
58
* End:
59
*/
vl_api_urpf_update_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition:
urpf.api:50
URPF_API_MODE_STRICT
@ URPF_API_MODE_STRICT
Definition:
urpf.api:31
vl_api_urpf_update_t::client_index
u32 client_index
Definition:
urpf.api:45
urpf_update
void urpf_update(urpf_mode_t mode, u32 sw_if_index, ip_address_family_t af, vlib_dir_t dir)
Definition:
urpf.c:99
URPF_API_MODE_LOOSE
@ URPF_API_MODE_LOOSE
Definition:
urpf.api:30
vl_api_urpf_update_t::af
vl_api_address_family_t af
Definition:
urpf.api:49
vl_api_urpf_update_t::is_input
bool is_input[default=true]
Definition:
urpf.api:47
URPF_API_MODE_OFF
@ URPF_API_MODE_OFF
Definition:
urpf.api:29
vl_api_urpf_update_t::mode
vl_api_urpf_mode_t mode
Definition:
urpf.api:48
u32
unsigned int u32
Definition:
types.h:88
urpf_mode
urpf_mode
Definition:
urpf.api:27
vl_api_urpf_update_t::context
u32 context
Definition:
urpf.api:46
u8
unsigned char u8
Definition:
types.h:56
version
option version
Definition:
urpf.api:22
vl_api_urpf_update_t
Enable uRPF on a given interface in a given direction.
Definition:
urpf.api:43
src
plugins
urpf
urpf.api
Generated on Sat Jan 8 2022 10:04:26 for FD.io VPP by
1.8.17