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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef SRC_VNET_UDP_UDP_LOCAL_H_
17 #define SRC_VNET_UDP_UDP_LOCAL_H_
19 #include <vnet/vnet.h>
21 #define foreach_udp4_dst_port \
23 _ (67, dhcp_to_server) \
24 _ (68, dhcp_to_client) \
35 _ (48879, vxlan_gbp) \
42 #define foreach_udp6_dst_port \
44 _ (547, dhcpv6_to_server) \
45 _ (546, dhcpv6_to_client) \
51 _ (48879, vxlan6_gbp) \
52 _ (4790, VXLAN6_GPE) \
60 #define _(n,f) UDP_DST_PORT_##f = n,
61 foreach_udp4_dst_port foreach_udp6_dst_port
67 #define _(n,f) UDP6_DST_PORT_##f = n,
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);
79 #endif /* SRC_VNET_UDP_UDP_LOCAL_H_ */
82 * fd.io coding-style-patch-verification: ON
85 * eval: (c-set-style "gnu")