Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • opentrafficshaper/opentrafficshaper
  • eezysol/opentrafficshaper
  • sudesh/opentrafficshaper
  • Yuriy/opentrafficshaper
  • nkukard/opentrafficshaper
  • fcardoso/opentrafficshaper
6 results
Show changes
Showing
with 4214 additions and 2926 deletions
...@@ -5,7 +5,7 @@ DROP TABLE IF EXISTS identifiers; ...@@ -5,7 +5,7 @@ DROP TABLE IF EXISTS identifiers;
CREATE TABLE identifiers ( CREATE TABLE identifiers (
`ID` SERIAL, `ID` SERIAL,
`Identifier` VARCHAR(255) NOT NULL `Identifier` VARCHAR(255) NOT NULL
) Engine=MyISAM; ) Engine=InnoDB;
/* For queries */ /* For queries */
CREATE INDEX identifiers_idx1 ON identifiers (`Identifier`); CREATE INDEX identifiers_idx1 ON identifiers (`Identifier`);
...@@ -28,12 +28,12 @@ CREATE TABLE stats ( ...@@ -28,12 +28,12 @@ CREATE TABLE stats (
`Limit` MEDIUMINT UNSIGNED NOT NULL, `Limit` MEDIUMINT UNSIGNED NOT NULL,
`Rate` MEDIUMINT UNSIGNED NOT NULL, `Rate` MEDIUMINT UNSIGNED NOT NULL,
`PPS` MEDIUMINT UNSIGNED NOT NULL, `PPS` MEDIUMINT UNSIGNED NOT NULL,
`Queue_Len` MEDIUMINT UNSIGNED NOT NULL, `QueueLen` MEDIUMINT UNSIGNED NOT NULL,
`Total_Bytes` BIGINT UNSIGNED NOT NULL, `TotalBytes` BIGINT UNSIGNED NOT NULL,
`Total_Packets` BIGINT UNSIGNED NOT NULL, `TotalPackets` BIGINT UNSIGNED NOT NULL,
`Total_Overlimits` BIGINT UNSIGNED NOT NULL, `TotalOverlimits` BIGINT UNSIGNED NOT NULL,
`Total_Dropped` BIGINT UNSIGNED NOT NULL `TotalDropped` BIGINT UNSIGNED NOT NULL
) Engine=MyISAM; ) Engine=InnoDB;
/* For queries */ /* For queries */
CREATE INDEX stats_idx1 ON stats (`IdentifierID`); CREATE INDEX stats_idx1 ON stats (`IdentifierID`);
...@@ -56,7 +56,7 @@ CREATE TABLE stats_basic ( ...@@ -56,7 +56,7 @@ CREATE TABLE stats_basic (
`Timestamp` INTEGER UNSIGNED NOT NULL, `Timestamp` INTEGER UNSIGNED NOT NULL,
`Counter` BIGINT UNSIGNED NOT NULL `Counter` BIGINT UNSIGNED NOT NULL
) Engine=MyISAM; ) Engine=InnoDB;
/* For queries */ /* For queries */
CREATE INDEX stats_basic_idx1 ON stats (`IdentifierID`); CREATE INDEX stats_basic_idx1 ON stats (`IdentifierID`);
......
# Basic radius dictionary # Basic radius dictionary
# Copyright (C) 2009-2013, AllWorldIT # Copyright (C) 2009-2015, AllWorldIT
# #
# This program is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
......
# AllWorldIT vendor radius dictionary # AllWorldIT vendor radius dictionary
# Copyright (C) 2009-2013, AllWorldIT # Copyright (C) 2009-2015, AllWorldIT
# #
# This program is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
...@@ -21,4 +21,5 @@ VENDOR AllWorldIT 42109 ...@@ -21,4 +21,5 @@ VENDOR AllWorldIT 42109
ATTRIBUTE OpenTrafficShaper-Traffic-Limit 1 string AllWorldIT ATTRIBUTE OpenTrafficShaper-Traffic-Limit 1 string AllWorldIT
ATTRIBUTE OpenTrafficShaper-Traffic-Group 2 integer AllWorldIT ATTRIBUTE OpenTrafficShaper-Traffic-Group 2 integer AllWorldIT
ATTRIBUTE OpenTrafficShaper-Traffic-Class 3 integer AllWorldIT ATTRIBUTE OpenTrafficShaper-Traffic-Class 3 integer AllWorldIT
ATTRIBUTE OpenTrafficShaper-Traffic-Pool 4 string AllWorldIT
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# PID file to write our PID to # PID file to write our PID to
# #
# default: # default:
# pid_file=/var/run/opentrafficshaper/opentrafficshaper.pid # pid_file=/run/opentrafficshaper/opentrafficshaper.pid
# State file, this file is used to store persistent information # State file, this file is used to store persistent information
......
awitpt @ 932340ef
Subproject commit 932340ef7336dc40bdd3d35d2023bde1310e9066
# OpenTrafficShaper constants package # OpenTrafficShaper constants package
# Copyright (C) 2013-2014, AllWorldIT # Copyright (C) 2007-2023, AllWorldIT
# #
# This program is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
......
# Logging functionality # Logging functionality
# Copyright (C) 2007-2014, AllWorldIT # Copyright (C) 2007-2023, AllWorldIT
# #
# This program is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
...@@ -49,6 +49,7 @@ use IO::Handle; ...@@ -49,6 +49,7 @@ use IO::Handle;
use POSIX qw( strftime ); use POSIX qw( strftime );
# Instantiate # Instantiate
sub new { sub new {
my ($class) = @_; my ($class) = @_;
...@@ -60,6 +61,8 @@ sub new { ...@@ -60,6 +61,8 @@ sub new {
return $self; return $self;
} }
# Logging function # Logging function
sub log sub log
{ {
...@@ -97,6 +100,8 @@ sub log ...@@ -97,6 +100,8 @@ sub log
} }
} }
# Set log file & open it # Set log file & open it
sub open sub open
{ {
...@@ -113,6 +118,8 @@ sub open ...@@ -113,6 +118,8 @@ sub open
$self->{'handle'} = $fh; $self->{'handle'} = $fh;
} }
# Set log level # Set log level
sub setLevel sub setLevel
{ {
...@@ -123,5 +130,7 @@ sub setLevel ...@@ -123,5 +130,7 @@ sub setLevel
$self->{'level'} = $level; $self->{'level'} = $level;
} }
1; 1;
# vim: ts=4 # vim: ts=4
This diff is collapsed.
This diff is collapsed.