Re: tc and priority

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Fabio,

2009/5/22 Fabio Marcone <fabio.marcone@xxxxxxx>:
> Hi,
>>>
>>> That's warmer :)
>>> Try the next:
>>> tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip
>>> protocol 6 0xFF ip sport 80 0xFFFF flowid 1:1
>>> tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match ip
>>> protocol 6 0xFF ip sport 81 0xFFFF flowid 1:3
>>> tc filter add dev eth0 protocol ip parent 1: prio 3 u32 match u8 0 0
>>> flowid 1:2
>>>
>>>
>
> I try to use use it but I get this error:
> What is "ip"?
> Usage: ...
>
> What's wrong?
>
> Very thanks,
> Fabio

Sorry, there was my error.
The correct version:
tc filter add dev eth0 protocol ip parent 1: prio 1 u32 classid 1:1
match ip protocol 6 0xFF match ip sport 80 0xFFFF
tc filter add dev eth0 protocol ip parent 1: prio 2 u32 classid 1:3
match ip protocol 6 0xFF ip sport 81 0xFFFF
tc filter add dev eth0 protocol ip parent 1: prio 3 u32 match u8 0 0 flowid 1:2


-- 
Best regards
Anatoly Muliarski
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux