TOS problems

Hans Lohmander hans.lohmander@ei.sigma.se
Thu, 11 Oct 2001 16:44:50 +0200


Hi,
have problems with the TOS target in the mangle table.

None of the below work:
$iptables -t mangle -A mangle_output -p tcp --dport 20 -j TOS --set-tos 8
$iptables -t mangle -A mangle_output -p tcp --dport 20 -j TOS --set-tos 0x08

iptables error is: iptables v1.2.3: Bad TOS value `0x08' 

The result of a iptables-save is as the second line of the above:
[0:0] -A mangle_output -p tcp -m tcp --dport 20 -j TOS --set-tos 0x08

iptables-restore report the same error as iptables:
iptables-restore v1.2.3: Bad TOS value `0x08'

The only option that work is:
$iptables -t mangle -A mangle_output -p tcp --dport 20 -j TOS --set-tos Maximize-Throughput 

Kernel 2.4.10
RedHat 7.1
Iptables 1.2.3

I have not seen any reply on this on the list previously, but may have missed it.
Is this a conflict or maybe a bug?
Please advice

Regards
    Hans