mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 12:00:53 +00:00
ip.c: if IP_REASSEMBLY is set to 1, don't set the IP_DF ("Don't fragment") flag in the IP header in IP output packets.
This commit is contained in:
parent
f75be85eea
commit
996d5fda69
@ -98,6 +98,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2007-03-30 Frédéric Bernon
|
||||||
|
* ip.c: if IP_REASSEMBLY is set to 1, don't set the IP_DF ("Don't fragment") flag
|
||||||
|
in the IP header in IP output packets.
|
||||||
|
|
||||||
2007-03-30 Frédéric Bernon
|
2007-03-30 Frédéric Bernon
|
||||||
* api_msg.c: add a "pcb_new" helper function to avoid redundant code, and to add
|
* api_msg.c: add a "pcb_new" helper function to avoid redundant code, and to add
|
||||||
missing pcb allocations checking (in do_bind, and for each raw_new). Fix style.
|
missing pcb allocations checking (in do_bind, and for each raw_new). Fix style.
|
||||||
|
@ -438,7 +438,11 @@ ip_output_if(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
|
|||||||
|
|
||||||
IPH_VHLTOS_SET(iphdr, 4, IP_HLEN / 4, tos);
|
IPH_VHLTOS_SET(iphdr, 4, IP_HLEN / 4, tos);
|
||||||
IPH_LEN_SET(iphdr, htons(p->tot_len));
|
IPH_LEN_SET(iphdr, htons(p->tot_len));
|
||||||
|
#if IP_REASSEMBLY
|
||||||
|
IPH_OFFSET_SET(iphdr, 0);
|
||||||
|
#else
|
||||||
IPH_OFFSET_SET(iphdr, htons(IP_DF));
|
IPH_OFFSET_SET(iphdr, htons(IP_DF));
|
||||||
|
#endif /* IP_REASSEMBLY */
|
||||||
IPH_ID_SET(iphdr, htons(ip_id));
|
IPH_ID_SET(iphdr, htons(ip_id));
|
||||||
++ip_id;
|
++ip_id;
|
||||||
|
|
||||||
@ -538,9 +542,3 @@ ip_debug_print(struct pbuf *p)
|
|||||||
LWIP_DEBUGF(IP_DEBUG, ("+-------------------------------+\n"));
|
LWIP_DEBUGF(IP_DEBUG, ("+-------------------------------+\n"));
|
||||||
}
|
}
|
||||||
#endif /* IP_DEBUG */
|
#endif /* IP_DEBUG */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user