From df1d6348323708b34958cd622e02cbba122c748a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 19 May 2009 10:09:22 -0700 Subject: Add packet-length and latency as class attributes Attributes needed for WRED implementation. --- lib/Vyatta/Qos/ShaperClass.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Vyatta/Qos') 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"); -- cgit v1.2.3