1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/net/gogoc/files/patch-icmp_echo_engine.c
Bartek Rutkowski 317ce5aa12 net/gogoc: new patch with various improvements
- When shutdown, the correct behavior is to send SIGHUP.
- New patch patch-icmp_echo_engine.c: When PID of the gogoc process greater
  than 65536, it can not perform timeout ping check correctly, due to
  echo_id in icmp_hdr is declared as uint16_t.
- New patch patch-freebsd.sh: To mute dmesg noise "nd6_dad_timer: cancel
  DAD on tun0 because of ND6_IFF_IFDISABLED."
- Don't overwrite gogoc.conf on install.

PR:		211426
Submitted by:	Clive Lin <clive@tongi.org>
Approved by:	maintainer timeout (8 months)
2017-03-23 12:54:46 +00:00

12 lines
412 B
C

--- gogoc-tsp/src/net/icmp_echo_engine.c~ 2016-07-22 15:16:32.382995000 +0800
+++ gogoc-tsp/src/net/icmp_echo_engine.c 2016-07-22 15:16:44.244691000 +0800
@@ -238,7 +238,7 @@
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 )
{