Commit f92b8d9c authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Pavel Emelyanov

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: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 51e30157
...@@ -27,45 +27,6 @@ ...@@ -27,45 +27,6 @@
#include "protobuf.h" #include "protobuf.h"
#include "images/tcp-stream.pb-c.h" #include "images/tcp-stream.pb-c.h"
#ifndef CONFIG_HAS_TCP_REPAIR_WINDOW
struct tcp_repair_window {
u32 snd_wl1;
u32 snd_wnd;
u32 max_window;
u32 rcv_wnd;
u32 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 {
u32 opt_code;
u32 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
static LIST_HEAD(cpt_tcp_repair_sockets); static LIST_HEAD(cpt_tcp_repair_sockets);
static LIST_HEAD(rst_tcp_repair_sockets); static LIST_HEAD(rst_tcp_repair_sockets);
......
../criu/include/config.h
\ No newline at end of file
...@@ -11,19 +11,6 @@ ...@@ -11,19 +11,6 @@
#define SIOCOUTQNSD 0x894B #define SIOCOUTQNSD 0x894B
#endif #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, ...) static void (*log)(unsigned int loglevel, const char *format, ...)
__attribute__ ((__format__ (__printf__, 2, 3))); __attribute__ ((__format__ (__printf__, 2, 3)));
static unsigned int log_level = 0; static unsigned int log_level = 0;
......
#ifndef __LIBSOCCR_H__ #ifndef __LIBSOCCR_H__
#define __LIBSOCCR_H__ #define __LIBSOCCR_H__
#include <linux/types.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; struct libsoccr_sk;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment