aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianyu Li <tianyu.li@arm.com>2023-02-27 09:14:34 +0000
committerTianyu Li <tianyu.li@arm.com>2023-03-01 11:08:44 +0800
commit2073fe49b6977784c39d4a2acb37ba8ad733c2c4 (patch)
treead0fd17818102f6962a8f9550a0d59e077849e98
parente2415f79f722ee7f31617ebb6bd82e6b9ad16727 (diff)
vcl: fix undeclared UDP_SEGMENT for centos 8
Old distros Centos 8 / Ubuntu 18.04 header files doesn't have UDP_SEGMENT declared, define UDP_SEGMENT to right value if not defined. Type: fix Fixes: eff5f7aea8c7 ("vcl: ldp support for ip_pktinfo") Signed-off-by: Tianyu Li <tianyu.li@arm.com> Change-Id: I99314b895e7d09962a36e7f5582c09d0d77563dc
-rw-r--r--src/vcl/ldp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c
index 0f3147610d8..0bb81344662 100644
--- a/src/vcl/ldp.c
+++ b/src/vcl/ldp.c
@@ -63,6 +63,10 @@
#define SOCKADDR_GET_SA(__addr) _addr;
#endif
+#ifndef UDP_SEGMENT
+#define UDP_SEGMENT 103
+#endif
+
typedef struct ldp_worker_ctx_
{
u8 *io_buffer;