Open youguys opened 3 weeks ago
Hi :wave:
Sorry, to catch up just now.
Could you please provide a full reproducer for the issue you run into? How do you set up the qdisc parent and which values from this do you pass on in which way to setupUserLimit()
? To setup Htb
as class the fields Ctab
and Rtab
are essential and commented out in your example.
Can the isue be reproduced on a more recent Linux kernel version, that is at least listed on kernel.org?
For further investigation, it would also help to know which version of this package you use in your code.
Describe the issue
I created an HTB type qdisc, established two different classes with different speed configurations, and set up two different filters to match different traffic types, binding them to the corresponding classes. However, they did not take effect.
Expected behavior
tc qdisc add dev wg0 root handle 1: htb default 2 tc class add dev wg0 parent 1: classid 1:2 htb rate 5Mbit ceil 10Mbit tc class add dev wg0 parent 1: classid 1:3 htb rate 1000Mbit ceil 10Mbit tc filter add dev wg0 parent 1: protocol ip prio 1 u32 match ip dst 13.0.0.3/32 flowid 1:2 tc filter add dev wg0 parent 1: protocol ip prio 1 u32 match ip dst 13.0.0.4/32 flowid 1:3
Minimal code example to reproduce the issue
go.mod
main.go
Environment
Provide some information about the system with the issue.