On Wed, 30 Oct 2002, James Yonan wrote:
>
> Some caveats that immediately come to mind:
>
> * Since OpenVPN does not assume a particular TUN encoding of IP traffic, this 
> patch requires OpenVPN to assume an offset of the TOS bits.
Well if you end up looking at the ip header by using struct iphdr, you'd
be able to determine the version of IP packet whether it was 4 or 6, then
from there you'd need to use either struct iphdr or struct ipv6hdr,
respectively.  This would be very similiar to the IPv6 detection stuff I
had to do to get ipv6 tunnelling to work with Linux.
 >
> * Does the TOS extract and set on the UDP socket with setsockopt work in all 
> cases, such as when packets are fragmented, dropped, or retransmitted?
TOS is independent of the protocol riding on top of it as it is strictly
done on the IP level.

The thing to consider is, depending on the OS, setting the TOS to certain
levels might require root privledges.

Aaron


Reply via email to