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 1440 additions and 1412 deletions
[Unit]
Description=opensource traffic shaping system
ConditionPathExists=/etc/opentrafficshaper/opentrafficshaper.conf
After=network.target shorewall.service shorewall6.service mariadb.service
[Service]
ExecStart=/opt/opentrafficshaper/opentrafficshaperd --fg --config=/etc/opentrafficshaper/opentrafficshaper.conf
RestartSec=10
Restart=on-failure
ProtectSystem=full
ProtectHome=on
PrivateTmp=on
PrivateDevices=on
ProtectKernelTunables=on
ProtectControlGroups=on
ExecPaths=/opt/opentrafficshaper/opentrafficshaperd
ReadOnlyPaths=/opt/opentrafficshaper
ReadWritePaths=/run/mysqld
ConfigurationDirectory=opentrafficshaper
StateDirectory=opentrafficshaper
RuntimeDirectory=opentrafficshaper
LogsDirectory=opentrafficshaper
StateDirectoryMode=0750
LogsDirectoryMode=0750
ConfigurationDirectoryMode=0750
[Install]
WantedBy=multi-user.target
\ No newline at end of file
...@@ -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
......
# POE::Filter::HybridHTTP::WebSocketFrame - Copyright 2013-2014, AllworldIT # POE::Filter::HybridHTTP::WebSocketFrame - Copyright 2007-2023, AllworldIT
# Hybrid HTTP filter support for WebSocketFrames # Hybrid HTTP filter support for WebSocketFrames
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
# the same terms as Perl 5.10. # the same terms as Perl 5.10.
## ##
package POE::Filter::HybridHTTP::WebSocketFrame; package opentrafficshaper::POE::Filter::HybridHTTP::WebSocketFrame;
use bytes; use bytes;
...@@ -110,7 +110,7 @@ sub next { ...@@ -110,7 +110,7 @@ sub next {
return Encode::decode('UTF-8', $bytes); return Encode::decode('UTF-8', $bytes);
} }
return; return;
} }
sub fin { @_ > 1 ? $_[0]->{fin} = $_[1] : $_[0]->{fin} } sub fin { @_ > 1 ? $_[0]->{fin} = $_[1] : $_[0]->{fin} }
...@@ -189,7 +189,7 @@ sub next_bytes { ...@@ -189,7 +189,7 @@ sub next_bytes {
$offset += 8; $offset += 8;
} }
# XXX - not sure how to return this sanely # XXX - not sure how to return this sanely
if ($payload_len > $self->{'max_payload_size'}) { if ($payload_len > $self->{'max_payload_size'}) {
$self->{'buffer'} = ''; $self->{'buffer'} = '';
return; return;
} }
......
# 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
......
# OpenTrafficShaper Plugin Handler # OpenTrafficShaper Plugin Handler
# 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
......
This diff is collapsed.