summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ipcp_opt_dns.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-12-01 16:40:04 +0300
committerDmitry Kozlov <xeb@mail.ru>2014-12-01 16:40:04 +0300
commit574912df113888ea19b4811b406612544514d9eb (patch)
treea7fec6d150d8710b31d4730ef7fab5c4c9ce4417 /accel-pppd/ppp/ipcp_opt_dns.c
parent3cc7fd0165e096be25761710b66b44fda9d09190 (diff)
parente09279c7491a8bd16a25b123e03ddd0cd77b566d (diff)
downloadaccel-ppp-574912df113888ea19b4811b406612544514d9eb.tar.gz
accel-ppp-574912df113888ea19b4811b406612544514d9eb.zip
Merge branch 'master' of ssh://git.code.sf.net/p/accel-ppp/code
Diffstat (limited to 'accel-pppd/ppp/ipcp_opt_dns.c')
-rw-r--r--accel-pppd/ppp/ipcp_opt_dns.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/accel-pppd/ppp/ipcp_opt_dns.c b/accel-pppd/ppp/ipcp_opt_dns.c
index bd5114a..f402844 100644
--- a/accel-pppd/ppp/ipcp_opt_dns.c
+++ b/accel-pppd/ppp/ipcp_opt_dns.c
@@ -109,7 +109,7 @@ static int dns_recv_conf_req(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *opt,
if (dns_opt->addr == opt32->val)
return IPCP_OPT_ACK;
-
+
return IPCP_OPT_NAK;
}
@@ -123,7 +123,7 @@ static void dns1_print(void (*print)(const char *fmt, ...), struct ipcp_option_t
in.s_addr = opt32->val;
else
in.s_addr = dns_opt->addr;
-
+
print("<dns1 %s>", inet_ntoa(in));
}
@@ -137,7 +137,7 @@ static void dns2_print(void (*print)(const char *fmt, ...), struct ipcp_option_t
in.s_addr = opt32->val;
else
in.s_addr = dns_opt->addr;
-
+
print("<dns2 %s>", inet_ntoa(in));
}
@@ -148,7 +148,7 @@ static void ev_dns(struct ev_dns_t *ev)
if (!ev->ses->ctrl->ppp)
return;
-
+
ppp = container_of(ev->ses, typeof(*ppp), ses);
dns_opt = container_of(ipcp_find_option(ppp, &dns1_opt_hnd), typeof(*dns_opt), opt);
@@ -161,11 +161,11 @@ static void ev_dns(struct ev_dns_t *ev)
static void load_config(void)
{
char *opt;
-
+
opt = conf_get_opt("dns", "dns1");
if (opt)
conf_dns1 = inet_addr(opt);
-
+
opt = conf_get_opt("dns", "dns2");
if (opt)
conf_dns2 = inet_addr(opt);