diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-08-20 10:05:23 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-08-20 10:05:23 +0400 |
commit | a93e43804c9a37b3cc2141d5ada3158653a7a221 (patch) | |
tree | 96e51396d3d7cd2c2ba69d274faa7a9760df457e /accel-pppd/extra/ippool.c | |
parent | 5ef49162ea9763ca9878c22e3736766d8f1db014 (diff) | |
parent | ef1d4c04584076dc77fc8df62c996feb1ac10c41 (diff) | |
download | accel-ppp-a93e43804c9a37b3cc2141d5ada3158653a7a221.tar.gz accel-ppp-a93e43804c9a37b3cc2141d5ada3158653a7a221.zip |
Merge branch 'ipv6'
Diffstat (limited to 'accel-pppd/extra/ippool.c')
-rw-r--r-- | accel-pppd/extra/ippool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c index 6f07e5f8..d49f0f44 100644 --- a/accel-pppd/extra/ippool.c +++ b/accel-pppd/extra/ippool.c @@ -14,7 +14,7 @@ struct ippool_item_t { struct list_head entry; - struct ipdb_item_t it; + struct ipv4db_item_t it; }; struct ipaddr_t @@ -153,7 +153,7 @@ static void generate_pool(void) } } -static struct ipdb_item_t *get_ip(struct ppp_t *ppp) +static struct ipv4db_item_t *get_ip(struct ppp_t *ppp) { struct ippool_item_t *it; @@ -168,7 +168,7 @@ static struct ipdb_item_t *get_ip(struct ppp_t *ppp) return it ? &it->it : NULL; } -static void put_ip(struct ppp_t *ppp, struct ipdb_item_t *it) +static void put_ip(struct ppp_t *ppp, struct ipv4db_item_t *it) { struct ippool_item_t *pit = container_of(it, typeof(*pit), it); @@ -178,8 +178,8 @@ static void put_ip(struct ppp_t *ppp, struct ipdb_item_t *it) } static struct ipdb_t ipdb = { - .get = get_ip, - .put = put_ip, + .get_ipv4 = get_ip, + .put_ipv4 = put_ip, }; static void ippool_init(void) |