Skip to contentSkip to conversation

How can I create qdisc, class, and filter inside the kernel?

LARTC Byung-Gon Chun [email protected] 2 participants 3 messages Feb 19, 2001

lore
Share & tools
lore

Byung-Gon Chun [email protected]

author
#0 lore raw

<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>

author
#1 lore raw

<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

&gt;<i>From: bert hubert &lt;<A HREF="mailto:[email protected]">[email protected]</A>&gt; </I>&gt;<i>To: Byung-Gon Chun &lt;<A HREF="mailto:[email protected]">[email protected]</A>&gt; </I>&gt;<i>CC: <A HREF="mailto:[email protected]">[email protected]</A> </I>&gt;<i>Subject: Re: [LARTC] How can I create qdisc, class, and filter inside the </I>&gt;<i>kernel?
</I>&gt;<i>Date: Mon, 19 Feb 2001 23:30:22 +0100
</I>&gt;<i>
</I>&gt;<i>On Mon, Feb 19, 2001 at 02:33:36PM -0700, Byung-Gon Chun wrote:
</I>&gt;<i> &gt; Hi,
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; I am writing a kernel module which works with netfilter.
</I>&gt;<i> &gt; If a certain condition matches,
</I>&gt;<i> &gt; I want to create a qdisc, a class and a filter inside
</I>&gt;<i> &gt; the kernel module.
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; How can I create qdisc, class, and filter inside the kernel? </I>&gt;<i>
</I>&gt;<i>The more knowledgeable people are on the netdev list hosted by SGI. </I>&gt;<i>However,
</I>&gt;<i>$TOPDIR/net/sched/sch_prio.c is a good sample. The hard part appears to be </I>&gt;<i>the integration with the 'tc' tool.
</I>&gt;<i>
</I>&gt;<i>Regards,
</I>&gt;<i>
</I>&gt;<i>bert hubert
</I>&gt;<i>
</I>&gt;<i>--
</I>&gt;<i><A HREF="http://www.PowerDNS.com">http://www.PowerDNS.com</A> Versatile DNS Services
</I>&gt;<i>Trilab The Technology People
</I>&gt;<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>

#2 lore raw
In reply to Byung-Gon Chun [email protected]

<PRE>On Mon, Feb 19, 2001 at 02:33:36PM -0700, Byung-Gon Chun wrote:
&gt;<i> Hi,
</I>&gt;<i>
</I>&gt;<i> I am writing a kernel module which works with netfilter. </I>&gt;<i> If a certain condition matches,
</I>&gt;<i> I want to create a qdisc, a class and a filter inside </I>&gt;<i> the kernel module.
</I>&gt;<i>
</I>&gt;<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>