Skip to contentSkip to conversation

change TOS explicitly for egress packets on specified network interface

DISCUSSION gshan 1 participant 1 message Sep 18, 2008

lore
Share & tools
lore

gshan

author
#0 lore raw

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