aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/wireguard
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/wireguard')
-rw-r--r--src/plugins/wireguard/wireguard_handoff.c56
1 files changed, 35 insertions, 21 deletions
diff --git a/src/plugins/wireguard/wireguard_handoff.c b/src/plugins/wireguard/wireguard_handoff.c
index 8a2efa508b3..2c310a29dc0 100644
--- a/src/plugins/wireguard/wireguard_handoff.c
+++ b/src/plugins/wireguard/wireguard_handoff.c
@@ -158,35 +158,49 @@ VLIB_NODE_FN (wg_output_tun_handoff) (vlib_main_t * vm,
WG_HANDOFF_OUT_TUN);
}
+/* *INDENT-OFF* */
VLIB_REGISTER_NODE (wg_handshake_handoff) =
{
- .name = "wg-handshake-handoff",.vector_size = sizeof (u32),.format_trace =
- format_wg_handoff_trace,.type = VLIB_NODE_TYPE_INTERNAL,.n_errors =
- ARRAY_LEN (wg_handoff_error_strings),.error_strings =
- wg_handoff_error_strings,.n_next_nodes = 1,.next_nodes =
- {
- [0] = "error-drop",}
-,};
+ .name = "wg-handshake-handoff",
+ .vector_size = sizeof (u32),
+ .format_trace = format_wg_handoff_trace,
+ .type = VLIB_NODE_TYPE_INTERNAL,
+ .n_errors = ARRAY_LEN (wg_handoff_error_strings),
+ .error_strings = wg_handoff_error_strings,
+ .n_next_nodes = 1,
+ .next_nodes = {
+ [0] = "error-drop",
+ },
+};
VLIB_REGISTER_NODE (wg_input_data_handoff) =
{
- .name = "wg-input-data-handoff",.vector_size = sizeof (u32),.format_trace =
- format_wg_handoff_trace,.type = VLIB_NODE_TYPE_INTERNAL,.n_errors =
- ARRAY_LEN (wg_handoff_error_strings),.error_strings =
- wg_handoff_error_strings,.n_next_nodes = 1,.next_nodes =
- {
- [0] = "error-drop",}
-,};
+ .name = "wg-input-data-handoff",
+ .vector_size = sizeof (u32),
+ .format_trace = format_wg_handoff_trace,
+ .type = VLIB_NODE_TYPE_INTERNAL,
+ .n_errors = ARRAY_LEN (wg_handoff_error_strings),
+ .error_strings = wg_handoff_error_strings,
+ .n_next_nodes = 1,
+ .next_nodes = {
+ [0] = "error-drop",
+ },
+};
VLIB_REGISTER_NODE (wg_output_tun_handoff) =
{
- .name = "wg-output-tun-handoff",.vector_size = sizeof (u32),.format_trace =
- format_wg_handoff_trace,.type = VLIB_NODE_TYPE_INTERNAL,.n_errors =
- ARRAY_LEN (wg_handoff_error_strings),.error_strings =
- wg_handoff_error_strings,.n_next_nodes = 1,.next_nodes =
- {
- [0] = "error-drop",}
-,};
+ .name = "wg-output-tun-handoff",
+ .vector_size = sizeof (u32),
+ .format_trace = format_wg_handoff_trace,
+ .type = VLIB_NODE_TYPE_INTERNAL,
+ .n_errors = ARRAY_LEN (wg_handoff_error_strings),
+ .error_strings = wg_handoff_error_strings,
+ .n_next_nodes = 1,
+ .next_nodes = {
+ [0] = "error-drop",
+ },
+};
+/* *INDENT-ON* */
/*
* fd.io coding-style-patch-verification: ON