kern/165305: Feature parity between IP_TOS and IPV6_TCLASS
marka at isc.org
Mon Feb 20 01:20:10 UTC 2012
>Synopsis: Feature parity between IP_TOS and IPV6_TCLASS
>Arrival-Date: Mon Feb 20 01:20:10 UTC 2012
>Originator: Mark Andrews
>Release: FreeBSD 8.2-STABLE i386
System: FreeBSD sex.dv.isc.org 8.2-STABLE FreeBSD 8.2-STABLE #15: Thu Dec 29 08:21:01 EST 2011 marka at sex.dv.isc.org:/usr/obj/usr/src/sys/DEBUG i386
IPV6_TCLASS can be set on both a socket basis and on a per
packet basis. Additionally IPV6_TCLASS can be received via
a control message by setting IPV6_RECVTCLASS on the socket.
IP_TOS can only be set socket basis with no per packet
control which makes it setting different the TOS in UDP
replies difficult (i.e. require raw sockets to be used).
Additionally the only way to obtain the IP_TOS field is to
use raw sockets or use a packet filter.
Extend control_msg to support setting IP_TOS on a per packet
Add a new setsockopt (IP_RECVTOS to be consistent with
linux's extension to the socket API) and return the value
via a control_msg.
More information about the freebsd-bugs