summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r--accel-pppd/ppp/lcp_opt_magic.c4
-rw-r--r--accel-pppd/ppp/ppp_lcp.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/accel-pppd/ppp/lcp_opt_magic.c b/accel-pppd/ppp/lcp_opt_magic.c
index 3e694d20..bf392091 100644
--- a/accel-pppd/ppp/lcp_opt_magic.c
+++ b/accel-pppd/ppp/lcp_opt_magic.c
@@ -94,9 +94,9 @@ static void magic_print(void (*print)(const char *fmt,...),struct lcp_option_t *
struct lcp_opt32_t *opt32 = (struct lcp_opt32_t *)ptr;
if (ptr)
- print("<magic %04x>", ntohl(opt32->val));
+ print("<magic %08x>", ntohl(opt32->val));
else
- print("<magic %04x>", magic_opt->magic);
+ print("<magic %08x>", magic_opt->magic);
}
static void magic_opt_init()
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c
index e1727dee..7a071dde 100644
--- a/accel-pppd/ppp/ppp_lcp.c
+++ b/accel-pppd/ppp/ppp_lcp.c
@@ -606,7 +606,7 @@ static void lcp_recv_echo_repl(struct ppp_lcp_t *lcp, uint8_t *data, int size)
magic = ntohl(*(uint32_t *)data);
if (conf_ppp_verbose)
- log_ppp_debug("recv [LCP EchoRep id=%x <magic %x>]\n", lcp->fsm.recv_id, magic);
+ log_ppp_debug("recv [LCP EchoRep id=%x <magic %08x>]\n", lcp->fsm.recv_id, magic);
if (magic == lcp->magic) {
log_ppp_error("lcp: echo: loop-back detected\n");
@@ -630,7 +630,7 @@ static void send_echo_reply(struct ppp_lcp_t *lcp)
*(uint32_t *)(hdr + 1) = htonl(lcp->magic);
if (conf_ppp_verbose)
- log_ppp_debug("send [LCP EchoRep id=%x <magic %x>]\n", hdr->id, htonl(lcp->magic));
+ log_ppp_debug("send [LCP EchoRep id=%x <magic %08x>]\n", hdr->id, lcp->magic);
ppp_chan_send(lcp->ppp, hdr, ntohs(hdr->len) + 2);
}
@@ -683,7 +683,7 @@ static void send_echo_request(struct triton_timer_t *t)
}
if (conf_ppp_verbose)
- log_ppp_debug("send [LCP EchoReq id=%x <magic %x>]\n", msg.hdr.id, lcp->magic);
+ log_ppp_debug("send [LCP EchoReq id=%x <magic %08x>]\n", msg.hdr.id, lcp->magic);
ppp_chan_send(lcp->ppp,&msg,ntohs(msg.hdr.len)+2);
}
@@ -851,7 +851,7 @@ static void lcp_recv(struct ppp_handler_t*h)
break;
case ECHOREQ:
if (conf_ppp_verbose)
- log_ppp_debug("recv [LCP EchoReq id=%x <magic %x>]\n", hdr->id, ntohl(*(uint32_t*)(hdr + 1)));
+ log_ppp_debug("recv [LCP EchoReq id=%x <magic %08x>]\n", hdr->id, ntohl(*(uint32_t*)(hdr + 1)));
send_echo_reply(lcp);
break;
case ECHOREP: