Class Bandwidth
Bandwidth manager
Located in /api/Bandwidth.class.php (line 60)
Engine | --Software | --Daemon | --Firewall | --Bandwidth
Inherited Variables
Inherited from Daemon
Daemon::$initscript
Daemon::$package
Daemon::$processname
Daemon::$reloadable
Daemon::$title
Inherited from Software
Software::$copyright
Software::$description
Software::$installsize
Software::$installtime
Software::$packager
Software::$pkgname
Software::$release
Software::$summary
Software::$version
Inherited from Engine
Engine::$errors
Bandwidth constructor.
- Firewall::__construct()
- Firewall constructor.
Add a new Bandwidth Rule.
- string $name: the bandwidth rule name
- string $ifn: the external interface
- string $src_addr: addr type: 0 destination, 1 source
- string $src_port: src type: 0 destination, 1 source
- string $ip: the IP address
- int $port: the port
- int $priority: priority
- int $upstream: upstream rate
- int $upstream_ceil: upstream ceiling
- int $downstream: downstream rate
- int $downstream_ceil: downstream ceiling
Add a new 'basic' Bandwidth Rule.
- string $name: the bandwidth rule name
- int $mode: rule mode, limit or reserve
- array $service
- int $dir: rule direction
- int $speed: upstream/downstream rate
- int $priority: rule priority
Delete an existing bandwidth rule.
- string $ifn: external interface
- string $src_addr: addr type: 0 destination, 1 source
- string $src_port: port type: 0 destination, 1 source
- string $ip: the IP address
- string $port: the port
- int $priority: priority
- int $upstream: upstream rate
- int $upstream_ceil: upstream ceiling
- int $downstream: downstream rate
- int $downstream_ceil: downstream rate
Delete an existing "basic" bandwidth rule.
- string $name: basic bandwidth rule ID
Disables bandwidth manager.
Enables bandwidth manager.
Get all bandwidth rules.
Returns network interface details.
Returns the state of the bandwidth manager.
- Firewall::GetState()
- Generic get state for a on/off key.
Returns state of network interface configuration details.
- $speed
Toggle the enabled status of an existing bandwidth rule.
- boolean $enabled: the status
- string $ifn: external interface
- string $src_addr: addr type: 0 destination, 1 source
- string $src_port: port type: 0 destination, 1 source
- string $ip: the IP address
- string $port: the port
- int $priority: priority
- int $upstream: upstream rate
- int $upstream_ceil: upstream ceiling
- int $downstream: downstream rate
- int $downstream_ceil: downstream rate
Toggle the enabled status of an existing "basic" bandwidth rule.
- boolean $enabled: the status
- string $name: bandwidth rule ID
Updates network interface information for a given interface.
- string $iface: network interface
- int $upstream: upstream speed in kbit/s
- int $downstream: downstream speed in kbit/s
- $interface
Loads bandwidth configuration.
Saves bandwidth configuration.
Inherited Methods
Inherited From Firewall
Firewall::__construct()
Firewall::AddHost()
Firewall::AddMac()
Firewall::AddPort()
Firewall::AddPortRange()
Firewall::AddRule()
Firewall::AddStandardService()
Firewall::DeleteHost()
Firewall::DeleteMac()
Firewall::DeletePort()
Firewall::DeletePortRange()
Firewall::DeleteRule()
Firewall::FindRule()
Firewall::GetHosts()
Firewall::GetInterfaceDefinition()
Firewall::GetInterfaceRole()
Firewall::GetInterfaceRoleText()
Firewall::GetMacs()
Firewall::GetMode()
Firewall::GetPortRanges()
Firewall::GetPorts()
Firewall::GetRules()
Firewall::GetStandardServiceList()
Firewall::GetState()
Firewall::GetValue()
Firewall::IsValidIp()
Firewall::IsValidMac()
Firewall::IsValidMode()
Firewall::IsValidPort()
Firewall::IsValidPortRange()
Firewall::IsValidProtocol()
Firewall::IsValidServer()
Firewall::IsValidService()
Firewall::LookupHostMetainfo()
Firewall::LookupService()
Firewall::RemoveInterfaceRole()
Firewall::SetInterface()
Firewall::SetInterfaceRole()
Firewall::SetMode()
Firewall::SetRules()
Firewall::SetState()
Firewall::SetValue()
Inherited From Daemon
Daemon::__construct()
Daemon::GetBootState()
Daemon::GetProcessName()
Daemon::GetRunningState()
Daemon::GetTitle()
Daemon::Reset()
Daemon::Restart()
Daemon::SetBootState()
Daemon::SetRunningState()
Daemon::__destruct()
Inherited From Software
Software::__construct()
Software::GetCopyright()
Software::GetDescription()
Software::GetInstallSize()
Software::GetInstallTime()
Software::GetPackageName()
Software::GetPackager()
Software::GetRelease()
Software::GetRpmInfo()
Software::GetSummary()
Software::GetVersion()
Software::IsInstalled()
Software::__destruct()
Inherited From Engine
Engine::__construct()
Engine::AddValidationError()
Engine::CheckValidationErrors()
Engine::CopyValidationErrors()
Engine::GetValidationErrors()
Engine::Log()
Engine::__destruct()
CONSTANT_SPEED_NOT_SET
= 0
(line 68)
DIR_DESTINED_GW
= 3
(line 76)
DIR_DESTINED_LAN
= 1
(line 74)
DIR_ORIGINATING_GW
= 2
(line 75)
DIR_ORIGINATING_LAN
= 0
(line 73)
FILE_CONFIG
= '/etc/firewall'
(line 66)
MAX_IP_RANGE
= 255
(line 67)
MODE_LIMIT
= 0
(line 70)
MODE_RESERVE
= 1
(line 71)
TYPE_BASIC
= 1
(line 78)
Inherited Constants
Inherited from Firewall
Firewall::CONSTANT_ALL_PORTS
Firewall::CONSTANT_ALL_PROTOCOLS
Firewall::CONSTANT_AUTO
Firewall::CONSTANT_DISABLED
Firewall::CONSTANT_DMZ
Firewall::CONSTANT_ENABLED
Firewall::CONSTANT_EXTERNAL
Firewall::CONSTANT_GATEWAY
Firewall::CONSTANT_HOT_LAN
Firewall::CONSTANT_LAN
Firewall::CONSTANT_MULTIPATH
Firewall::CONSTANT_NORMAL
Firewall::CONSTANT_NOT_CONFIGURED
Firewall::CONSTANT_OFF
Firewall::CONSTANT_ON
Firewall::CONSTANT_ONE_TO_ONE_NAT_START
Firewall::CONSTANT_PORT_RANGE
Firewall::CONSTANT_PROTOCOL_TCP
Firewall::CONSTANT_PROTOCOL_UDP
Firewall::CONSTANT_SPECIAL
Firewall::CONSTANT_STANDALONE
Firewall::CONSTANT_TRUSTEDGATEWAY
Firewall::CONSTANT_TRUSTEDSTANDALONE
Firewall::FILE_CONFIG
Firewall::FILE_CUSTOM_RULES
Inherited from Daemon
Daemon::CMD_CHKCONFIG
Daemon::CMD_LS
Daemon::CMD_PIDOF
Daemon::CMD_SERVICE
Daemon::PATH_INITD
Inherited from Software
Software::COMMAND_RPM
Inherited from Engine
Engine::COMMAND_API
Documentation generated on Fri, 28 Aug 2009 20:31:59 -0400 by phpDocumentor 1.3.2

