mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-04 15:53:44 +00:00
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:
parent
c61329b303
commit
3d9ef354ab
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue