summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/ShaperClass.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-19 10:09:22 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-19 10:09:22 -0700
commitdf1d6348323708b34958cd622e02cbba122c748a (patch)
tree865053fd18cdb5d69da9f8676ca02b5b09349960 /lib/Vyatta/Qos/ShaperClass.pm
parentebaa4ea9be89c0ade383c010e55744288f835887 (diff)
downloadvyatta-cfg-qos-df1d6348323708b34958cd622e02cbba122c748a.tar.gz
vyatta-cfg-qos-df1d6348323708b34958cd622e02cbba122c748a.zip
Add packet-length and latency as class attributes
Attributes needed for WRED implementation.
Diffstat (limited to 'lib/Vyatta/Qos/ShaperClass.pm')
-rw-r--r--lib/Vyatta/Qos/ShaperClass.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Vyatta/Qos/ShaperClass.pm b/lib/Vyatta/Qos/ShaperClass.pm
index 6654aba..4d95f42 100644
--- a/lib/Vyatta/Qos/ShaperClass.pm
+++ b/lib/Vyatta/Qos/ShaperClass.pm
@@ -43,6 +43,8 @@ sub new {
$self->{_burst} = $config->returnValue("burst");
$self->{_limit} = $config->returnValue("queue-limit");
$self->{_qdisc} = $config->returnValue("queue-type");
+ $self->{_avgpkt} = $config->returnValue("packet-length");
+ $self->{_latency} = $config->returnValue("latency");
$self->{dsmark} = getDsfield( $config->returnValue("set-dscp") );
my @matches = _getMatch("$level match");