All of lore.kernel.org
 help / color / mirror / Atom feed
* HTB bug?
@ 2015-01-05  3:44 I-Strong, Russell J
  2015-01-06  0:34 ` I-Strong, Russell J
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: I-Strong, Russell J @ 2015-01-05  3:44 UTC (permalink / raw)
  To: lartc

I've been experimenting with HTB and have found that it works on a wired Ethernet devices but does not work on wireless devices.
Packets are being correctly classified by the mangle table but are being placed in the default bucket when using wireless.  They
Are placed in the correct bucket when using wired.

The script below shows how to reproduce it.

Any thoughts?  Is this a bug?

Regards,
Russell


#!/bin/bash

# Test command to send EF packets
# ping6 ff02::1%em1 -Q 0xb8

# Test command to send unmarked packets
# ping6 ff02::1%em1

# View packet placement with
# watch tc -s qdisc show dev em1

# Verify ip6tables matching with counters
# watch ip6tables -L -v -n -t mangle

dev=em1
# dev=wlp4s0

tc qdisc add dev ${dev} root handle 1: htb default 12
tc class add dev ${dev} parent 1:  classid 1:1  htb rate 100.0mbit ceil 100.0mbit
tc class add dev ${dev} parent 1:1 classid 1:11 htb rate 40.0mbit ceil 100.0mbit prio 1
tc qdisc add dev ${dev} parent 1:11 handle 111: pfifo limit 1000
tc class add dev ${dev} parent 1:1 classid 1:12 htb rate 40.0mbit ceil 100.0mbit prio 2
tc qdisc add dev ${dev} parent 1:12 handle 112: pfifo limit 1000

ip6tables -t mangle -A POSTROUTING -o ${dev} -m dscp --dscp-class ef -j CLASSIFY --set-class 1:11

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-08  6:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-05  3:44 HTB bug? I-Strong, Russell J
2015-01-06  0:34 ` I-Strong, Russell J
2015-01-06  0:43 ` Anton Danilov
2015-01-06  1:24 ` I-Strong, Russell J
2015-01-06  7:16 ` Kenyon Ralph
2015-01-08  6:00 ` I-Strong, Russell J

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.