aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac32
-rw-r--r--src/arm/Makefile.am2
-rw-r--r--src/arm/arm.conf.in (renamed from src/arm/arm.conf)2
-rw-r--r--src/ats/Makefile.am2
-rw-r--r--src/ats/ats.conf.in (renamed from src/ats/ats.conf)2
-rw-r--r--src/chat/Makefile.am2
-rw-r--r--src/chat/chat.conf.in (renamed from src/chat/chat.conf)2
-rw-r--r--src/core/Makefile.am2
-rw-r--r--src/core/core.conf.in (renamed from src/core/core.conf)2
-rw-r--r--src/datastore/Makefile.am2
-rw-r--r--src/datastore/datastore.conf.in (renamed from src/datastore/datastore.conf)2
-rw-r--r--src/dht/Makefile.am2
-rw-r--r--src/dht/dht.conf.in (renamed from src/dht/dht.conf)2
-rw-r--r--src/dns/Makefile.am2
-rw-r--r--src/dns/dns.conf.in (renamed from src/dns/dns.conf)2
-rw-r--r--src/dv/Makefile.am2
-rw-r--r--src/dv/dv.conf.in (renamed from src/dv/dv.conf)3
-rw-r--r--src/fs/Makefile.am2
-rw-r--r--src/fs/fs.conf.in (renamed from src/fs/fs.conf)2
-rw-r--r--src/mesh/Makefile.am2
-rw-r--r--src/mesh/mesh.conf.in (renamed from src/mesh/mesh.conf)2
-rw-r--r--src/nse/Makefile.am2
-rw-r--r--src/nse/nse.conf.in (renamed from src/nse/nse.conf)4
-rw-r--r--src/peerinfo/Makefile.am2
-rw-r--r--src/peerinfo/peerinfo.conf.in (renamed from src/peerinfo/peerinfo.conf)2
-rw-r--r--src/statistics/Makefile.am2
-rw-r--r--src/statistics/statistics.conf.in (renamed from src/statistics/statistics.conf)2
-rw-r--r--src/transport/Makefile.am2
-rw-r--r--src/transport/transport.conf.in (renamed from src/transport/transport.conf)2
-rw-r--r--src/util/Makefile.am5
-rw-r--r--src/util/client.c46
-rw-r--r--src/util/resolver.conf.in (renamed from src/util/resolver.conf)2
-rw-r--r--src/vpn/Makefile.am2
-rw-r--r--src/vpn/vpn.conf.in (renamed from src/vpn/vpn.conf)2
34 files changed, 96 insertions, 52 deletions
diff --git a/configure.ac b/configure.ac
index 9ab15c647..9dd33ef8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,12 +79,14 @@ case "$host_os" in
79 DEFAULT_INTERFACE="\"en0\"" 79 DEFAULT_INTERFACE="\"en0\""
80 LIBPREFIX= 80 LIBPREFIX=
81 DLLDIR=lib 81 DLLDIR=lib
82 UNIXONLY="#"
82 ;; 83 ;;
83linux*) 84linux*)
84 AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system]) 85 AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
85 build_target="linux" 86 build_target="linux"
86 LIBPREFIX= 87 LIBPREFIX=
87 DLLDIR=lib 88 DLLDIR=lib
89 UNIXONLY="#"
88 AC_PATH_XTRA 90 AC_PATH_XTRA
89 ;; 91 ;;
90freebsd*) 92freebsd*)
@@ -94,6 +96,7 @@ freebsd*)
94 build_target="freebsd" 96 build_target="freebsd"
95 LIBPREFIX= 97 LIBPREFIX=
96 DLLDIR=lib 98 DLLDIR=lib
99 UNIXONLY="#"
97 ;; 100 ;;
98openbsd*) 101openbsd*)
99 AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system]) 102 AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
@@ -102,12 +105,14 @@ openbsd*)
102 build_target="openbsd" 105 build_target="openbsd"
103 LIBPREFIX= 106 LIBPREFIX=
104 DLLDIR=lib 107 DLLDIR=lib
108 UNIXONLY="#"
105 ;; 109 ;;
106netbsd*) 110netbsd*)
107 AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system]) 111 AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
108 AC_DEFINE_UNQUOTED(NETBSD,1,[This is a NetBSD system]) 112 AC_DEFINE_UNQUOTED(NETBSD,1,[This is a NetBSD system])
109 LIBPREFIX= 113 LIBPREFIX=
110 DLLDIR=lib 114 DLLDIR=lib
115 UNIXONLY="#"
111 ;; 116 ;;
112*solaris*) 117*solaris*)
113 AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system]) 118 AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system])
@@ -117,6 +122,7 @@ netbsd*)
117 build_target="solaris" 122 build_target="solaris"
118 LIBPREFIX= 123 LIBPREFIX=
119 DLLDIR=lib 124 DLLDIR=lib
125 UNIXONLY="#"
120 ;; 126 ;;
121*arm-linux*) 127*arm-linux*)
122 AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system]) 128 AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
@@ -124,6 +130,7 @@ netbsd*)
124 build_target="linux" 130 build_target="linux"
125 LIBPREFIX= 131 LIBPREFIX=
126 DLLDIR=lib 132 DLLDIR=lib
133 UNIXONLY="#"
127 ;; 134 ;;
128*cygwin*) 135*cygwin*)
129 AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system]) 136 AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system])
@@ -135,6 +142,7 @@ netbsd*)
135 LIBPREFIX=lib 142 LIBPREFIX=lib
136 DLLDIR=bin 143 DLLDIR=bin
137 AC_PROG_CXX 144 AC_PROG_CXX
145 UNIXONLY=""
138 ;; 146 ;;
139*mingw*) 147*mingw*)
140 AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system]) 148 AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system])
@@ -149,15 +157,21 @@ netbsd*)
149 AC_PROG_CXX 157 AC_PROG_CXX
150 LIBPREFIX=lib 158 LIBPREFIX=lib
151 DLLDIR=bin 159 DLLDIR=bin
160 UNIXONLY=""
152 ;; 161 ;;
153*) 162*)
154 AC_MSG_RESULT(Unrecognised OS $host_os) 163 AC_MSG_RESULT(Unrecognised OS $host_os)
155 AC_DEFINE_UNQUOTED(OTHEROS,1,[Some strange OS]) 164 AC_DEFINE_UNQUOTED(OTHEROS,1,[Some strange OS])
165 UNIXONLY=""
156;; 166;;
157esac 167esac
158AC_DEFINE_UNQUOTED([GNUNET_DEFAULT_INTERFACE], $DEFAULT_INTERFACE, [This should be the default choice for the name of the first network interface]) 168AC_DEFINE_UNQUOTED([GNUNET_DEFAULT_INTERFACE], $DEFAULT_INTERFACE, [This should be the default choice for the name of the first network interface])
159AC_SUBST(DEFAULT_INTERFACE) 169AC_SUBST(DEFAULT_INTERFACE)
160 170
171# Disable TCP-based IPC on systems that support UNIX domain
172# sockets in default configuratin:
173AC_SUBST(UNIXONLY)
174
161AC_MSG_CHECKING([for build target]) 175AC_MSG_CHECKING([for build target])
162AM_CONDITIONAL(DARWIN, test "$build_target" = "darwin") 176AM_CONDITIONAL(DARWIN, test "$build_target" = "darwin")
163AM_CONDITIONAL(CYGWIN, test "$build_target" = "cygwin") 177AM_CONDITIONAL(CYGWIN, test "$build_target" = "cygwin")
@@ -814,34 +828,50 @@ m4/Makefile
814po/Makefile.in 828po/Makefile.in
815src/Makefile 829src/Makefile
816src/arm/Makefile 830src/arm/Makefile
831src/arm/arm.conf
817src/ats/Makefile 832src/ats/Makefile
833src/ats/ats.conf
818src/block/Makefile 834src/block/Makefile
835src/chat/Makefile
836src/chat/chat.conf
819src/core/Makefile 837src/core/Makefile
838src/core/core.conf
820src/datacache/Makefile 839src/datacache/Makefile
821src/datastore/Makefile 840src/datastore/Makefile
841src/datastore/datastore.conf
822src/dht/Makefile 842src/dht/Makefile
843src/dht/dht.conf
823src/dns/Makefile 844src/dns/Makefile
845src/dns/dns.conf
824src/dv/Makefile 846src/dv/Makefile
847src/dv/dv.conf
825src/exit/Makefile 848src/exit/Makefile
826src/fragmentation/Makefile 849src/fragmentation/Makefile
827src/fs/Makefile 850src/fs/Makefile
851src/fs/fs.conf
828src/hello/Makefile 852src/hello/Makefile
829src/include/Makefile 853src/include/Makefile
830src/include/gnunet_directories.h 854src/include/gnunet_directories.h
831src/hostlist/Makefile 855src/hostlist/Makefile
832src/mesh/Makefile 856src/mesh/Makefile
857src/mesh/mesh.conf
833src/nat/Makefile 858src/nat/Makefile
834src/nse/Makefile 859src/nse/Makefile
860src/nse/nse.conf
835src/peerinfo/Makefile 861src/peerinfo/Makefile
862src/peerinfo/peerinfo.conf
836src/peerinfo-tool/Makefile 863src/peerinfo-tool/Makefile
837src/statistics/Makefile 864src/statistics/Makefile
865src/statistics/statistics.conf
838src/template/Makefile 866src/template/Makefile
839src/testing/Makefile 867src/testing/Makefile
840src/topology/Makefile 868src/topology/Makefile
841src/transport/Makefile 869src/transport/Makefile
870src/transport/transport.conf
842src/util/Makefile 871src/util/Makefile
872src/util/resolver.conf
843src/vpn/Makefile 873src/vpn/Makefile
844src/chat/Makefile 874src/vpn/vpn.conf
845src/integration-tests/Makefile 875src/integration-tests/Makefile
846pkgconfig/Makefile 876pkgconfig/Makefile
847pkgconfig/gnunetarm.pc 877pkgconfig/gnunetarm.pc
diff --git a/src/arm/Makefile.am b/src/arm/Makefile.am
index 25eb7d166..7da1e2c60 100644
--- a/src/arm/Makefile.am
+++ b/src/arm/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES = -I$(top_srcdir)/src/include
2 2
3pkgcfgdir= $(pkgdatadir)/config.d/ 3pkgcfgdir= $(pkgdatadir)/config.d/
4 4
5dist_pkgcfg_DATA = \ 5pkgcfg_DATA = \
6 arm.conf 6 arm.conf
7 7
8if MINGW 8if MINGW
diff --git a/src/arm/arm.conf b/src/arm/arm.conf.in
index fa82ea957..c1f408fd2 100644
--- a/src/arm/arm.conf
+++ b/src/arm/arm.conf.in
@@ -1,6 +1,6 @@
1 1
2[arm] 2[arm]
3PORT = 2087 3@UNIXONLY@ PORT = 2087
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/ats/Makefile.am b/src/ats/Makefile.am
index d6ffebc8f..1f8a84a67 100644
--- a/src/ats/Makefile.am
+++ b/src/ats/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES = -I$(top_srcdir)/src/include
2 2
3pkgcfgdir= $(pkgdatadir)/config.d/ 3pkgcfgdir= $(pkgdatadir)/config.d/
4 4
5dist_pkgcfg_DATA = \ 5pkgcfg_DATA = \
6 ats.conf 6 ats.conf
7 7
8if MINGW 8if MINGW
diff --git a/src/ats/ats.conf b/src/ats/ats.conf.in
index 3b9e1a58e..6ea0d417f 100644
--- a/src/ats/ats.conf
+++ b/src/ats/ats.conf.in
@@ -1,6 +1,6 @@
1[ats] 1[ats]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2098 3@UNIXONLY@ PORT = 2098
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/chat/Makefile.am b/src/chat/Makefile.am
index 859e8f1f1..213283684 100644
--- a/src/chat/Makefile.am
+++ b/src/chat/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES = -I$(top_srcdir)/src/include
2 2
3pkgcfgdir= $(pkgdatadir)/config.d/ 3pkgcfgdir= $(pkgdatadir)/config.d/
4 4
5dist_pkgcfg_DATA = \ 5pkgcfg_DATA = \
6 chat.conf 6 chat.conf
7 7
8if MINGW 8if MINGW
diff --git a/src/chat/chat.conf b/src/chat/chat.conf.in
index 61d551e16..41fe9b4f7 100644
--- a/src/chat/chat.conf
+++ b/src/chat/chat.conf.in
@@ -1,6 +1,6 @@
1[chat] 1[chat]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2090 3@UNIXONLY@ PORT = 2090
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/core/Makefile.am b/src/core/Makefile.am
index 13054d15a..ad9bddcb6 100644
--- a/src/core/Makefile.am
+++ b/src/core/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES = -I$(top_srcdir)/src/include
2 2
3pkgcfgdir= $(pkgdatadir)/config.d/ 3pkgcfgdir= $(pkgdatadir)/config.d/
4 4
5dist_pkgcfg_DATA = \ 5pkgcfg_DATA = \
6 core.conf 6 core.conf
7 7
8if MINGW 8if MINGW
diff --git a/src/core/core.conf b/src/core/core.conf.in
index 3dc08312e..84e2df9fb 100644
--- a/src/core/core.conf
+++ b/src/core/core.conf.in
@@ -1,6 +1,6 @@
1[core] 1[core]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2092 3@UNIXONLY@ PORT = 2092
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/datastore/Makefile.am b/src/datastore/Makefile.am
index d98ebb2e1..44c5bbee4 100644
--- a/src/datastore/Makefile.am
+++ b/src/datastore/Makefile.am
@@ -4,7 +4,7 @@ plugindir = $(libdir)/gnunet
4 4
5pkgcfgdir= $(pkgdatadir)/config.d/ 5pkgcfgdir= $(pkgdatadir)/config.d/
6 6
7dist_pkgcfg_DATA = \ 7pkgcfg_DATA = \
8 datastore.conf 8 datastore.conf
9 9
10if MINGW 10if MINGW
diff --git a/src/datastore/datastore.conf b/src/datastore/datastore.conf.in
index 68de15626..837c619c2 100644
--- a/src/datastore/datastore.conf
+++ b/src/datastore/datastore.conf.in
@@ -3,7 +3,7 @@ AUTOSTART = YES
3UNIXPATH = /tmp/gnunet-service-datastore.sock 3UNIXPATH = /tmp/gnunet-service-datastore.sock
4UNIX_MATCH_UID = YES 4UNIX_MATCH_UID = YES
5UNIX_MATCH_GID = YES 5UNIX_MATCH_GID = YES
6PORT = 2093 6@UNIXONLY@ PORT = 2093
7HOSTNAME = localhost 7HOSTNAME = localhost
8HOME = $SERVICEHOME 8HOME = $SERVICEHOME
9CONFIG = $DEFAULTCONFIG 9CONFIG = $DEFAULTCONFIG
diff --git a/src/dht/Makefile.am b/src/dht/Makefile.am
index e5d3c88ed..f9766a227 100644
--- a/src/dht/Makefile.am
+++ b/src/dht/Makefile.am
@@ -7,7 +7,7 @@ plugindir = $(libdir)/gnunet
7 7
8pkgcfgdir= $(pkgdatadir)/config.d/ 8pkgcfgdir= $(pkgdatadir)/config.d/
9 9
10dist_pkgcfg_DATA = \ 10pkgcfg_DATA = \
11 dht.conf 11 dht.conf
12 12
13if HAVE_ZLIB 13if HAVE_ZLIB
diff --git a/src/dht/dht.conf b/src/dht/dht.conf.in
index ba903a2d0..c73c05688 100644
--- a/src/dht/dht.conf
+++ b/src/dht/dht.conf.in
@@ -1,6 +1,6 @@
1[dht] 1[dht]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2095 3@UNIXONLY@ PORT = 2095
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/dns/Makefile.am b/src/dns/Makefile.am
index 2a554f454..f7376a111 100644
--- a/src/dns/Makefile.am
+++ b/src/dns/Makefile.am
@@ -12,7 +12,7 @@ pkgcfgdir= $(pkgdatadir)/config.d/
12 12
13plugindir = $(libdir)/gnunet 13plugindir = $(libdir)/gnunet
14 14
15dist_pkgcfg_DATA = \ 15pkgcfg_DATA = \
16 dns.conf 16 dns.conf
17 17
18if LINUX 18if LINUX
diff --git a/src/dns/dns.conf b/src/dns/dns.conf.in
index f8590bf61..cd1c2e6e3 100644
--- a/src/dns/dns.conf
+++ b/src/dns/dns.conf.in
@@ -1,6 +1,6 @@
1[dns] 1[dns]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 0 3@UNIXONLY@ PORT = 0
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/dv/Makefile.am b/src/dv/Makefile.am
index c0e826a2c..e0cd2e4e8 100644
--- a/src/dv/Makefile.am
+++ b/src/dv/Makefile.am
@@ -13,7 +13,7 @@ plugindir = $(libdir)/gnunet
13 13
14pkgcfgdir= $(pkgdatadir)/config.d/ 14pkgcfgdir= $(pkgdatadir)/config.d/
15 15
16dist_pkgcfg_DATA = \ 16pkgcfg_DATA = \
17 dv.conf 17 dv.conf
18 18
19lib_LTLIBRARIES = libgnunetdv.la 19lib_LTLIBRARIES = libgnunetdv.la
diff --git a/src/dv/dv.conf b/src/dv/dv.conf.in
index 8fbf23659..fa647e31c 100644
--- a/src/dv/dv.conf
+++ b/src/dv/dv.conf.in
@@ -7,7 +7,8 @@ BINARY = gnunet-service-dv
7CONFIG = $DEFAULTCONFIG 7CONFIG = $DEFAULTCONFIG
8HOME = $SERVICEHOME 8HOME = $SERVICEHOME
9HOSTNAME = localhost 9HOSTNAME = localhost
10PORT = 2571 10@UNIXONLY@ PORT = 2571
11UNIXPATH = /tmp/gnunet-service-dv.sock
11# ACCEPT_FROM = 12# ACCEPT_FROM =
12# ACCEPT_FROM6 = 13# ACCEPT_FROM6 =
13# REJECT_FROM = 14# REJECT_FROM =
diff --git a/src/fs/Makefile.am b/src/fs/Makefile.am
index f480f2845..cbf63f335 100644
--- a/src/fs/Makefile.am
+++ b/src/fs/Makefile.am
@@ -11,7 +11,7 @@ endif
11 11
12pkgcfgdir= $(pkgdatadir)/config.d/ 12pkgcfgdir= $(pkgdatadir)/config.d/
13 13
14dist_pkgcfg_DATA = \ 14pkgcfg_DATA = \
15 fs.conf 15 fs.conf
16 16
17plugindir = $(libdir)/gnunet 17plugindir = $(libdir)/gnunet
diff --git a/src/fs/fs.conf b/src/fs/fs.conf.in
index 2f65859b4..48c8b5209 100644
--- a/src/fs/fs.conf
+++ b/src/fs/fs.conf.in
@@ -5,7 +5,7 @@ TRUST = $SERVICEHOME/data/credit/
5IDENTITY_DIR = $SERVICEHOME/identities/ 5IDENTITY_DIR = $SERVICEHOME/identities/
6STATE_DIR = $SERVICEHOME/persistence/ 6STATE_DIR = $SERVICEHOME/persistence/
7UPDATE_DIR = $SERVICEHOME/updates/ 7UPDATE_DIR = $SERVICEHOME/updates/
8PORT = 2094 8@UNIXONLY@ PORT = 2094
9HOSTNAME = localhost 9HOSTNAME = localhost
10HOME = $SERVICEHOME 10HOME = $SERVICEHOME
11CONFIG = $DEFAULTCONFIG 11CONFIG = $DEFAULTCONFIG
diff --git a/src/mesh/Makefile.am b/src/mesh/Makefile.am
index 6adcdf425..610353610 100644
--- a/src/mesh/Makefile.am
+++ b/src/mesh/Makefile.am
@@ -11,7 +11,7 @@ endif
11 11
12pkgcfgdir= $(pkgdatadir)/config.d/ 12pkgcfgdir= $(pkgdatadir)/config.d/
13 13
14dist_pkgcfg_DATA = \ 14pkgcfg_DATA = \
15 mesh.conf 15 mesh.conf
16 16
17AM_CLFAGS = -g 17AM_CLFAGS = -g
diff --git a/src/mesh/mesh.conf b/src/mesh/mesh.conf.in
index 922275368..83a8938b2 100644
--- a/src/mesh/mesh.conf
+++ b/src/mesh/mesh.conf.in
@@ -1,6 +1,6 @@
1[mesh] 1[mesh]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2096 3@UNIXONLY@ PORT = 2096
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/nse/Makefile.am b/src/nse/Makefile.am
index 695059c64..054a77663 100644
--- a/src/nse/Makefile.am
+++ b/src/nse/Makefile.am
@@ -11,7 +11,7 @@ endif
11 11
12pkgcfgdir= $(pkgdatadir)/config.d/ 12pkgcfgdir= $(pkgdatadir)/config.d/
13 13
14dist_pkgcfg_DATA = \ 14pkgcfg_DATA = \
15 nse.conf 15 nse.conf
16 16
17 17
diff --git a/src/nse/nse.conf b/src/nse/nse.conf.in
index 8cc912d4d..b04f5acfe 100644
--- a/src/nse/nse.conf
+++ b/src/nse/nse.conf.in
@@ -1,6 +1,6 @@
1[nse] 1[nse]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2097 3@UNIXONLY@ PORT = 2097
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
@@ -8,7 +8,7 @@ BINARY = gnunet-service-nse
8ACCEPT_FROM = 127.0.0.1; 8ACCEPT_FROM = 127.0.0.1;
9ACCEPT_FROM6 = ::1; 9ACCEPT_FROM6 = ::1;
10UNIXPATH = /tmp/test-nse-service-nse.unix 10UNIXPATH = /tmp/test-nse-service-nse.unix
11UNIX_MATCH_UID = YES 11UNIX_MATCH_UID = NO
12UNIX_MATCH_GID = YES 12UNIX_MATCH_GID = YES
13PROOFFILE = $SERVICEHOME/.nse-proof 13PROOFFILE = $SERVICEHOME/.nse-proof
14HISTOGRAM = $SERVICEHOME/nse-history.log 14HISTOGRAM = $SERVICEHOME/nse-history.log
diff --git a/src/peerinfo/Makefile.am b/src/peerinfo/Makefile.am
index 13a763b47..468fab541 100644
--- a/src/peerinfo/Makefile.am
+++ b/src/peerinfo/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES = -I$(top_srcdir)/src/include
2 2
3pkgcfgdir= $(pkgdatadir)/config.d/ 3pkgcfgdir= $(pkgdatadir)/config.d/
4 4
5dist_pkgcfg_DATA = \ 5pkgcfg_DATA = \
6 peerinfo.conf 6 peerinfo.conf
7 7
8if MINGW 8if MINGW
diff --git a/src/peerinfo/peerinfo.conf b/src/peerinfo/peerinfo.conf.in
index 1b300ca4b..a40cc4fba 100644
--- a/src/peerinfo/peerinfo.conf
+++ b/src/peerinfo/peerinfo.conf.in
@@ -1,6 +1,6 @@
1[peerinfo] 1[peerinfo]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2090 3@UNIXONLY@ PORT = 2090
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/statistics/Makefile.am b/src/statistics/Makefile.am
index 8ea7e93d2..2d1daf8d7 100644
--- a/src/statistics/Makefile.am
+++ b/src/statistics/Makefile.am
@@ -11,7 +11,7 @@ endif
11 11
12pkgcfgdir= $(pkgdatadir)/config.d/ 12pkgcfgdir= $(pkgdatadir)/config.d/
13 13
14dist_pkgcfg_DATA = \ 14pkgcfg_DATA = \
15 statistics.conf 15 statistics.conf
16 16
17lib_LTLIBRARIES = libgnunetstatistics.la 17lib_LTLIBRARIES = libgnunetstatistics.la
diff --git a/src/statistics/statistics.conf b/src/statistics/statistics.conf.in
index e54c51963..4482b0f11 100644
--- a/src/statistics/statistics.conf
+++ b/src/statistics/statistics.conf.in
@@ -1,6 +1,6 @@
1[statistics] 1[statistics]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2088 3@UNIXONLY@ PORT = 2088
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index 210998293..fc6c8f200 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -4,7 +4,7 @@ plugindir = $(libdir)/gnunet
4 4
5pkgcfgdir= $(pkgdatadir)/config.d/ 5pkgcfgdir= $(pkgdatadir)/config.d/
6 6
7dist_pkgcfg_DATA = \ 7pkgcfg_DATA = \
8 transport.conf 8 transport.conf
9 9
10 10
diff --git a/src/transport/transport.conf b/src/transport/transport.conf.in
index 5f742bcda..213e8f5f0 100644
--- a/src/transport/transport.conf
+++ b/src/transport/transport.conf.in
@@ -1,6 +1,6 @@
1[transport] 1[transport]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2091 3@UNIXONLY@ PORT = 2091
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index ec3884dc8..7f2e0cd48 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -5,7 +5,10 @@ plugindir = $(libdir)/gnunet
5pkgcfgdir= $(pkgdatadir)/config.d/ 5pkgcfgdir= $(pkgdatadir)/config.d/
6 6
7dist_pkgcfg_DATA = \ 7dist_pkgcfg_DATA = \
8 util.conf resolver.conf 8 util.conf
9
10pkgcfg_DATA = \
11 resolver.conf
9 12
10if MINGW 13if MINGW
11noinst_LTLIBRARIES = \ 14noinst_LTLIBRARIES = \
diff --git a/src/util/client.c b/src/util/client.c
index e71ccdf39..2f09a9046 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -289,25 +289,35 @@ do_connect (const char *service_name,
289 } 289 }
290#endif 290#endif
291 291
292 if ((GNUNET_OK != 292 if (GNUNET_YES ==
293 GNUNET_CONFIGURATION_get_value_number (cfg, service_name, "PORT", &port)) 293 GNUNET_CONFIGURATION_have_value (cfg, service_name, "PORT"))
294 || (port > 65535) ||
295 (GNUNET_OK !=
296 GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "HOSTNAME",
297 &hostname)))
298 { 294 {
299 LOG (GNUNET_ERROR_TYPE_WARNING, 295 if ((GNUNET_OK !=
300 _ 296 GNUNET_CONFIGURATION_get_value_number (cfg, service_name, "PORT", &port))
301 ("Could not determine valid hostname and port for service `%s' from configuration.\n"), 297 || (port > 65535) ||
302 service_name); 298 (GNUNET_OK !=
303 return NULL; 299 GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "HOSTNAME",
300 &hostname)))
301 {
302 LOG (GNUNET_ERROR_TYPE_WARNING,
303 _
304 ("Could not determine valid hostname and port for service `%s' from configuration.\n"),
305 service_name);
306 return NULL;
307 }
308 if (0 == strlen (hostname))
309 {
310 GNUNET_free (hostname);
311 LOG (GNUNET_ERROR_TYPE_WARNING,
312 _("Need a non-empty hostname for service `%s'.\n"), service_name);
313 return NULL;
314 }
304 } 315 }
305 if (0 == strlen (hostname)) 316 else
306 { 317 {
307 GNUNET_free (hostname); 318 /* unspecified means 0 (disabled) */
308 LOG (GNUNET_ERROR_TYPE_WARNING, 319 port = 0;
309 _("Need a non-empty hostname for service `%s'.\n"), service_name); 320 hostname = NULL;
310 return NULL;
311 } 321 }
312 if (port == 0) 322 if (port == 0)
313 { 323 {
@@ -326,7 +336,7 @@ do_connect (const char *service_name,
326 if (sock != NULL) 336 if (sock != NULL)
327 { 337 {
328 GNUNET_free (unixpath); 338 GNUNET_free (unixpath);
329 GNUNET_free (hostname); 339 GNUNET_free_non_null (hostname);
330 return sock; 340 return sock;
331 } 341 }
332 } 342 }
@@ -338,7 +348,7 @@ do_connect (const char *service_name,
338 "Port is 0 for service `%s', UNIXPATH did not work, returning NULL!\n", 348 "Port is 0 for service `%s', UNIXPATH did not work, returning NULL!\n",
339 service_name); 349 service_name);
340#endif 350#endif
341 GNUNET_free (hostname); 351 GNUNET_free_non_null (hostname);
342 return NULL; 352 return NULL;
343 } 353 }
344 354
diff --git a/src/util/resolver.conf b/src/util/resolver.conf.in
index a2690fcc3..671ea0ed6 100644
--- a/src/util/resolver.conf
+++ b/src/util/resolver.conf.in
@@ -1,6 +1,6 @@
1[resolver] 1[resolver]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 2089 3@UNIXONLY@ PORT = 2089
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG
diff --git a/src/vpn/Makefile.am b/src/vpn/Makefile.am
index 857232a99..be28949c5 100644
--- a/src/vpn/Makefile.am
+++ b/src/vpn/Makefile.am
@@ -12,7 +12,7 @@ pkgcfgdir= $(pkgdatadir)/config.d/
12 12
13plugindir = $(libdir)/gnunet 13plugindir = $(libdir)/gnunet
14 14
15dist_pkgcfg_DATA = \ 15pkgcfg_DATA = \
16 vpn.conf 16 vpn.conf
17 17
18if LINUX 18if LINUX
diff --git a/src/vpn/vpn.conf b/src/vpn/vpn.conf.in
index 0d8e1e1a5..411ad3fb9 100644
--- a/src/vpn/vpn.conf
+++ b/src/vpn/vpn.conf.in
@@ -1,6 +1,6 @@
1[vpn] 1[vpn]
2AUTOSTART = YES 2AUTOSTART = YES
3PORT = 0 3@UNIXONLY@ PORT = 0
4HOSTNAME = localhost 4HOSTNAME = localhost
5HOME = $SERVICEHOME 5HOME = $SERVICEHOME
6CONFIG = $DEFAULTCONFIG 6CONFIG = $DEFAULTCONFIG