Initialization for data packets.
FossilOrigin-Name: cda2a9bef75dfdd6870ff2e62ac8edcb84427ade9c9ab5ac79ddf34442673684
This commit is contained in:
parent
aadb57f036
commit
e704711722
@ -83,6 +83,7 @@ struct conn * conn_create(int sock, struct sockaddr * addr, int qsize)
|
||||
}
|
||||
|
||||
conn->send_packet = conn_send_packet;
|
||||
conn->send_data_packet = conn_send_data_packet;
|
||||
|
||||
conn->last_seqnum_received=-1;
|
||||
conn->mtu=1500;
|
||||
@ -95,6 +96,8 @@ struct conn * conn_create(int sock, struct sockaddr * addr, int qsize)
|
||||
conn->write = conn->send_packet;
|
||||
conn->read = conn->recv_packet;
|
||||
|
||||
conn->write_data = conn->send_data_packet;
|
||||
|
||||
conn->dtls_mtu = 1500;
|
||||
|
||||
return conn;
|
||||
|
Loading…
Reference in New Issue
Block a user