mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
soccr: rectify Alpine build
Made a symlink to CRIU's generated config.h, played with moving some code to soccr.h header. Changed types from u32 to uint32_t, otherwise we should include CRIU's "int.h" in soccr, but I'm lazy to add that. Cc: Pavel Emelyanov <xemul@virtuozzo.com> Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
51e301571a
commit
f92b8d9c44
4 changed files with 44 additions and 52 deletions
1
soccr/config.h
Symbolic link
1
soccr/config.h
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../criu/include/config.h
|
||||
|
|
@ -11,19 +11,6 @@
|
|||
#define SIOCOUTQNSD 0x894B
|
||||
#endif
|
||||
|
||||
#ifndef TCP_REPAIR_WINDOW
|
||||
#define TCP_REPAIR_WINDOW 29
|
||||
#endif
|
||||
|
||||
struct tcp_repair_window {
|
||||
__u32 snd_wl1;
|
||||
__u32 snd_wnd;
|
||||
__u32 max_window;
|
||||
|
||||
__u32 rcv_wnd;
|
||||
__u32 rcv_wup;
|
||||
};
|
||||
|
||||
static void (*log)(unsigned int loglevel, const char *format, ...)
|
||||
__attribute__ ((__format__ (__printf__, 2, 3)));
|
||||
static unsigned int log_level = 0;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,49 @@
|
|||
#ifndef __LIBSOCCR_H__
|
||||
#define __LIBSOCCR_H__
|
||||
#include <linux/types.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef CONFIG_HAS_TCP_REPAIR_WINDOW
|
||||
struct tcp_repair_window {
|
||||
uint32_t snd_wl1;
|
||||
uint32_t snd_wnd;
|
||||
uint32_t max_window;
|
||||
|
||||
uint32_t rcv_wnd;
|
||||
uint32_t rcv_wup;
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_HAS_TCP_REPAIR
|
||||
/*
|
||||
* It's been reported that both tcp_repair_opt
|
||||
* and TCP_ enum already shipped in netinet/tcp.h
|
||||
* system header by some distros thus we need a
|
||||
* test if we can use predefined ones or provide
|
||||
* our own.
|
||||
*/
|
||||
struct tcp_repair_opt {
|
||||
uint32_t opt_code;
|
||||
uint32_t opt_val;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCP_NO_QUEUE,
|
||||
TCP_RECV_QUEUE,
|
||||
TCP_SEND_QUEUE,
|
||||
TCP_QUEUES_NR,
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef TCP_TIMESTAMP
|
||||
#define TCP_TIMESTAMP 24
|
||||
#endif
|
||||
|
||||
#ifndef TCP_REPAIR_WINDOW
|
||||
#define TCP_REPAIR_WINDOW 29
|
||||
#endif
|
||||
|
||||
struct libsoccr_sk;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue