<<

NAME

pf::accounting

DESCRIPTION

pf::accounting is a module to add the RADIUS accounting fonctionnalities and enable some bandwidth/session violations mechanism.

SUBROUTINES

accounting_db_prepare

Initialize database prepared statements

acct_maintenance

Check in the accounting tables for potential bandwidth abuse

current_sessionid

Returns the current sessionid for a given mac address

dynauth_attr

Returns the RADIUS Dynamic Authorization attributes (User-name, Acct-Session-Id)

accounting_exist

Returns true if an accounting entry exists undef or 0 otherwise.

node_accounting_view - view latest accounting entry for a node, returns an array of hashrefs
node_accounting_view_all - view all accounting entries, returns an hashref
node_accounting_daily_bw - view bandwidth tranferred today for a node, returns an array of hashrefs
node_accounting_weekly_bw - view bandwidth tranferred this week for a node, returns an array of hashrefs
node_accounting_monthly_bw - view bandwidth tranferred this month for a node, returns an array of hashrefs
node_accounting_yearly_bw - view bandwidth tranferred this year for a node, returns an array of hashrefs
node_accounting_daily_time - view connected time today for a node, returns an array of hashrefs
node_accounting_weekly_time - view connected time this week for a node, returns an array of hashrefs
node_accounting_monthly_time - view connected time this month for a node, returns an array of hashrefs
node_accounting_yearly_time - view connected time this year for a node, returns an array of hashrefs
node_acct_maintenance_bw_inbound - get mac that downloaded more bandwidth than they should
node_acct_maintenance_bw_outbound - get mac that uploaded more bandwidth than they should
node_acct_maintenance_bw_total - get mac that used more bandwidth (IN + OUT) than they should
node_acct_maintenance_bw_inbound_exists - check if the mac bust the bandwidth down limit
node_acct_maintenance_bw_outbound_exists - check if the mac bust the bandwidth up limit
node_acct_maintenance_bw_total_exists - check if the mac bust the bandwidth up-down limit

AUTHOR

Inverse inc. <info@inverse.ca>

COPYRIGHT

Copyright (C) 2005-2015 Inverse inc.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

<<