1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

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)
This commit is contained in:
Bartek Rutkowski 2017-03-23 12:54:46 +00:00
parent 5b14acdaf9
commit 317ce5aa12
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436769
5 changed files with 24 additions and 3 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= gogoc
PORTVERSION= 1.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= http://gogo6.com/downloads/
DISTNAME= gogoc-1_2-RELEASE

View File

@ -17,6 +17,7 @@
name="gogoc"
rcvar=gogoc_enable
sig_stop="HUP"
command=%%LOCALBASE%%/bin/${name}

View File

@ -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
#

View File

@ -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 )
{

View File

@ -1,6 +1,5 @@
bin/gogoc
etc/gogoc.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gogoc.conf.sample
@sample %%PORTEXAMPLES%%%%EXAMPLESDIR%%/gogoc.conf.sample etc/gogoc.conf
man/man5/gogoc.conf.5.gz
man/man8/gogoc.8.gz
template/README