Skip to contentSkip to conversation

how to set precedence in TOS

DISCUSSION urgrue 2 participants 2 messages Aug 27, 2002

lore
Share & tools
lore

urgrue

author
#0 lore raw

how can one manipulate the precedence bits in TOS (using iptables/kernel 2.4.18)?
nothing on it in any docs...but it sounds like it might solve my priorization problems...

#1 lore raw

Taken from the iptables man page:

TOS
This is used to set the 8-bit Type of Service field in the IP header. It is
only valid in the mangle table.

--set-tos tos
You can use a numeric TOS values, or use
iptables -j TOS -h
to see the list of valid TOS names.

TOS target v1.2.3 options:
--set-tos value Set Type of Service field to one of the

                                following numeric or descriptive values:
                                     Minimize-Delay 16 (0x10)
                                     Maximize-Throughput 8 (0x08)
                                     Maximize-Reliability 4 (0x04)
                                     Minimize-Cost 2 (0x02)
                                     Normal-Service 0 (0x00)

So, iptables -t mangle -j TOS --set-tos Maximize-Throughput

Quoted 8 lines · urgrue

how can one manipulate the precedence bits in TOS (using iptables/kernel 2.4.18)?
nothing on it in any docs...but it sounds like it might solve my priorization problems...
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

---end quoted text---

Signature · 4 lines
|       Richard Nairn          Specializing in Linux
|     Nairn Consulting         Web / Database Solutions
|        Calgary, AB           
| [email protected]