diff options
author | Bartek Rutkowski <robak@FreeBSD.org> | 2017-03-23 12:54:46 +0000 |
---|---|---|
committer | Bartek Rutkowski <robak@FreeBSD.org> | 2017-03-23 12:54:46 +0000 |
commit | 317ce5aa12ad6ad89d50d5617a7fa14b564123c9 (patch) | |
tree | bfc721f545f7b5a026cf6676f3ac7a866cc59d61 /net/gogoc/files | |
parent | 5b14acdaf9c4283a2524af8aa0c547d2e91520e5 (diff) | |
download | ports-317ce5aa12ad6ad89d50d5617a7fa14b564123c9.tar.gz ports-317ce5aa12ad6ad89d50d5617a7fa14b564123c9.zip |
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)
Notes
Notes:
svn path=/head/; revision=436769
Diffstat (limited to 'net/gogoc/files')
-rw-r--r-- | net/gogoc/files/gogoc.in | 1 | ||||
-rw-r--r-- | net/gogoc/files/patch-freebsd.sh | 10 | ||||
-rw-r--r-- | net/gogoc/files/patch-icmp_echo_engine.c | 11 |
3 files changed, 22 insertions, 0 deletions
diff --git a/net/gogoc/files/gogoc.in b/net/gogoc/files/gogoc.in index 35c2d107e398..c78bb5fe283b 100644 --- a/net/gogoc/files/gogoc.in +++ b/net/gogoc/files/gogoc.in @@ -17,6 +17,7 @@ name="gogoc" rcvar=gogoc_enable +sig_stop="HUP" command=%%LOCALBASE%%/bin/${name} diff --git a/net/gogoc/files/patch-freebsd.sh b/net/gogoc/files/patch-freebsd.sh new file mode 100644 index 000000000000..e8b5b987af34 --- /dev/null +++ b/net/gogoc/files/patch-freebsd.sh @@ -0,0 +1,10 @@ +--- gogoc-tsp/template/freebsd.sh~ 2016-07-28 01:31:15.964503000 +0800 ++++ gogoc-tsp/template/freebsd.sh 2016-07-28 01:33:41.691541000 +0800 +@@ -212,6 +212,7 @@ + # + # Configured tunnel config (IPv6) + ++ Exec $ifconfig $TSP_TUNNEL_INTERFACE inet6 -ifdisabled + Exec $ifconfig $TSP_TUNNEL_INTERFACE inet6 $TSP_CLIENT_ADDRESS_IPV6 $TSP_SERVER_ADDRESS_IPV6 prefixlen $TSP_TUNNEL_PREFIXLEN alias + Exec $ifconfig $TSP_TUNNEL_INTERFACE mtu 1280 + # diff --git a/net/gogoc/files/patch-icmp_echo_engine.c b/net/gogoc/files/patch-icmp_echo_engine.c new file mode 100644 index 000000000000..c43043f317bd --- /dev/null +++ b/net/gogoc/files/patch-icmp_echo_engine.c @@ -0,0 +1,11 @@ +--- 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 ) + { |