Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Set TOS for outgoing packages: (2 Items)
   
Set TOS for outgoing packages  
Hey,

I want to change the TOS values of all outgoing TCP packages. I tried to do that with the package filter pf. In the pf 
versions of other operating systems like openBSD is a possibility to set the TOS. This option is not in the pf version 
of QNX. I am using QNX Neutrino 7.0.0. 

Are there another possibilities to change the TOS value for all outgoing TCP packages? 

I know its possible to create a RAW socket to create the IP header manually, but then its necessary to implement the 
whole handshake procedure themselves. This is an effort we want to prevent for our project. 
Re: Set TOS for outgoing packages  
Hi,

You need to get the latest io-pkt, libsocket.so, lsm-pf-v4.so (or lsm-pf-v6.so), pfctl. With the latest version, you can
 set tos using the following PF scrub rule:
scrub out on <interface> all set-tos <your_tos>