net/sixlowpan: TCP send should have PSH and ACK flags set when sending. This matches the standard network (Ethernet) TCP send logic.

This commit is contained in:
Anthony Merlino 2018-05-17 06:45:46 -06:00 committed by Gregory Nutt
parent f91c3666a1
commit 5e2d7c227d

View File

@ -242,7 +242,7 @@ static int sixlowpan_tcp_header(FAR struct tcp_conn_s *conn,
ipv6tcp->tcp.destport = conn->rport; /* Connected remote port */
ipv6tcp->tcp.tcpoffset = (TCP_HDRLEN / 4) << 4; /* No optdata */
ipv6tcp->tcp.flags = 0; /* No urgent data */
ipv6tcp->tcp.flags = TCP_ACK | TCP_PSH; /* No urgent data */
ipv6tcp->tcp.urgp[0] = 0; /* No urgent data */
ipv6tcp->tcp.urgp[1] = 0;