How can I create qdisc, class, and filter inside the kernel?
Byung-Gon Chun [email protected]
<PRE>Hi,
I am writing a kernel module which works with netfilter. If a certain condition matches,
I want to create a qdisc, a class and a filter inside the kernel module.
How can I create qdisc, class, and filter inside the kernel?
Thanks,
Byung-Gon Chun
_________________________________________________________________
Get your FREE download of MSN Explorer at <A HREF="http://explorer.msn.com">http://explorer.msn.com</A>
</PRE>
Byung-Gon Chun [email protected]
<PRE>Thanks for the information!
I want to rephrase my question.
If a certain condition matches, I want to add a qdisc, a class and a filter inside the kernel module (I do not use tc program in the userspace).
How can I do this?
Thanks,
Byung-Gon Chun
><i>From: bert hubert <<A HREF="mailto:[email protected]">[email protected]</A>> </I>><i>To: Byung-Gon Chun <<A HREF="mailto:[email protected]">[email protected]</A>> </I>><i>CC: <A HREF="mailto:[email protected]">[email protected]</A> </I>><i>Subject: Re: [LARTC] How can I create qdisc, class, and filter inside the </I>><i>kernel?
</I>><i>Date: Mon, 19 Feb 2001 23:30:22 +0100
</I>><i>
</I>><i>On Mon, Feb 19, 2001 at 02:33:36PM -0700, Byung-Gon Chun wrote:
</I>><i> > Hi,
</I>><i> >
</I>><i> > I am writing a kernel module which works with netfilter.
</I>><i> > If a certain condition matches,
</I>><i> > I want to create a qdisc, a class and a filter inside
</I>><i> > the kernel module.
</I>><i> >
</I>><i> > How can I create qdisc, class, and filter inside the kernel? </I>><i>
</I>><i>The more knowledgeable people are on the netdev list hosted by SGI. </I>><i>However,
</I>><i>$TOPDIR/net/sched/sch_prio.c is a good sample. The hard part appears to be </I>><i>the integration with the 'tc' tool.
</I>><i>
</I>><i>Regards,
</I>><i>
</I>><i>bert hubert
</I>><i>
</I>><i>--
</I>><i><A HREF="http://www.PowerDNS.com">http://www.PowerDNS.com</A> Versatile DNS Services
</I>><i>Trilab The Technology People
</I>><i>'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
</I>
_________________________________________________________________
Get your FREE download of MSN Explorer at <A HREF="http://explorer.msn.com">http://explorer.msn.com</A>
</PRE>
bert hubert [email protected]
<PRE>On Mon, Feb 19, 2001 at 02:33:36PM -0700, Byung-Gon Chun wrote:
><i> Hi,
</I>><i>
</I>><i> I am writing a kernel module which works with netfilter. </I>><i> If a certain condition matches,
</I>><i> I want to create a qdisc, a class and a filter inside </I>><i> the kernel module.
</I>><i>
</I>><i> How can I create qdisc, class, and filter inside the kernel? </I>
The more knowledgeable people are on the netdev list hosted by SGI. However, $TOPDIR/net/sched/sch_prio.c is a good sample. The hard part appears to be the integration with the 'tc' tool.
Regards,
bert hubert
Signature · 6 lines
<A HREF="http://www.PowerDNS.com">http://www.PowerDNS.com</A> Versatile DNS Services Trilab The Technology People 'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet </PRE>