Setting TOS via sendmsg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm playing with L2TPNS (http://sourceforge.net/projects/l2tpns) - its
an LNS done in software. Its approach is to receive packets via a tun
device, encapsulate them in userland and then push them onto a LAC
using sendto.

I need to copy the TOS from the packets it receives into the header of
the encapsulated packet, but I can't see any way of doing that (short
of calling setsockopt for every packet).

So my thought was to change the kernel so that you can pass in IP_TOS
to sendmsg to specify a per-packet TOS.

Does this sound like the right way to approach it?

-- 
Alex Kiernan
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux