mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Fill IPv6->Next-Hdr field for outgoing RSTs
This commit is contained in:
parent
ce914b3173
commit
99513f1889
@ -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