mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
patch by Jens Nielsen: fixed bug #38803 (Source address in broadcast ping reply)
This commit is contained in:
parent
03159254ce
commit
c87efb77bc
@ -202,6 +202,9 @@ HISTORY
|
||||
|
||||
++ Bugfixes:
|
||||
|
||||
2015-02-22: patch by Jens Nielsen
|
||||
* icmp.c: fixed bug #38803 (Source address in broadcast ping reply)
|
||||
|
||||
2015-02-22: Simon Goldschmidt
|
||||
* udp.h, sockets.c: added proper accessor functions for pcb->multicast_ip
|
||||
(previously used by get/setsockopt only)
|
||||
|
@ -185,7 +185,7 @@ icmp_input(struct pbuf *p, struct netif *inp)
|
||||
/* We generate an answer by switching the dest and src ip addresses,
|
||||
* setting the icmp type to ECHO_RESPONSE and updating the checksum. */
|
||||
iecho = (struct icmp_echo_hdr *)p->payload;
|
||||
ip_addr_copy(iphdr->src, *ip_current_dest_addr());
|
||||
ip_addr_copy(iphdr->src, inp->ip_addr);
|
||||
ip_addr_copy(iphdr->dest, *ip_current_src_addr());
|
||||
ICMPH_TYPE_SET(iecho, ICMP_ER);
|
||||
#if CHECKSUM_GEN_ICMP
|
||||
|
Loading…
Reference in New Issue
Block a user