summaryrefslogtreecommitdiff
path: root/accel-pptpd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-10-08 20:32:09 +0400
committerDmitry Kozlov <xeb@mail.ru>2010-10-08 20:32:09 +0400
commitd4876bd244d70a9cc6c1d5f4e4de23552c5ff4da (patch)
treedf5e24e8ead4f7e98e7a3b90aaf3d18224a65aaf /accel-pptpd
parent42972cf14d2efcfec6902bce896cde43f4242935 (diff)
downloadaccel-ppp-d4876bd244d70a9cc6c1d5f4e4de23552c5ff4da.tar.gz
accel-ppp-d4876bd244d70a9cc6c1d5f4e4de23552c5ff4da.zip
fixed some incorrect logging
Diffstat (limited to 'accel-pptpd')
-rw-r--r--accel-pptpd/CMakeLists.txt3
-rw-r--r--accel-pptpd/extra/pppd_compat.c2
-rw-r--r--accel-pptpd/ppp/ppp_ccp.c2
-rw-r--r--accel-pptpd/ppp/ppp_ipcp.c4
-rw-r--r--accel-pptpd/ppp/ppp_lcp.c14
5 files changed, 11 insertions, 14 deletions
diff --git a/accel-pptpd/CMakeLists.txt b/accel-pptpd/CMakeLists.txt
index 8242d49..b234cba 100644
--- a/accel-pptpd/CMakeLists.txt
+++ b/accel-pptpd/CMakeLists.txt
@@ -36,9 +36,6 @@ ADD_EXECUTABLE(accel-pptpd
memdebug.c
)
-SET( FALSE)
-SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
-
TARGET_LINK_LIBRARIES(accel-pptpd triton rt pthread ssl crypto)
set_property(TARGET accel-pptpd PROPERTY CMAKE_SKIP_BUILD_RPATH FALSE)
set_property(TARGET accel-pptpd PROPERTY CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
diff --git a/accel-pptpd/extra/pppd_compat.c b/accel-pptpd/extra/pppd_compat.c
index 8dd3502..ad0da57 100644
--- a/accel-pptpd/extra/pppd_compat.c
+++ b/accel-pptpd/extra/pppd_compat.c
@@ -218,7 +218,7 @@ static void ev_radius_coa(struct ev_radius_t *ev)
sigchld_register_handler(&pd->ip_change_hnd);
sigchld_unlock();
if (conf_verbose)
- log_ppp_debug("pppd_compat: ip-change started (pid %i)\n", pid);
+ log_ppp_info("pppd_compat: ip-change started (pid %i)\n", pid);
triton_context_schedule(pd->ppp->ctrl->ctx);
if (!ev->res)
ev->res = pd->ip_change_res;
diff --git a/accel-pptpd/ppp/ppp_ccp.c b/accel-pptpd/ppp/ppp_ccp.c
index 163881b..5d779f5 100644
--- a/accel-pptpd/ppp/ppp_ccp.c
+++ b/accel-pptpd/ppp/ppp_ccp.c
@@ -102,7 +102,7 @@ static struct ppp_layer_data_t *ccp_layer_init(struct ppp_t *ppp)
INIT_LIST_HEAD(&ccp->options);
ccp_options_init(ccp);
- ccp->passive = 1;
+ ccp->passive = 0;
ccp->fsm.proto = PPP_CCP;
ppp_fsm_init(&ccp->fsm);
diff --git a/accel-pptpd/ppp/ppp_ipcp.c b/accel-pptpd/ppp/ppp_ipcp.c
index 90e2b9c..fecbc68 100644
--- a/accel-pptpd/ppp/ppp_ipcp.c
+++ b/accel-pptpd/ppp/ppp_ipcp.c
@@ -202,7 +202,7 @@ static int send_conf_req(struct ppp_fsm_t *fsm)
list_for_each_entry(lopt,&ipcp->options,entry) {
if (lopt->print) {
log_ppp_info(" ");
- lopt->h->print(log_ppp_debug, lopt, NULL);
+ lopt->h->print(log_ppp_info, lopt, NULL);
}
}
log_ppp_info("]\n");
@@ -357,7 +357,7 @@ static int ipcp_recv_conf_req(struct ppp_ipcp_t *ipcp, uint8_t *data, int size)
if (!ropt->lopt)
{
if (conf_ppp_verbose) {
- log_ppp_debug(" ");
+ log_ppp_info(" ");
print_ropt(ropt);
}
ropt->state = IPCP_OPT_REJ;
diff --git a/accel-pptpd/ppp/ppp_lcp.c b/accel-pptpd/ppp/ppp_lcp.c
index 08fd359..6c5c2fe 100644
--- a/accel-pptpd/ppp/ppp_lcp.c
+++ b/accel-pptpd/ppp/ppp_lcp.c
@@ -186,11 +186,11 @@ static void print_ropt(struct recv_opt_t *ropt)
int i;
uint8_t *ptr = (uint8_t*)ropt->hdr;
- log_ppp_debug("<");
+ log_ppp_info("<");
for (i = 0; i < ropt->len; i++) {
log_ppp_info(" %x", ptr[i]);
}
- log_ppp_debug(" >");
+ log_ppp_info(" >");
}
static int send_conf_req(struct ppp_fsm_t *fsm)
@@ -223,11 +223,11 @@ static int send_conf_req(struct ppp_fsm_t *fsm)
log_ppp_info("send [LCP ConfReq id=%x", lcp_hdr->id);
list_for_each_entry(lopt,&lcp->options,entry) {
if (lopt->print) {
- log_ppp_debug(" ");
- lopt->h->print(log_ppp_debug, lopt, NULL);
+ log_ppp_info(" ");
+ lopt->h->print(log_ppp_info, lopt, NULL);
}
}
- log_ppp_debug("]\n");
+ log_ppp_info("]\n");
}
lcp_hdr->len = htons(ptr - buf - 2);
@@ -272,7 +272,7 @@ static void send_conf_nak(struct ppp_fsm_t *fsm)
struct lcp_option_t *lopt;
if (conf_ppp_verbose)
- log_ppp_debug("send [LCP ConfNak id=%x", lcp->fsm.recv_id);
+ log_ppp_info("send [LCP ConfNak id=%x", lcp->fsm.recv_id);
lcp_hdr->proto = htons(PPP_LCP);
lcp_hdr->code = CONFNAK;
@@ -286,7 +286,7 @@ static void send_conf_nak(struct ppp_fsm_t *fsm)
ptr+=lopt->h->send_conf_nak(lcp,lopt,ptr);
if (conf_ppp_verbose) {
- log_ppp_debug(" ");
+ log_ppp_info(" ");
lopt->h->print(log_ppp_info, lopt, NULL);
}
}