Re: Issue with using using tc api

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you so much for ur response Stephen,

Ya, I found that dlopen tries to load q_htb.so.. and it fails.. 
I tried to locate q_htb.so in my rh9 machiene.. but i couldnt locate it..
Could you let me know how build q_htb.so standalone ??
Thanks in advance,
With best regards,
Sanjeev Ravindran

----- Original Message -----
From: "Stephen Hemminger" <shemminger@xxxxxxxx>
To: "sanjeev ravindran" <sanjeev_ravindran@xxxxxxxxxxxxx>
Subject: Re:  Issue with using using tc api
Date: Wed, 2 Feb 2005 13:28:53 -0800

> 
> On Thu, 03 Feb 2005 00:42:52 +0800
> "sanjeev ravindran" <sanjeev_ravindran@xxxxxxxxxxxxx> wrote:
> 
> > Hi ,
> >
> > I'm trying to call the tc_qdisc_modify function of tc in 
> > iproute2/tc. I could compile it with my stub program and got the 
> > executable. However, when i try to create an htb qdisc i get the 
> > following error : Unknown qdisc "htb", hence option "default" is 
> > unparsable
> >
> > However, if i use the tc tool, it works fine.. When I tried to 
> > understand the problem, it appeared to be failing of dlopen to 
> > load the module.. But when i use tc tool, it loads this module..
> 
> Tc command is hard to understand because it supports using dynamic 
> libraries to add new queue disciplines.
> To find a queue discipline it first looks for q_XXX.so then opens 
> it's own text with dlopen() and finds the
> necessary table hooks.  This kind of dynamic binding is uncommon in 
> C code, but allows for extensibility.
> 
> Normally tc has most queue discipline support (ie q_htb) linked 
> into the command directly, but
> you could build q_htb.so standalone as well.

-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux