diff options
author | Kozlov Dmitry <dima@server> | 2010-10-19 10:29:07 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-10-19 10:29:07 +0400 |
commit | 64f19d20a0af4416d7d5ccfb5400cd0b4c04d956 (patch) | |
tree | e634da9740896b0a56ba371fc9d033733c809471 | |
parent | 27b190b7e4f3957fb923174774435832306938b2 (diff) | |
download | accel-ppp-64f19d20a0af4416d7d5ccfb5400cd0b4c04d956.tar.gz accel-ppp-64f19d20a0af4416d7d5ccfb5400cd0b4c04d956.zip |
ipcp: don't send dns options in IPCP configure request
-rw-r--r-- | accel-pptpd/ppp/ipcp_opt_dns.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/accel-pptpd/ppp/ipcp_opt_dns.c b/accel-pptpd/ppp/ipcp_opt_dns.c index 4c48fd4..c177092 100644 --- a/accel-pptpd/ppp/ipcp_opt_dns.c +++ b/accel-pptpd/ppp/ipcp_opt_dns.c @@ -75,15 +75,7 @@ static void dns_free(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *opt) static int dns_send_conf_req(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *opt, uint8_t *ptr) { - struct dns_option_t *dns_opt=container_of(opt,typeof(*dns_opt),opt); - struct ipcp_opt32_t *opt32=(struct ipcp_opt32_t*)ptr; - - if (!dns_opt->addr) - return 0; - opt32->hdr.id=dns_opt->opt.id; - opt32->hdr.len=6; - opt32->val=dns_opt->addr; - return 6; + return 0; } static int dns_send_conf_nak(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *opt, uint8_t *ptr) |