aboutsummaryrefslogtreecommitdiff
path: root/src/dns/gnunet-service-dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns/gnunet-service-dns.c')
-rw-r--r--src/dns/gnunet-service-dns.c35
1 files changed, 21 insertions, 14 deletions
diff --git a/src/dns/gnunet-service-dns.c b/src/dns/gnunet-service-dns.c
index 39ce7f6e5..6b75fd0f4 100644
--- a/src/dns/gnunet-service-dns.c
+++ b/src/dns/gnunet-service-dns.c
@@ -2,20 +2,18 @@
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2012 GNUnet e.V. 3 Copyright (C) 2012 GNUnet e.V.
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software: you can redistribute it and/or modify it
6 it under the terms of the GNU General Public License as published 6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation; either version 3, or (at your 7 by the Free Software Foundation, either version 3 of the License,
8 option) any later version. 8 or (at your option) any later version.
9 9
10 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with GNUnet; see the file COPYING. If not, write to the 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/ 17*/
20 18
21/** 19/**
@@ -1099,7 +1097,10 @@ run (void *cls,
1099 1097
1100 helper_argv[0] = GNUNET_strdup ("gnunet-dns"); 1098 helper_argv[0] = GNUNET_strdup ("gnunet-dns");
1101 if (GNUNET_SYSERR == 1099 if (GNUNET_SYSERR ==
1102 GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IFNAME", &ifc_name)) 1100 GNUNET_CONFIGURATION_get_value_string (cfg,
1101 "dns",
1102 "IFNAME",
1103 &ifc_name))
1103 { 1104 {
1104 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1105 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1105 "No entry 'IFNAME' in configuration!\n"); 1106 "No entry 'IFNAME' in configuration!\n");
@@ -1108,7 +1109,9 @@ run (void *cls,
1108 } 1109 }
1109 helper_argv[1] = ifc_name; 1110 helper_argv[1] = ifc_name;
1110 if ( (GNUNET_SYSERR == 1111 if ( (GNUNET_SYSERR ==
1111 GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IPV6ADDR", 1112 GNUNET_CONFIGURATION_get_value_string (cfg,
1113 "dns",
1114 "IPV6ADDR",
1112 &ipv6addr)) ) 1115 &ipv6addr)) )
1113 { 1116 {
1114 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1117 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -1118,7 +1121,9 @@ run (void *cls,
1118 } 1121 }
1119 helper_argv[2] = ipv6addr; 1122 helper_argv[2] = ipv6addr;
1120 if (GNUNET_SYSERR == 1123 if (GNUNET_SYSERR ==
1121 GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IPV6PREFIX", 1124 GNUNET_CONFIGURATION_get_value_string (cfg,
1125 "dns",
1126 "IPV6PREFIX",
1122 &ipv6prefix)) 1127 &ipv6prefix))
1123 { 1128 {
1124 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1129 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -1129,7 +1134,9 @@ run (void *cls,
1129 helper_argv[3] = ipv6prefix; 1134 helper_argv[3] = ipv6prefix;
1130 1135
1131 if (GNUNET_SYSERR == 1136 if (GNUNET_SYSERR ==
1132 GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IPV4ADDR", 1137 GNUNET_CONFIGURATION_get_value_string (cfg,
1138 "dns",
1139 "IPV4ADDR",
1133 &ipv4addr)) 1140 &ipv4addr))
1134 { 1141 {
1135 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1142 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,