diff options
author | Kozlov Dmitry <dima@server> | 2010-10-04 15:12:41 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-10-04 15:12:41 +0400 |
commit | a337b4af82fe30d568547aabc61df7bc67a8a835 (patch) | |
tree | 140437e3f4282abb39b17606750ba9bb4123711a /accel-pptpd/ppp/lcp_opt_accomp.c | |
parent | 06858ad4c7468ac8b226b34126b68db2128877f1 (diff) | |
download | accel-ppp-a337b4af82fe30d568547aabc61df7bc67a8a835.tar.gz accel-ppp-a337b4af82fe30d568547aabc61df7bc67a8a835.zip |
ppp: implemented mppe
radius: implemented mppe support
various improvements and bug fixes
Diffstat (limited to 'accel-pptpd/ppp/lcp_opt_accomp.c')
-rw-r--r-- | accel-pptpd/ppp/lcp_opt_accomp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/accel-pptpd/ppp/lcp_opt_accomp.c b/accel-pptpd/ppp/lcp_opt_accomp.c index 94fa1281..241b0e06 100644 --- a/accel-pptpd/ppp/lcp_opt_accomp.c +++ b/accel-pptpd/ppp/lcp_opt_accomp.c @@ -75,13 +75,17 @@ static int accomp_send_conf_nak(struct ppp_lcp_t *lcp, struct lcp_option_t *opt, static int accomp_recv_conf_req(struct ppp_lcp_t *lcp, struct lcp_option_t *opt, uint8_t *ptr) { struct accomp_option_t *accomp_opt=container_of(opt,typeof(*accomp_opt),opt); + struct lcp_opt_hdr_t *opt0=(struct lcp_opt_hdr_t*)ptr; - if (!ptr) { + /*if (!ptr) { if (accomp_opt->require) return LCP_OPT_NAK; accomp_opt->accomp=0; return LCP_OPT_ACK; - } + }*/ + + if (opt0->len != 2) + return LCP_OPT_REJ; if (accomp_opt->accomp>0) { |