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.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 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 __URPF_H__
17
#define __URPF_H__
18
19
#include <
vnet/ip/ip_types.h
>
20
21
#define foreach_urpf_mode \
22
_(OFF, "off") \
23
_(LOOSE, "loose") \
24
_(STRICT, "strict") \
25
26
typedef
enum
urpf_mode_t_
27
{
28
#define _(a,b) URPF_MODE_##a,
29
foreach_urpf_mode
30
#undef _
31
} __clib_packed
urpf_mode_t
;
32
33
#define URPF_N_MODES (URPF_MODE_STRICT+1)
34
35
extern
u8
*
format_urpf_mode
(
u8
* s, va_list *
a
);
36
37
extern
void
urpf_update
(
urpf_mode_t
mode
,
38
u32
sw_if_index
,
39
ip_address_family_t
af,
vlib_dir_t
dir);
40
41
42
#endif
43
44
/*
45
* fd.io coding-style-patch-verification: ON
46
*
47
* Local Variables:
48
* eval: (c-set-style "gnu")
49
* End:
50
*/
mode
vl_api_tunnel_mode_t mode
Definition:
gre.api:48
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
vlib_rx_or_tx_t
vlib_rx_or_tx_t
Definition:
defs.h:44
ip_types.h
foreach_urpf_mode
#define foreach_urpf_mode
Definition:
urpf.h:21
u32
unsigned int u32
Definition:
types.h:88
urpf_mode_t
enum urpf_mode_t_ urpf_mode_t
u8
unsigned char u8
Definition:
types.h:56
a
a
Definition:
bitmap.h:544
urpf_mode_t_
urpf_mode_t_
Definition:
urpf.h:26
sw_if_index
vl_api_interface_index_t sw_if_index
Definition:
wireguard.api:34
format_urpf_mode
u8 * format_urpf_mode(u8 *s, va_list *a)
Definition:
urpf.c:64
ip_address_family_t
enum ip_address_family_t_ ip_address_family_t
src
plugins
urpf
urpf.h
Generated on Sat Jan 8 2022 10:04:26 for FD.io VPP by
1.8.17