// SPDX-License-Identifier: MIT

syntax = "proto2";

import "opts.proto";

message tcp_opts_entry {
	optional bool		cork		= 1;
	optional bool		nodelay		= 2;
	optional uint32		keepcnt		= 3;
	optional uint32		keepidle	= 4;
	optional uint32		keepintvl	= 5;
}

message tcp_stream_entry {
	required uint32		inq_len		= 1;
	required uint32		inq_seq		= 2;
	required uint32		outq_len	= 3; /* unsent and sent data in the send queue*/
	required uint32		outq_seq	= 4;

	required uint32		opt_mask	= 5 [(criu).hex = true]; /* TCPI_OPT_ bits */
	required uint32		snd_wscale	= 6;
	required uint32		mss_clamp	= 7;
	optional uint32		rcv_wscale	= 8;
	optional uint32		timestamp	= 9;

	/* These two are deprecated, use tcp_opts_entry instead */
	optional bool		cork		= 10;
	optional bool		nodelay		= 11;

	optional uint32		unsq_len	= 12; /* unsent data in the send queue */

	optional uint32		snd_wl1		= 13;
	optional uint32		snd_wnd		= 14;
	optional uint32		max_window	= 15;
	optional uint32		rcv_wnd		= 16;
	optional uint32		rcv_wup		= 17;
}
