On a related note, I work with some equipment that uses TOS values and some that uses DSCP.
When you see a TOS value in tcpdump (0x68 for instance) just divide by 4 to get the DSCP (and throw away any remainder.) The DSCP value uses the same field in the IP packet as TOS, but ignores the last bits. So, DSCP to TOS is simply multiply by 4 (and convert to hex) David Newman [EMAIL PROTECTED] wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I'm setting up ALTQ and hfsc to prioritize VoIP traffic. The pf.conf(5) > says pf uses TOS values to assign packets to queues. > > Question: Can OpenBSD and/or pf itself set TOS and/or DSCP values? > > Only some of my VoIP gear does DSCP marking. > > Also, I noticed today that Google marks all their stuff with a DSCP of > 0x38 (high throughput, low delay). Nice trick, but also an excellent > argument for re-marking capability in all routers. > > Is marking/re-marking supported, and if so how? > > thanks > > dn > iD8DBQFGyz4ayPxGVjntI4IRAi/MAJ9Fhs3Di2+XyN4B16pct0W9PqafawCg7jvT > fPyu9fhGY+5DcWgTJiy60tQ= > =j+kp > -----END PGP SIGNATURE----- -- "I'm a conservative liberal - and not afraid of calling myself one either. Both parties can take their anti-constitutional activity and shove it up my fat american ass." - Be More Social (kuro5hin.org troll)