Skip to contentSkip to conversation

Access to TC from linux kernel

LARTC lists brk 2 participants 2 messages Nov 18, 2002 – Nov 19, 2002

lore
Share & tools
lore

lists brk

author
#0 lore raw

Hi!,

I am a newbie to LARTC. I have a linux kernel module which inspects packets and marks the packets using Netfilter.

I am aware that I can implement traffic shaping on the marked packets using tc from the user land.

I would like to know if I can perform traffic shaping on the marked packets from within the linux kernel. Did anyone do something similar to this before?

Thank You,
BRK

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 6 lines · lists brk

Hi!,

I am a newbie to LARTC. I have a linux kernel module which inspects packets and marks the packets using Netfilter.

Quoted 6 lines

I am aware that I can implement traffic shaping on the marked packets using tc from the user land.

I would like to know if I can perform traffic shaping on the marked packets from within the linux kernel. Did anyone do something similar to this before?

You need the fw filter. This filter can match packets based on the kernel mark.

tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 10:1 This filter will match all packets with mark 1 and put them in class 10:1

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/