public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* change TOS explicitly for egress packets on specified network interface
@ 2008-09-18  5:41 gshan
  0 siblings, 0 replies; 2+ messages in thread
From: gshan @ 2008-09-18  5:41 UTC (permalink / raw)
  To: linux-kernel

Hi All,

I want to control TOS for egress packets of specified network interface, 
so I introduced "unsigned long tos" to
struct net_device::priv and it could be set through ioctl interface of 
ethernet driver.

But I don't know where to change TOS for egress packets because:
1) It seems TOS is used for route select now;
2) struct inet_sock has already included one "tos" field inside and it 
couldn't be set inside ethernet driver;

Thanks,
Gavin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: change TOS explicitly for egress packets on specified network interface
       [not found] <bdkyY-4ZN-13@gated-at.bofh.it>
@ 2008-09-18 11:37 ` Bodo Eggert
  0 siblings, 0 replies; 2+ messages in thread
From: Bodo Eggert @ 2008-09-18 11:37 UTC (permalink / raw)
  To: gshan, linux-kernel

gshan <gshan@alcatel-lucent.com> wrote:

> Hi All,
> 
> I want to control TOS for egress packets of specified network interface,
> so I introduced "unsigned long tos" to
> struct net_device::priv and it could be set through ioctl interface of
> ethernet driver.

http://www.linuxtopia.org/Linux_Firewall_iptables/x4737.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-18 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-18  5:41 change TOS explicitly for egress packets on specified network interface gshan
     [not found] <bdkyY-4ZN-13@gated-at.bofh.it>
2008-09-18 11:37 ` Bodo Eggert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox