aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-10-17 11:52:34 -0700
committerDave Wallace <dwallacelf@gmail.com>2022-10-19 01:00:52 +0000
commit8c1be054b90f113aef3ae27b52d7389271ce91c3 (patch)
tree9123e5efa00a953b08f4a1d2f330227714382ad7 /src/vnet/udp/udp.h
parent472d0da7a0590c4beb052ce70edee60b0fa5e98f (diff)
udp: explicit udp output node
This allows for custom next node selection on output. Type: feature Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ib0fee71a01847184e95c18097bbbfdadfbd9d030
Diffstat (limited to 'src/vnet/udp/udp.h')
-rw-r--r--src/vnet/udp/udp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/udp/udp.h b/src/vnet/udp/udp.h
index d51805099ce..96316a43fc8 100644
--- a/src/vnet/udp/udp.h
+++ b/src/vnet/udp/udp.h
@@ -64,6 +64,8 @@ typedef struct
u8 flags; /**< connection flags */
u16 mss; /**< connection mss */
u32 sw_if_index; /**< connection sw_if_index */
+ u32 next_node_index; /**< Can be used to control next node in output */
+ u32 next_node_opaque; /**< Opaque to pass to next node */
} udp_connection_t;
typedef struct
@@ -129,6 +131,8 @@ extern vlib_node_registration_t udp4_input_node;
extern vlib_node_registration_t udp6_input_node;
extern vlib_node_registration_t udp4_local_node;
extern vlib_node_registration_t udp6_local_node;
+extern vlib_node_registration_t udp4_output_node;
+extern vlib_node_registration_t udp6_output_node;
void udp_add_dst_port (udp_main_t * um, udp_dst_port_t dst_port,
char *dst_port_name, u8 is_ip4);