mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 08:54:32 +00:00
Correctly set the proto field for the case when tcp_send_noconn is called without tcp_send being called
This commit is contained in:
parent
99513f1889
commit
ffc27061fe
@ -1875,8 +1875,6 @@ uip_process(uint8_t flag)
|
|||||||
BUF->seqno[2] = uip_connr->snd_nxt[2];
|
BUF->seqno[2] = uip_connr->snd_nxt[2];
|
||||||
BUF->seqno[3] = uip_connr->snd_nxt[3];
|
BUF->seqno[3] = uip_connr->snd_nxt[3];
|
||||||
|
|
||||||
BUF->proto = UIP_PROTO_TCP;
|
|
||||||
|
|
||||||
BUF->srcport = uip_connr->lport;
|
BUF->srcport = uip_connr->lport;
|
||||||
BUF->destport = uip_connr->rport;
|
BUF->destport = uip_connr->rport;
|
||||||
|
|
||||||
@ -1893,6 +1891,8 @@ uip_process(uint8_t flag)
|
|||||||
}
|
}
|
||||||
|
|
||||||
tcp_send_noconn:
|
tcp_send_noconn:
|
||||||
|
BUF->proto = UIP_PROTO_TCP;
|
||||||
|
|
||||||
BUF->ttl = UIP_TTL;
|
BUF->ttl = UIP_TTL;
|
||||||
#if NETSTACK_CONF_WITH_IPV6
|
#if NETSTACK_CONF_WITH_IPV6
|
||||||
/* For IPv6, the IP length field does not include the IPv6 IP header
|
/* For IPv6, the IP length field does not include the IPv6 IP header
|
||||||
|
Loading…
Reference in New Issue
Block a user