[LTP] [PATCH v2 4/6] lapi/udp.h: Add fallback constant for ESP-in-TCP

Martin Doucha mdoucha@suse.cz
Mon Jun 1 15:20:49 CEST 2026


The system constant is defined in linux/udp.h but not in netinet/udp.h.
Define it in lapi/udp.h anyway.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---

Changes since v1: None

 include/lapi/udp.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lapi/udp.h b/include/lapi/udp.h
index 93b24fc3e..c7023726f 100644
--- a/include/lapi/udp.h
+++ b/include/lapi/udp.h
@@ -23,4 +23,8 @@
 # define UDP_ENCAP_ESPINUDP 2
 #endif
 
+#ifndef TCP_ENCAP_ESPINTCP
+# define TCP_ENCAP_ESPINTCP 7
+#endif
+
 #endif	/* LAPI_UDP_H__ */
-- 
2.54.0



More information about the ltp mailing list