To interpet TOS values, you can create a binary representation. The TOS value is 8-bits wide so we take this into account when building our table. I take this information from
http://www.faqs.org/rfcs/rfc795.htmlThe IP Type of Service has the following fields:
Bits 0-2: Precedence.
Bit 3: 0 = Normal Delay, 1 = Low Delay.
Bits 4: 0 = Normal Throughput, 1 = High Throughput.
Bits 5: 0 = Normal Relibility, 1 = High Relibility.
Bit 6-7: Reserved for Future Use.
Bits 0,1,2 = Priority Control:
111 - Network Control
110 - Internetwork Control
101 - CRITIC/ECP
100 - Flash Override
011 - Flash
010 - Immediate
001 - Priority
000 - Routine
First an example, because we must convert this into decimal form:
Bit #0-2: [128 64 32]
Bit #3: [16]
Bit #4: [8]
Bit #5: [4]
Bit #6-7: [Reserved]
As stated above if we wanted the highest priority (Bits 0-2 set to "1") we would have a TOS value of 224 (128+64+32). If we wanted highest priority with low delay we would have 240 (128+64+32+16).
So there you go you can now set any TOS you like. A TOS value of 90, or 92 is invalid. You need to set your TOS according to the outlined above to set any bits you want.