From mboxrd@z Thu Jan 1 00:00:00 1970 From: bert hubert ahu@ds9a.nl Date: Mon, 19 Feb 2001 22:30:22 +0000 Subject: [LARTC] How can I create qdisc, class, and filter inside the kernel? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org
On Mon, Feb 19, 2001 at 02:33:36PM -0700, Byung-Gon Chun wrote:
> 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?

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

-- 
http://www.PowerDNS.com      Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet