Автор Тема: tc филтър не иска да match-ва ACK пакети  (Прочетена 1739 пъти)

ivanatora

  • Напреднали
  • *****
  • Публикации: 658
  • Distribution: Ubuntu 10.04
  • Window Manager: Fluxbox
    • Профил
    • WWW
Здравейте,
Опитвам се да направя един прост шейпър и искам да класифицирам ACK пакетите. Примера от LARTC казва следното:
Код:
# tc filter add dev ppp14 parent 1:0 prio 10 u32 \
     match ip protocol 6 0xff \
     match u8 0x10 0xff at nexthdr+13 \
     flowid 1:3
Аз опитвам следното:
Код:
tc filter add dev eth0 protocol ip parent 1: u32 \
match ip protocol 6 0xff \
match u8 0x10 0xff at nexthdr+13 \
classid 1:212
Flowid и classid са едно и също, нали?
Гледам опашките и не виждам нищо, което да попада в клас 1:212:
Код:
# tc -s class show dev eth0                                                                                    
class hfsc 1: root
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 period 0 level 2

class hfsc 1:212 parent 1:21 sc m1 0bit d 0us m2 3000Kbit ul m1 0bit d 0us m2 8000Kbit
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 period 0 level 0

class hfsc 1:211 parent 1:21 sc m1 0bit d 0us m2 3000Kbit ul m1 0bit d 0us m2 8000Kbit
 Sent 6583839 bytes 5738 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 2p requeues 0
 period 3274 work 6580811 bytes rtwork 3542314 bytes level 0

class hfsc 1:30 parent 1: sc m1 10000Kbit d 1.0s m2 1000Kbit ul m1 0bit d 0us m2 1000Kbit
 Sent 7570 bytes 5 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 period 4 work 7570 bytes rtwork 7570 bytes level 0

class hfsc 1:21 parent 1: sc m1 0bit d 0us m2 8000Kbit
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 period 3274 work 6580811 bytes level 1
В същото време отзад съм пуснал Wireshark и виждам че ACK пакети все пак минават, само че не се класифицират.
Кое бъркам?
Активен