diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2020-08-05 22:35:06 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2020-08-09 04:16:30 +0500 |
commit | d9a9d2827c710656e1f874248ad27505b64a70e3 (patch) | |
tree | c0f127a558854d80f0a25312f1363fa354ba829b | |
parent | a524af600a536f155b429f539968e8ea00706792 (diff) | |
download | accel-ppp-d9a9d2827c710656e1f874248ad27505b64a70e3.tar.gz accel-ppp-d9a9d2827c710656e1f874248ad27505b64a70e3.zip |
ppp: lcp: fix ConfAck and CodeRej log format
-rw-r--r-- | accel-pppd/ppp/ppp_lcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c index 7ac34fbd..fdbb3181 100644 --- a/accel-pppd/ppp/ppp_lcp.c +++ b/accel-pppd/ppp/ppp_lcp.c @@ -260,7 +260,7 @@ static void send_conf_ack(struct ppp_fsm_t *fsm) hdr->code = CONFACK; if (conf_ppp_verbose) - log_ppp_info2("send [LCP ConfAck id=%x ]\n", lcp->fsm.recv_id); + log_ppp_info2("send [LCP ConfAck id=%x]\n", lcp->fsm.recv_id); ppp_chan_send(lcp->ppp, hdr, ntohs(hdr->len) + 2); } @@ -270,10 +270,10 @@ static void send_code_rej(struct ppp_fsm_t *fsm) struct ppp_lcp_t *lcp = container_of(fsm, typeof(*lcp), fsm); struct lcp_hdr_t *hdr = (struct lcp_hdr_t*)lcp->ppp->buf; - hdr->code = CONFACK; + hdr->code = CODEREJ; if (conf_ppp_verbose) - log_ppp_info2("send [LCP CodeRej %x id=%x ]\n",hdr->code, lcp->fsm.recv_id); + log_ppp_info2("send [LCP CodeRej id=%x <%02x>]\n", lcp->fsm.recv_id, hdr->code); ppp_chan_send(lcp->ppp, hdr, ntohs(hdr->len) + 2); } @@ -326,7 +326,7 @@ static void send_conf_rej(struct ppp_fsm_t *fsm) struct recv_opt_t *ropt; if (conf_ppp_verbose) - log_ppp_info2("send [LCP ConfRej id=%x ", lcp->fsm.recv_id); + log_ppp_info2("send [LCP ConfRej id=%x", lcp->fsm.recv_id); lcp_hdr->proto = htons(PPP_LCP); lcp_hdr->code = CONFREJ; |