2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-28 21:07:43 +00:00
criu/sk-tcp.c

39 lines
861 B
C
Raw Normal View History

#include <netinet/tcp.h>
#include "types.h"
#include "sockets.h"
#include "files.h"
#include "sk-inet.h"
void tcp_unlock_all(void)
{
}
void tcp_locked_conn_add(struct inet_sk_info *ii)
{
}
void tcp_unlock_connections(void)
{
}
void show_tcp_stream(int fd, struct cr_options *opt)
{
struct tcp_stream_entry tse;
pr_img_head(CR_FD_TCP_STREAM);
if (read_img(fd, &tse) > 0) {
pr_msg("IN: seq %10u len %10u\n", tse.inq_seq, tse.inq_len);
pr_msg("OUT: seq %10u len %10u\n", tse.outq_seq, tse.outq_len);
pr_msg("OPTS: %#x\n", (int)tse.opt_mask);
pr_msg("\tmss_clamp %u\n", (int)tse.mss_clamp);
if (tse.opt_mask & TCPI_OPT_WSCALE)
pr_msg("\twscale %u\n", (int)tse.snd_wscale);
if (tse.opt_mask & TCPI_OPT_TIMESTAMPS)
pr_msg("\ttimestamps\n");
if (tse.opt_mask & TCPI_OPT_SACK)
pr_msg("\tsack\n");
}
pr_img_tail(CR_FD_TCP_STREAM);
}