Home | History | Annotate | Download | only in extensions
      1 :PREROUTING,INPUT,FORWARD,OUTPUT,POSTROUTING
      2 *mangle
      3 -j TOS --set-tos 0x1f;=;OK
      4 -j TOS --set-tos 0x1f/0x1f;=;OK
      5 # maximum TOS is 0x1f (5 bits)
      6 # ERROR: should fail: iptables -A PREROUTING -t mangle -j TOS --set-tos 0xff
      7 # -j TOS --set-tos 0xff;;FAIL
      8 -j TOS --set-tos Minimize-Delay;-j TOS --set-tos 0x10;OK
      9 -j TOS --set-tos Maximize-Throughput;-j TOS --set-tos 0x08;OK
     10 -j TOS --set-tos Maximize-Reliability;-j TOS --set-tos 0x04;OK
     11 -j TOS --set-tos Minimize-Cost;-j TOS --set-tos 0x02;OK
     12 -j TOS --set-tos Normal-Service;-j TOS --set-tos 0x00;OK
     13 -j TOS --and-tos 0x12;-j TOS --set-tos 0x00/0xed;OK
     14 -j TOS --or-tos 0x12;-j TOS --set-tos 0x12/0x12;OK
     15 -j TOS --xor-tos 0x12;-j TOS --set-tos 0x12/0x00;OK
     16 -j TOS;;FAIL
     17