summaryrefslogtreecommitdiff
path: root/accel-pppd/ipdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ipdb.c')
-rw-r--r--accel-pppd/ipdb.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/accel-pppd/ipdb.c b/accel-pppd/ipdb.c
index f87d4788..7c3ebb82 100644
--- a/accel-pppd/ipdb.c
+++ b/accel-pppd/ipdb.c
@@ -5,7 +5,7 @@
static LIST_HEAD(ipdb_handlers);
-struct ipv4db_item_t __export *ipdb_get_ipv4(struct ppp_t *ppp)
+struct ipv4db_item_t __export *ipdb_get_ipv4(struct ap_session *ses)
{
struct ipdb_t *ipdb;
struct ipv4db_item_t *it;
@@ -13,7 +13,7 @@ struct ipv4db_item_t __export *ipdb_get_ipv4(struct ppp_t *ppp)
list_for_each_entry(ipdb, &ipdb_handlers, entry) {
if (!ipdb->get_ipv4)
continue;
- it = ipdb->get_ipv4(ppp);
+ it = ipdb->get_ipv4(ses);
if (it)
return it;
}
@@ -21,13 +21,13 @@ struct ipv4db_item_t __export *ipdb_get_ipv4(struct ppp_t *ppp)
return NULL;
}
-void __export ipdb_put_ipv4(struct ppp_t *ppp, struct ipv4db_item_t *it)
+void __export ipdb_put_ipv4(struct ap_session *ses, struct ipv4db_item_t *it)
{
if (it->owner->put_ipv4)
- it->owner->put_ipv4(ppp, it);
+ it->owner->put_ipv4(ses, it);
}
-struct ipv6db_item_t __export *ipdb_get_ipv6(struct ppp_t *ppp)
+struct ipv6db_item_t __export *ipdb_get_ipv6(struct ap_session *ses)
{
struct ipdb_t *ipdb;
struct ipv6db_item_t *it;
@@ -35,7 +35,7 @@ struct ipv6db_item_t __export *ipdb_get_ipv6(struct ppp_t *ppp)
list_for_each_entry(ipdb, &ipdb_handlers, entry) {
if (!ipdb->get_ipv6)
continue;
- it = ipdb->get_ipv6(ppp);
+ it = ipdb->get_ipv6(ses);
if (it)
return it;
}
@@ -43,13 +43,13 @@ struct ipv6db_item_t __export *ipdb_get_ipv6(struct ppp_t *ppp)
return NULL;
}
-void __export ipdb_put_ipv6(struct ppp_t *ppp, struct ipv6db_item_t *it)
+void __export ipdb_put_ipv6(struct ap_session *ses, struct ipv6db_item_t *it)
{
if (it->owner->put_ipv6)
- it->owner->put_ipv6(ppp, it);
+ it->owner->put_ipv6(ses, it);
}
-struct ipv6db_prefix_t __export *ipdb_get_ipv6_prefix(struct ppp_t *ppp)
+struct ipv6db_prefix_t __export *ipdb_get_ipv6_prefix(struct ap_session *ses)
{
struct ipdb_t *ipdb;
struct ipv6db_prefix_t *it;
@@ -57,7 +57,7 @@ struct ipv6db_prefix_t __export *ipdb_get_ipv6_prefix(struct ppp_t *ppp)
list_for_each_entry(ipdb, &ipdb_handlers, entry) {
if (!ipdb->get_ipv6_prefix)
continue;
- it = ipdb->get_ipv6_prefix(ppp);
+ it = ipdb->get_ipv6_prefix(ses);
if (it)
return it;
}
@@ -65,10 +65,10 @@ struct ipv6db_prefix_t __export *ipdb_get_ipv6_prefix(struct ppp_t *ppp)
return NULL;
}
-void __export ipdb_put_ipv6_prefix(struct ppp_t *ppp, struct ipv6db_prefix_t *it)
+void __export ipdb_put_ipv6_prefix(struct ap_session *ses, struct ipv6db_prefix_t *it)
{
if (it->owner->put_ipv6_prefix)
- it->owner->put_ipv6_prefix(ppp, it);
+ it->owner->put_ipv6_prefix(ses, it);
}