mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Merge pull request #898 from g-oikonomou/tcp-rst-fix
Fill IPv6->Next-Hdr field for outgoing RSTs
This commit is contained in:
commit
72679a819b
@ -1875,8 +1875,6 @@ uip_process(uint8_t flag)
|
||||
BUF->seqno[2] = uip_connr->snd_nxt[2];
|
||||
BUF->seqno[3] = uip_connr->snd_nxt[3];
|
||||
|
||||
BUF->proto = UIP_PROTO_TCP;
|
||||
|
||||
BUF->srcport = uip_connr->lport;
|
||||
BUF->destport = uip_connr->rport;
|
||||
|
||||
@ -1893,6 +1891,8 @@ uip_process(uint8_t flag)
|
||||
}
|
||||
|
||||
tcp_send_noconn:
|
||||
BUF->proto = UIP_PROTO_TCP;
|
||||
|
||||
BUF->ttl = UIP_TTL;
|
||||
#if NETSTACK_CONF_WITH_IPV6
|
||||
/* For IPv6, the IP length field does not include the IPv6 IP header
|
||||
|
@ -2239,8 +2239,6 @@ uip_process(uint8_t flag)
|
||||
UIP_TCP_BUF->seqno[2] = uip_connr->snd_nxt[2];
|
||||
UIP_TCP_BUF->seqno[3] = uip_connr->snd_nxt[3];
|
||||
|
||||
UIP_IP_BUF->proto = UIP_PROTO_TCP;
|
||||
|
||||
UIP_TCP_BUF->srcport = uip_connr->lport;
|
||||
UIP_TCP_BUF->destport = uip_connr->rport;
|
||||
|
||||
@ -2262,6 +2260,8 @@ uip_process(uint8_t flag)
|
||||
}
|
||||
|
||||
tcp_send_noconn:
|
||||
UIP_IP_BUF->proto = UIP_PROTO_TCP;
|
||||
|
||||
UIP_IP_BUF->ttl = uip_ds6_if.cur_hop_limit;
|
||||
UIP_IP_BUF->len[0] = ((uip_len - UIP_IPH_LEN) >> 8);
|
||||
UIP_IP_BUF->len[1] = ((uip_len - UIP_IPH_LEN) & 0xff);
|
||||
|
Loading…
Reference in New Issue
Block a user