From 2073fe49b6977784c39d4a2acb37ba8ad733c2c4 Mon Sep 17 00:00:00 2001 From: Tianyu Li Date: Mon, 27 Feb 2023 09:14:34 +0000 Subject: 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 Change-Id: I99314b895e7d09962a36e7f5582c09d0d77563dc --- src/vcl/ldp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vcl') 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; -- cgit 1.2.3-korg