summaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp_encap.h
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@yandex-team.ru>2022-06-23 00:45:16 +0500
committerNeale Ranns <neale@graphiant.com>2022-09-30 03:48:42 +0000
commit5c801b362a536fcae704c50bf1573362d372bb3c (patch)
treef8724d4f1d7d68a7fbf3d47523e08a478ee70aea /src/vnet/udp/udp_encap.h
parenta30495ce0dd15240c5d03a5f3e17c3428e09dd5c (diff)
udp: add udp encap source port entropy support
Encode entropy value in UDP source port when requested per RFC 7510. CLI already has "src-port-is-entropy", use zero UDP source port in API to avoid breaking changes, since zero port is not something to be used in wild. Also, mark UDP encapsualtion API as mp-safe as already done for CLI. Type: feature Change-Id: Ieb61ee11e058179ed566ff1f251a3391eb169d52 Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Diffstat (limited to 'src/vnet/udp/udp_encap.h')
-rw-r--r--src/vnet/udp/udp_encap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/udp/udp_encap.h b/src/vnet/udp/udp_encap.h
index 648e3b59e6d..c8b42ffa92c 100644
--- a/src/vnet/udp/udp_encap.h
+++ b/src/vnet/udp/udp_encap.h
@@ -115,6 +115,7 @@ extern index_t udp_encap_add_and_lock (fib_protocol_t proto,
extern void udp_encap_lock (index_t uei);
extern void udp_encap_unlock (index_t uei);
extern u8 *format_udp_encap (u8 * s, va_list * args);
+extern u8 *format_udp_encap_fixup_flags (u8 *s, va_list *args);
extern void udp_encap_contribute_forwarding (index_t uei,
dpo_proto_t proto,
dpo_id_t * dpo);