diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-05-15 23:49:48 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-05-15 23:49:48 +0400 |
commit | d669038e70d2e3690423792e63b8179e44a7a340 (patch) | |
tree | 18dfc9e4ddcc9d11f0ff0b8cb9a82e4bb795af52 /accel-pppd/extra/ippool.c | |
parent | 6efad618371915bf0b402f26117a02ad53aaeb20 (diff) | |
download | accel-ppp-d669038e70d2e3690423792e63b8179e44a7a340.tar.gz accel-ppp-d669038e70d2e3690423792e63b8179e44a7a340.zip |
shaper: implemented leaf qdisc attachment
Diffstat (limited to 'accel-pppd/extra/ippool.c')
-rw-r--r-- | accel-pppd/extra/ippool.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c index 7117c3e2..f18aa050 100644 --- a/accel-pppd/extra/ippool.c +++ b/accel-pppd/extra/ippool.c @@ -325,11 +325,12 @@ static void ippool_init(void) list_for_each_entry(opt, &s->items, entry) { #ifdef RADIUS - if (!strcmp(opt->name, "vendor")) - conf_vendor = parse_vendor_opt(opt->val); - else if (!strcmp(opt->name, "attr")) - conf_attr = parse_attr_opt(opt->val); - else + if (triton_module_loaded("radius")) { + if (!strcmp(opt->name, "vendor")) + conf_vendor = parse_vendor_opt(opt->val); + else if (!strcmp(opt->name, "attr")) + conf_attr = parse_attr_opt(opt->val); + } else #endif if (!strcmp(opt->name, "gw-ip-address")) parse_gw_ip_address(opt->val); @@ -358,7 +359,8 @@ static void ippool_init(void) ipdb_register(&ipdb); #ifdef RADIUS - triton_event_register_handler(EV_RADIUS_ACCESS_ACCEPT, (triton_event_func)ev_radius_access_accept); + if (triton_module_loaded("radius")) + triton_event_register_handler(EV_RADIUS_ACCESS_ACCEPT, (triton_event_func)ev_radius_access_accept); #endif } |