Age | Commit message (Collapse) | Author |
|
|
|
Bugfix for 3010
|
|
|
|
Replace reference to old VPL1.0 with GPLv2
|
|
Glendale is licensed under GPLv2
|
|
Add tab completion for values in /etc/protocols and completion help.
Bugfix: 2972
|
|
Need to cleanup old qdisc/class/filters before applying new one.
Bugfix: 2932
|
|
The generated filtering rules were using wrong id's when
set-dscp was being used. Need to put dsmark rules on root,
and htb rules on start of that tree, and the id needs to
be printed in hex not decimal.
Bugfix: 2947
|
|
Bugfix: 2939
Add needed space for template.
|
|
|
|
|
|
Add a bunch of checks.
* Check policy configuration at commit time
* Add check for duplicate names
* Allow _ in policy name
Bugfix: 2907
|
|
Bugfix: 2919
But configuration level in error message
|
|
|
|
Having a hardcoded switch statement is harder to update than
using a hash.
|
|
Script was using old value, and default be undefined not 0.
|
|
Bugfix: 2937
Enforce queue limit > 1
|
|
Print better syntax help for class identfier
|
|
bugfix for 2893. Allow QOS commands over serial
|
|
Fix parsing problems for update-interface that caused problems
during boot.
Bugfix: 2914
|
|
The function validate_name is no longer used.
|
|
1 is not a valid limit for SFQ.
Bugfix: 2937
|
|
The delete-policy option requires two arguments (for consistency),
and the validate-name option is no longer used.
|
|
Only check syntax for policy names in syntax, check for name
conflicts later. Part of bug fix for policy name management.
|
|
Add better help for DSCP values.
Bugfix: 2930
|
|
For compatiablity use DSCP values in the 0..63 range and scale
in the script, rather than uses raw header values. This makes configuration
more familar to IOS users.
|
|
Bugfix: 2931
Tab completion for possible dscp field values.
|
|
Add missing support for completion of policy choices
Bugfix: 2915
|
|
No functional change just change listName to listPolicy to make
it clearer what is going on.
|
|
Bugfix: 2914
When queue type was added, the old template was removed.
|
|
|
|
If no suffix is given, the bandwidth value should be in "bits/sec"
(not bytes/sec), to be compatiable with other routers.
|
|
This adds ability to choose the underlying queue type for traffic shaper
classes:
drop-tail => fifo
random-detect => red
fair-queue => sfq
priority => prio
For Red, the values are computed based on the bandwidth so it is much
simpler than raw tc usage.
|
|
This makes dsmark work. Need to round up to power of 2 and also
pass parent down to handle nested case properly.
|
|
If the command to tc doesn't work, then reprint to standard out
for diagnostic. Also, fix use of sudo in delete of qdisc.
|
|
But do it in a manner safe from quoting attacks!
|
|
Matching on 'ip' uses the u32 tc filter and other match types 'interface',
'vif' use the basic tc filter. Since kernel doesn't allow mixing filter
types in the same classifier, need to catch and report the problem rather
than failing in the actual commands.
|
|
add preliminary support for dsmark (still needs testing).
allow class 2 (compute default class as n+1)
|
|
This enforces syntax checks on dscp values.
|
|
Add templates for hooks to set-dscp value with dsmark
|
|
Need to reserve:
Class 1 for root class
Class 2 for default class
because dsmark needs to allocate an array and reserving 0x4000
for the default class would cause lots of extra memory wasteage.
|
|
Use proper syntax for incoming interface and outgoing vlan match.
Need to catch u32 vs basic match filter conflicts.
|
|
need to lookup ifindex for interface not vlan tag (duh)
and ip field should be initialized only when ip tag is found.
|
|
The script needs to look up ifindex for the match rule, so this is
a good thing to use for syntax checking
|
|
|
|
1 to 10 was too arbitrary restriction since the kernel allows nothing,
or full u32 value.
|
|
comp_help is displayed via printf so % must be doubled.
Fixes: https://bugzilla.vyatta.com/show_bug.cgi?id=2762
|
|
And add more help text.
|
|
1. checking for name clash shouldn't see self
2. leftover from rate to bandwidth name change
3. leftover debug message.
|
|
Return undefined on bad value, so caller can print message.
|