From 5c801b362a536fcae704c50bf1573362d372bb3c Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Thu, 23 Jun 2022 00:45:16 +0500 Subject: 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 --- src/plugins/lisp/lisp-gpe/lisp_gpe_adjacency.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/lisp/lisp-gpe/lisp_gpe_adjacency.c') diff --git a/src/plugins/lisp/lisp-gpe/lisp_gpe_adjacency.c b/src/plugins/lisp/lisp-gpe/lisp_gpe_adjacency.c index dd8a252f378..7c857b92575 100644 --- a/src/plugins/lisp/lisp-gpe/lisp_gpe_adjacency.c +++ b/src/plugins/lisp/lisp-gpe/lisp_gpe_adjacency.c @@ -285,7 +285,8 @@ lisp_gpe_fixup (vlib_main_t * vm, /* Fixup the checksum and len fields in the LISP tunnel encap * that was applied at the midchain node */ - ip_udp_fixup_one (vm, b, is_v4_packet (vlib_buffer_get_current (b))); + ip_udp_fixup_one (vm, b, is_v4_packet (vlib_buffer_get_current (b)), + UDP_ENCAP_FIXUP_NONE); } /** -- cgit 1.2.3-korg