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
udp_local.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 SRC_VNET_UDP_UDP_LOCAL_H_
17
#define SRC_VNET_UDP_UDP_LOCAL_H_
18
19
#include <
vnet/vnet.h
>
20
21
#define foreach_udp4_dst_port \
22
_ (53, dns) \
23
_ (67, dhcp_to_server) \
24
_ (68, dhcp_to_client) \
25
_ (500, ikev2) \
26
_ (2152, GTPU) \
27
_ (3784, bfd4) \
28
_ (3785, bfd_echo4) \
29
_ (4341, lisp_gpe) \
30
_ (4342, lisp_cp) \
31
_ (4500, ipsec) \
32
_ (4739, ipfix) \
33
_ (4789, vxlan) \
34
_ (4789, vxlan6) \
35
_ (48879, vxlan_gbp) \
36
_ (4790, VXLAN_GPE) \
37
_ (6633, vpath_3) \
38
_ (6081, geneve) \
39
_ (53053, dns_reply)
40
41
42
#define foreach_udp6_dst_port \
43
_ (53, dns6) \
44
_ (547, dhcpv6_to_server) \
45
_ (546, dhcpv6_to_client) \
46
_ (2152, GTPU6) \
47
_ (3784, bfd6) \
48
_ (3785, bfd_echo6) \
49
_ (4341, lisp_gpe6) \
50
_ (4342, lisp_cp6) \
51
_ (48879, vxlan6_gbp) \
52
_ (4790, VXLAN6_GPE) \
53
_ (6633, vpath6_3) \
54
_ (6081, geneve6) \
55
_ (8138, BIER) \
56
_ (53053, dns_reply6)
57
58
typedef
enum
59
{
60
#define _(n,f) UDP_DST_PORT_##f = n,
61
foreach_udp4_dst_port
foreach_udp6_dst_port
62
#undef _
63
}
udp_dst_port_t
;
64
65
typedef
enum
66
{
67
#define _(n,f) UDP6_DST_PORT_##f = n,
68
foreach_udp6_dst_port
69
#undef _
70
}
udp6_dst_port_t
;
71
72
void
udp_register_dst_port
(
vlib_main_t
*
vm
,
73
udp_dst_port_t
dst_port
,
74
u32
node_index
,
u8
is_ip4);
75
void
udp_unregister_dst_port
(
vlib_main_t
*
vm
,
76
udp_dst_port_t
dst_port
,
u8
is_ip4);
77
u8
udp_is_valid_dst_port
(
udp_dst_port_t
dst_port
,
u8
is_ip4);
78
79
#endif
/* SRC_VNET_UDP_UDP_LOCAL_H_ */
80
81
/*
82
* fd.io coding-style-patch-verification: ON
83
*
84
* Local Variables:
85
* eval: (c-set-style "gnu")
86
* End:
87
*/
udp_dst_port_t
udp_dst_port_t
Definition:
udp_local.h:58
dst_port
vl_api_ip_port_and_mask_t dst_port
Definition:
flow_types.api:92
udp_register_dst_port
void udp_register_dst_port(vlib_main_t *vm, udp_dst_port_t dst_port, u32 node_index, u8 is_ip4)
Definition:
udp_local.c:468
udp_is_valid_dst_port
u8 udp_is_valid_dst_port(udp_dst_port_t dst_port, u8 is_ip4)
Definition:
udp_local.c:529
foreach_udp4_dst_port
#define foreach_udp4_dst_port
Definition:
udp_local.h:21
foreach_udp6_dst_port
#define foreach_udp6_dst_port
Definition:
udp_local.h:42
vm
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
Definition:
nat44_ei.c:3047
node_index
node node_index
Definition:
interface_output.c:420
u32
unsigned int u32
Definition:
types.h:88
udp6_dst_port_t
udp6_dst_port_t
Definition:
udp_local.h:65
vlib_main_t
Definition:
main.h:102
u8
unsigned char u8
Definition:
types.h:56
vnet.h
udp_unregister_dst_port
void udp_unregister_dst_port(vlib_main_t *vm, udp_dst_port_t dst_port, u8 is_ip4)
Definition:
udp_local.c:506
src
vnet
udp
udp_local.h
Generated on Sat Jan 8 2022 10:05:35 for FD.io VPP by
1.8.17