diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-06-07 15:25:08 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-06-07 15:25:08 +0400 |
commit | 462b51dc958f0d710e45b578b03dbf32b5e0d321 (patch) | |
tree | b8218c42fa9fc77843742e51a85ac37b594e5ce9 /accel-pppd/ppp | |
parent | 88e73d66fc884cced7cdccae9710373f1f4e6b60 (diff) | |
download | accel-ppp-462b51dc958f0d710e45b578b03dbf32b5e0d321.tar.gz accel-ppp-462b51dc958f0d710e45b578b03dbf32b5e0d321.zip |
ppp: handle LCP DiscardReq
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp_fsm.h | 1 | ||||
-rw-r--r-- | accel-pppd/ppp/ppp_lcp.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_fsm.h b/accel-pppd/ppp/ppp_fsm.h index 7b7474b3..95da7b63 100644 --- a/accel-pppd/ppp/ppp_fsm.h +++ b/accel-pppd/ppp/ppp_fsm.h @@ -15,6 +15,7 @@ typedef enum {FSM_Initial=0,FSM_Starting,FSM_Closed,FSM_Stopped,FSM_Closing,FSM_ #define PROTOREJ 8 /* Code Reject */ #define ECHOREQ 9 /* Echo Request */ #define ECHOREP 10 /* Echo Reply */ +#define DISCARDREQ 11 /* Discard Request */ #define IDENT 12 /* Identification */ struct ppp_t; diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c index e66bc10e..12ec24ba 100644 --- a/accel-pppd/ppp/ppp_lcp.c +++ b/accel-pppd/ppp/ppp_lcp.c @@ -863,6 +863,10 @@ static void lcp_recv(struct ppp_handler_t*h) log_ppp_info2("recv [LCP ProtoRej id=%x <%04x>]\n", hdr->id, ntohs(*(uint16_t*)(hdr + 1))); ppp_recv_proto_rej(lcp->ppp, ntohs(*(uint16_t *)(hdr + 1))); break; + case DISCARDREQ: + if (conf_ppp_verbose) + log_ppp_info2("recv [LCP DiscardReq id=%x <magic %08x>]\n", hdr->id, ntohl(*(uint32_t*)(hdr + 1))); + break; case IDENT: if (conf_ppp_verbose) { term_msg = _strndup((char*)(hdr + 1) + 4, ntohs(hdr->len) - 4 - 4); |