mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-28 23:00:50 +00:00
Merged from trunk: fixed compilation of tcp_helper.c
This commit is contained in:
commit
5f4f07c193
@ -64,7 +64,8 @@ tcp_create_segment_wnd(ip_addr_t* src_ip, ip_addr_t* dst_ip,
|
|||||||
/* fill IP header */
|
/* fill IP header */
|
||||||
iphdr->dest.addr = dst_ip->addr;
|
iphdr->dest.addr = dst_ip->addr;
|
||||||
iphdr->src.addr = src_ip->addr;
|
iphdr->src.addr = src_ip->addr;
|
||||||
IPH_VHLTOS_SET(iphdr, 4, IP_HLEN / 4, 0);
|
IPH_VHL_SET(iphdr, 4, IP_HLEN / 4);
|
||||||
|
IPH_TOS_SET(iphdr, 0);
|
||||||
IPH_LEN_SET(iphdr, htons(p->tot_len));
|
IPH_LEN_SET(iphdr, htons(p->tot_len));
|
||||||
IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN));
|
IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user