ports/net/freenet6/files/patch-src_net_icmp__echo__engine.c
Kevin Lo c2423da314 Implement a number of improvments:
- When shutdown, the correct behavior is to send SIGHUP.
- When PID of the gw6c process greater than 65536, it can not perform
  timeout ping check correctly, due to echo_id in icmp_hdr is declared as
  uint16_t.
- Mute dmesg noise "nd6_dad_timer: cancel DAD on tun0 because of
  ND6_IFF_IFDISABLED."

PR:	211425
Submitted by:	clive
2017-06-16 13:49:28 +00:00

11 lines
403 B
C

--- src/net/icmp_echo_engine.c.orig 2017-06-16 09:08:10 UTC
+++ src/net/icmp_echo_engine.c
@@ -238,7 +238,7 @@ iee_ret_t IEE_init( void** pp_config, iee_mode_t eng_m
p_engine->clbk_recv = recv_clbk;
// Initialize engine socket variables.
- p_engine->icmp_echo_id = pal_getpid();
+ p_engine->icmp_echo_id = pal_getpid() % 65536;
p_engine->icmp_saf = af;
switch( p_engine->icmp_saf )
{