Skip to contentSkip to conversation

ftos patch

DISCUSSION Alaios 1 participant 1 message Jan 28, 2005

lore
Share & tools
lore

Alaios

author
#0 lore raw

Hi i want to know in advance if the followin patch would allow me to set whatever tos field i want or f.e 0x28
0x40
0x48
0x52
0x30
etc
Thx

4.1 ftos patch

This patch by Matthew G. Marsh <[email protected]> adds a new target that allows you to set the TOS of packets to an arbitrary value.

For example, if you want to set the TOS of all the outgoing packets to be 15, you can do as follows :

# iptables -t mangle -A OUTPUT -j FTOS --set-ftos 15
# iptables -t mangle --list
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination  

FTOS all -- anywhere anywhere

     TOS set 0x0f 

Supported options for the FTOS target are :

--set-ftos value

-> Set TOS field in packet header to value. This value can be in decimal (ex: 32) or in hex (ex: 0x20)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com