sk-inet: add MPTCP definition

Building CRIU on Ubuntu 20.04 fails with the following error:

criu/sk-inet.c: In function 'can_dump_ipproto':
criu/sk-inet.c:131:16: error: 'IPPROTO_MPTCP' undeclared (first use in this function); did you mean 'IPPROTO_MTP'?
  131 |   if (proto == IPPROTO_MPTCP)
      |                ^~~~~~~~~~~~~
      |                IPPROTO_MTP

Add definition for MPTCP to fix this error.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
Radostin Stoyanov 2025-05-16 12:43:14 +01:00 committed by Andrei Vagin
parent c61329b303
commit 3d9ef354ab

View file

@ -44,6 +44,11 @@
#define PB_ALEN_INET 1
#define PB_ALEN_INET6 4
/* Definition for older kernels without MPTCP support (e.g. Ubuntu 20.04) */
#ifndef IPPROTO_MPTCP
#define IPPROTO_MPTCP 262
#endif
static LIST_HEAD(inet_ports);
struct inet_port {