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

[altq:1853] Help!



	Hi everybody!

	I have wrote about this topic since last week and I don't have got a answer 
yet. The doubt that I have is the following:

	I have got codified the program below:

		struct flow_filter teste;
       
	        memset(&teste, 0, sizeof(teste));

 	        teste.ff_flow.fi_dst.s_addr= inet_addr("200.18.42.6");
   	        teste.ff_flow.fi_src.s_addr= inet_addr("200.18.42.86");
		teste.ff_flow.fi_family = AF_INET;
	        teste.ff_flow.fi_proto=6;

 	        qcmd_init();

   	        qcmd_cbq_add_if(ifname, bw, is_wrr, eff);

       		// Add the root class.
	        qcmd_cbq_add_class(ifname, "root_class", NULL, NULL, 0, 10000000, 
NULL, NULL, NULL, NULL, NULL, NULL, NULL);

 	        // Add the default class
  	        qcmd_cbq_add_class(ifname, "def_class", "root_class", NULL, 0, 
950000, NULL, NULL, NULL, NULL, NULL, NULL, CBQCLF_DEFCLASS);

    		// Add a http class 
	        // qcmd_cbq_add_class(ifname, "http_class", "def_class", NULL, 0, 
100000, NULL, NULL, NULL, NULL, NULL, NULL, NU
LL);
                qcmd_add_filter(ifname, "http_class", NULL, &teste);

         	qcmd_enable(ifname);

	When I run it, I got the messages:

	ALTQ config file is /etc/altq.conf
	cbq enabled on interface ed0 (mtu:1500)

	For me, these messages indicate a 'normal' execution of my program. And I 
suppose that ALTQ is enabled on interface ed0.  For my surprise, when I type 
the command 'altqstat -n -i ed0', I got:

	altqstat: altq is not attached on ed0!

	I have used a debugger (gdb) to see what's going on, but I haven't find 
nothing 'anormal' in the execution of my program. 

	Could somebody help me, please?

	Thanks in advance!

	Tiago Fioreze