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

[altq:1840] Re: Problems with QCMD API



Tiago Fioreze wrote:
> 	I've been using ALTQ in a project. I had success using ALTQ through altqd 
> (ALTQ Daemon), but I'm not having the same results with ALTQ API. I need some 
> help with ALTQ API. I will explain it to you:

[snip]

> 	When I run the program, I got the message: "bad interface: enable failed!". 
> This message is printed by qcmd_enable function.

 - you need to call qcmd_init() first.
 - ALTQ assumes that classes can be dynamically added but does not
   assume interfaces can be added after ALTQ is enabled...

>         Can somebody give me some TIPs how I use the QCMD API?	

The qcmd API was designed to provide a command line interface from the
altqd interactive mode.  The API is not complete in the sense that
most of what you can do with the qcmd API can be done from the command
line.

-Kenjiro