Added optional transmission of ICMP destimation unreachable in response to incoming UDP packets with an destination port that is not open. This is needed for correct operation of traceroute

This commit is contained in:
adamdunkels 2008-01-24 23:08:58 +00:00
parent c9508567a1
commit 6e89e545b3
2 changed files with 36 additions and 2 deletions

View file

@ -46,7 +46,7 @@
*
* This file is part of the uIP TCP/IP stack.
*
* $Id: uip.h,v 1.13 2007/11/28 12:52:12 adamdunkels Exp $
* $Id: uip.h,v 1.14 2008/01/24 23:08:58 adamdunkels Exp $
*
*/
@ -1497,6 +1497,7 @@ struct uip_icmpip_hdr {
u16_t icmpchksum;
#if !UIP_CONF_IPV6
u16_t id, seqno;
u8_t payload[1];
#else /* !UIP_CONF_IPV6 */
u8_t flags, reserved1, reserved2, reserved3;
u8_t icmp6data[16];