mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-17 13:46:56 +08:00
icmp6: keep to the RFC and send as much as possible with icmp6 error messages
See bug 56013 Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
@@ -2496,10 +2496,12 @@
|
||||
|
||||
/**
|
||||
* LWIP_ICMP6_DATASIZE: bytes from original packet to send back in
|
||||
* ICMPv6 error messages.
|
||||
* ICMPv6 error messages (0 = default of IP6_MIN_MTU_LENGTH)
|
||||
* ATTENTION: RFC4443 section 2.4 says IP6_MIN_MTU_LENGTH is a MUST,
|
||||
* so override this only if you absolutely have to!
|
||||
*/
|
||||
#if !defined LWIP_ICMP6_DATASIZE || defined __DOXYGEN__
|
||||
#define LWIP_ICMP6_DATASIZE 8
|
||||
#define LWIP_ICMP6_DATASIZE 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -146,6 +146,8 @@ PACK_STRUCT_END
|
||||
# include "arch/epstruct.h"
|
||||
#endif
|
||||
|
||||
#define ICMP6_HLEN 8
|
||||
|
||||
/** This is the ICMP6 header adapted for echo req/resp. */
|
||||
#ifdef PACK_STRUCT_USE_INCLUDES
|
||||
# include "arch/bpstruct.h"
|
||||
|
||||
Reference in New Issue
Block a user