diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-02-08 21:46:57 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-02-08 21:46:57 +0300 |
commit | a04cc1eba9bdf614eea9d7858db4581fc22474d7 (patch) | |
tree | e827a28279c57c27e8836e3aea307076a27a5f5a /accel-pppd/ppp/ipcp_opt_ipaddr.c | |
parent | 38077f9b9d9e86f4a7d2317b3697ea4370889999 (diff) | |
download | accel-ppp-a04cc1eba9bdf614eea9d7858db4581fc22474d7.tar.gz accel-ppp-a04cc1eba9bdf614eea9d7858db4581fc22474d7.zip |
snapshot
Diffstat (limited to 'accel-pppd/ppp/ipcp_opt_ipaddr.c')
-rw-r--r-- | accel-pppd/ppp/ipcp_opt_ipaddr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ppp/ipcp_opt_ipaddr.c b/accel-pppd/ppp/ipcp_opt_ipaddr.c index 334f4256..de1186e7 100644 --- a/accel-pppd/ppp/ipcp_opt_ipaddr.c +++ b/accel-pppd/ppp/ipcp_opt_ipaddr.c @@ -29,7 +29,7 @@ static void ipaddr_print(void (*print)(const char *fmt,...),struct ipcp_option_t struct ipaddr_option_t { struct ipcp_option_t opt; - struct ipdb_item_t *ip; + struct ipv4db_item_t *ip; int started:1; }; @@ -58,7 +58,7 @@ static void ipaddr_free(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *opt) struct ipaddr_option_t *ipaddr_opt=container_of(opt,typeof(*ipaddr_opt),opt); if (ipaddr_opt->ip) - ipdb_put(ipcp->ppp, ipaddr_opt->ip); + ipdb_put_ipv4(ipcp->ppp, ipaddr_opt->ip); _free(ipaddr_opt); } @@ -87,7 +87,7 @@ static int ipaddr_send_conf_req(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *o struct ipcp_opt32_t *opt32=(struct ipcp_opt32_t*)ptr; if (!ipaddr_opt->ip) { - ipaddr_opt->ip = ipdb_get(ipcp->ppp); + ipaddr_opt->ip = ipdb_get_ipv4(ipcp->ppp); if (!ipaddr_opt->ip) { log_ppp_warn("ppp:ipcp: no free IP address\n"); return -1; |