Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/soccr
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2021-07-19 10:39:51 +0300
committerAndrei Vagin <avagin@gmail.com>2021-09-03 20:31:00 +0300
commit70833bcf29e7fbb93592225ecc04ac95bb4d6378 (patch)
tree6939f6c59668ddd5b39294c6d0ff81d66c3fc16c /soccr
parent93dd984ca0ee0e31a5650f64328222e748152bcb (diff)
Run 'make indent' on header files
Acked-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'soccr')
-rw-r--r--soccr/soccr.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/soccr/soccr.h b/soccr/soccr.h
index e3cfb7955..934d43827 100644
--- a/soccr/soccr.h
+++ b/soccr/soccr.h
@@ -1,9 +1,9 @@
#ifndef __LIBSOCCR_H__
#define __LIBSOCCR_H__
-#include <netinet/in.h> /* sockaddr_in, sockaddr_in6 */
-#include <netinet/tcp.h> /* TCP_REPAIR_WINDOW, TCP_TIMESTAMP */
-#include <stdint.h> /* uint32_t */
-#include <sys/socket.h> /* sockaddr */
+#include <netinet/in.h> /* sockaddr_in, sockaddr_in6 */
+#include <netinet/tcp.h> /* TCP_REPAIR_WINDOW, TCP_TIMESTAMP */
+#include <stdint.h> /* uint32_t */
+#include <sys/socket.h> /* sockaddr */
#include "common/config.h"
@@ -12,12 +12,12 @@
#ifndef CONFIG_HAS_TCP_REPAIR_WINDOW
struct tcp_repair_window {
- uint32_t snd_wl1;
- uint32_t snd_wnd;
- uint32_t max_window;
+ uint32_t snd_wl1;
+ uint32_t snd_wnd;
+ uint32_t max_window;
- uint32_t rcv_wnd;
- uint32_t rcv_wup;
+ uint32_t rcv_wnd;
+ uint32_t rcv_wup;
};
#endif
@@ -30,8 +30,8 @@ struct tcp_repair_window {
* our own.
*/
struct tcp_repair_opt {
- uint32_t opt_code;
- uint32_t opt_val;
+ uint32_t opt_code;
+ uint32_t opt_val;
};
enum {
@@ -43,17 +43,17 @@ enum {
#endif
#ifndef TCP_TIMESTAMP
-#define TCP_TIMESTAMP 24
+#define TCP_TIMESTAMP 24
#endif
#ifndef TCP_REPAIR_WINDOW
-#define TCP_REPAIR_WINDOW 29
+#define TCP_REPAIR_WINDOW 29
#endif
void libsoccr_set_log(unsigned int level, void (*fn)(unsigned int level, const char *fmt, ...));
-#define SOCCR_LOG_ERR 1
-#define SOCCR_LOG_DBG 2
+#define SOCCR_LOG_ERR 1
+#define SOCCR_LOG_DBG 2
/*
* An opaque handler for C/R-ing a TCP socket.
@@ -71,24 +71,24 @@ union libsoccr_addr {
* socket and given back into the library in two steps (see below).
*/
struct libsoccr_sk_data {
- uint32_t state;
- uint32_t inq_len;
- uint32_t inq_seq;
- uint32_t outq_len;
- uint32_t outq_seq;
- uint32_t unsq_len;
- uint32_t opt_mask;
- uint32_t mss_clamp;
- uint32_t snd_wscale;
- uint32_t rcv_wscale;
- uint32_t timestamp;
-
- uint32_t flags; /* SOCCR_FLAGS_... below */
- uint32_t snd_wl1;
- uint32_t snd_wnd;
- uint32_t max_window;
- uint32_t rcv_wnd;
- uint32_t rcv_wup;
+ uint32_t state;
+ uint32_t inq_len;
+ uint32_t inq_seq;
+ uint32_t outq_len;
+ uint32_t outq_seq;
+ uint32_t unsq_len;
+ uint32_t opt_mask;
+ uint32_t mss_clamp;
+ uint32_t snd_wscale;
+ uint32_t rcv_wscale;
+ uint32_t timestamp;
+
+ uint32_t flags; /* SOCCR_FLAGS_... below */
+ uint32_t snd_wl1;
+ uint32_t snd_wnd;
+ uint32_t max_window;
+ uint32_t rcv_wnd;
+ uint32_t rcv_wup;
};
/*
@@ -105,7 +105,7 @@ struct libsoccr_sk_data {
* Window parameters. Mark snd_wl1, snd_wnd, max_window, rcv_wnd
* and rcv_wup fields.
*/
-#define SOCCR_FLAGS_WINDOW 0x1
+#define SOCCR_FLAGS_WINDOW 0x1
/*
* These two calls pause and resume the socket for and after C/R
@@ -136,7 +136,7 @@ void libsoccr_release(struct libsoccr_sk *sk);
* the former will free() one, when given to the library, the latter
* is to free() it.
*/
-#define SOCCR_MEM_EXCL 0x1
+#define SOCCR_MEM_EXCL 0x1
/*
* CHECKPOINTING calls