Go to the documentation of this file.
27 #ifndef R2CLUSTER_TCP_H
28 #define R2CLUSTER_TCP_H
30 #include <linux/socket.h>
33 #include <linux/tcp.h>
35 #include <sys/socket.h>
57 #define R2NET_MAX_PAYLOAD_BYTES (4096 - sizeof(struct r2net_msg))
60 #define R2NET_RECONNECT_DELAY_MS_DEFAULT 2000
62 #define R2NET_KEEPALIVE_DELAY_MS_DEFAULT 2000
63 #define R2NET_IDLE_TIMEOUT_MS_DEFAULT 30000
67 static inline int r2net_link_down(
int err,
struct socket *
sock)
102 size_t veclen,
u8 target_node,
int *
status);
131 int r2net_debugfs_init(
void);
132 void r2net_debugfs_exit(
void);
138 static inline int r2net_debugfs_init(
void)
142 static inline void r2net_debugfs_exit(
void)