explicitly initialize all TCPConnection fields in IPStackSimulator

This commit is contained in:
Martin Michelsen
2023-01-08 13:55:48 -08:00
parent 9ac01875fb
commit 61751d681e
+12 -1
View File
@@ -147,7 +147,18 @@ static void flush_and_free_bufferevent(struct bufferevent* bev) {
IPStackSimulator::IPClient::TCPConnection::TCPConnection()
: server_bev(nullptr, flush_and_free_bufferevent),
pending_data(evbuffer_new(), evbuffer_free),
resend_push_event(nullptr, event_free) { }
resend_push_event(nullptr, event_free),
awaiting_first_ack(true),
server_addr(0),
server_port(0),
client_port(0),
next_client_seq(0),
acked_server_seq(0),
resend_push_usecs(DEFAULT_RESEND_PUSH_USECS),
next_push_max_frame_size(1024),
max_frame_size(1024),
bytes_received(0),
bytes_sent(0) { }