diff options
author | Kozlov Dmitry <dima@server> | 2010-09-28 14:31:40 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-09-28 14:31:40 +0400 |
commit | 06858ad4c7468ac8b226b34126b68db2128877f1 (patch) | |
tree | 70c4aea3f3db24c6cf5aa4646f25acd7d21eb258 /accel-pptpd/ppp/ppp_lcp.c | |
parent | fa48d5a3e19c1228903b00585be5c4d42d7bc190 (diff) | |
download | accel-ppp-06858ad4c7468ac8b226b34126b68db2128877f1.tar.gz accel-ppp-06858ad4c7468ac8b226b34126b68db2128877f1.zip |
pptp: Set-Link-Info
lcp: Ident
Diffstat (limited to 'accel-pptpd/ppp/ppp_lcp.c')
-rw-r--r-- | accel-pptpd/ppp/ppp_lcp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/accel-pptpd/ppp/ppp_lcp.c b/accel-pptpd/ppp/ppp_lcp.c index 02fafab8..1328764c 100644 --- a/accel-pptpd/ppp/ppp_lcp.c +++ b/accel-pptpd/ppp/ppp_lcp.c @@ -637,7 +637,6 @@ void lcp_send_proto_rej(struct ppp_t *ppp, uint16_t proto) ppp_chan_send(lcp->ppp, &msg, sizeof(msg)); } - static void lcp_recv(struct ppp_handler_t*h) { struct lcp_hdr_t *hdr; @@ -728,6 +727,11 @@ static void lcp_recv(struct ppp_handler_t*h) case PROTOREJ: log_ppp_debug("recv [LCP ProtoRej id=%x <%x>]\n",hdr->code, hdr->id, *(uint16_t*)(hdr + 1)); break; + case IDENT: + term_msg = _strndup((char*)(hdr + 1) + 4, ntohs(hdr->len) - 4 - 4); + log_ppp_debug("recv [LCP Ident id=%x <%s>]\n", hdr->id, term_msg); + _free(term_msg); + break; default: log_ppp_debug("recv [LCP Unknown %x]\n",hdr->code); ppp_fsm_recv_unk(&lcp->fsm); |