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

[altq:1834] Doubts about QOP API



	Hi all!

	I have used the qop api, more specifically the QCMD API, for test. I have 
some doubts about the qcmd api . 
	I did the program below:

int main(int argc, char *argv[])
{
        char ifname[] = "ed0";
        int valor;
        l_debug = 6;

        valor = qcmd_init();

	if (valor != 0)
	   printf("Erro\n");
	else
	   printf("OK\n");

	return 0;
}

	My altq.conf file:

#
interface ed0 bandwidth 0.1M priq
#
class priq ed0 high_class NULL priority 15
class priq ed0 def_class NULL priority 0 default
filter ed0 high_class 0 0 0 0 1
	
	When I run my program, I got the following messages:

ariane# ./my_program
ALTQ config file is /etc/altq.conf
tbr installed on ed0 (rate:0.10M  size:1.46K)
priq enabled on interface ed0 (mtu:1500)
ariane#

	Why don't I get the message below? 
ed0: add a filter (null) to class high_class
Filter Dest Addr: 0.0.0.0 (mask 0xffffffff) Port: 0
        Src Addr: 0.0.0.0 (mask 0xffffffff) Port: 0
        Protocol: 1 TOS 0 (mask 0)

	This message is showed when I run the altq daemon (altqd -v). The problem 
isn't the fact of I don't get the message, but for the fact of the filter 
hasn't been added to class high_class. What am I doing wrong?

	I have other doubt. Is there a way to use 'altqstat' when altqd is not 
running?

	Thanks in advance,

	Tiago Fioreze