From: Seonah Moon Date: Mon, 31 Jul 2017 04:45:23 +0000 (+0900) Subject: Change the log path for dnsmasq and hostapd X-Git-Tag: accepted/tizen/unified/20170811.021105~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F141326%2F1;p=platform%2Fcore%2Fconnectivity%2Fmobileap-agent.git Change the log path for dnsmasq and hostapd Change-Id: I0b1d1442a1c159db6ce32ded048f8c7b9f9dff44 --- diff --git a/include/mobileap_softap.h b/include/mobileap_softap.h index 96649f6..dafb78c 100755 --- a/include/mobileap_softap.h +++ b/include/mobileap_softap.h @@ -102,10 +102,11 @@ "user=system\n" \ "log-dhcp\n"\ "log-queries\n"\ - "log-facility=/opt/var/log/dnsmasq.log\n"\ + "log-facility=%s\n"\ "enable-ra\n" \ "dhcp-range=%s::, ra-names, ra-stateless, 64, 12h\n" \ "dhcp-option=option6:dns-server,[%s]\n" +#define DNSMASQ_DEBUG_FILE "/opt/usr/data/network/dnsmasq.log" #define NAT64_BIN "/usr/sbin/tayga" #define NAT64_CONF_FILE tzplatform_mkpath(TZ_SYS_ETC, "/tayga/tayga.conf") @@ -194,7 +195,7 @@ "ieee80211n=1\n" -#define HOSTAPD_DEBUG_FILE "/var/log/hostapd.log" +#define HOSTAPD_DEBUG_FILE "/opt/usr/data/network/hostapd.log" #define HOSTAPD_REQ_MAX_LEN 128 #define HOSTAPD_RETRY_MAX 5 #define HOSTAPD_RETRY_DELAY 500000 /* us */ diff --git a/src/mobileap_softap.c b/src/mobileap_softap.c index 8b25132..8f60947 100755 --- a/src/mobileap_softap.c +++ b/src/mobileap_softap.c @@ -2294,10 +2294,12 @@ int _mh_core_execute_dhcp6_server(void) if (_get_ipv6_network_state()) { prefix = g_strndup(network_addr, 19); - snprintf(buf, DNSMASQ_CONF_LEN, DNSMASQ_CONF6, prefix, network_addr); + snprintf(buf, DNSMASQ_CONF_LEN, DNSMASQ_CONF6, + DNSMASQ_DEBUG_FILE, prefix, network_addr); } else { prefix = g_strndup(network_addr, 10); - snprintf(buf, DNSMASQ_CONF_LEN, DNSMASQ_CONF6, prefix, DNS64_SERVER_ADDR); + snprintf(buf, DNSMASQ_CONF_LEN, DNSMASQ_CONF6, + DNSMASQ_DEBUG_FILE, prefix, DNS64_SERVER_ADDR); } fputs(buf, fp);