[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
regarding "tc"
Hi,q_
I am trying to get statistics from "tc". for doing so, i am
using kernel-2.2.10 and iproute2-2.2.4-now-ss990630.tar as per given in ds
README.
I also patched the kernel using kernel.patch which is given in ds
README.
But when i compile iproute2-2.2.4-now-ss990630.tar in iproute2
directory, it gives some errors. I also set option linux-diffserv to "y".
These errors occurs with respect to the q_dsmark.c file.
These errors are like this.
---------------------------------------------------------------
q_dsmark.c: In function `dsmark_parse_opt':
q_dsmark.c:75: `TCA_DSMARK_INDICES' undeclared (first use in this function)
q_dsmark.c:75: (Each undeclared identifier is reported only once
q_dsmark.c:75: for each function it appears in.)
q_dsmark.c:76: `TCA_DSMARK_DEFAULT_INDEX' undeclared (first use in this function)
q_dsmark.c:77: `TCA_DSMARK_SET_TC_INDEX' undeclared (first use in this function)
q_dsmark.c: In function `dsmark_parse_class_opt':
q_dsmark.c:106: `TCA_DSMARK_MASK' undeclared (first use in this function)
q_dsmark.c:115: `TCA_DSMARK_VALUE' undeclared (first use in this function)
q_dsmark.c: In function `dsmark_print_opt':
q_dsmark.c:132: `TCA_DSMARK_MAX' undeclared (first use in this function)
q_dsmark.c:132: size of array `tb' has non-integer type
q_dsmark.c:137: `TCA_DSMARK_MASK' undeclared (first use in this function)
q_dsmark.c:137: warning: suggest explicit braces to avoid ambiguous `else'
q_dsmark.c:142: `TCA_DSMARK_VALUE' undeclared (first use in this function)
q_dsmark.c:142: warning: suggest explicit braces to avoid ambiguous `else'
q_dsmark.c:147: `TCA_DSMARK_INDICES' undeclared (first use in this function)
q_dsmark.c:147: warning: suggest explicit braces to avoid ambiguous `else'
q_dsmark.c:152: `TCA_DSMARK_DEFAULT_INDEX' undeclared (first use in this function)
q_dsmark.c:152: warning: suggest explicit braces to avoid ambiguous `else' q_dsmark.c:157: `TCA_DSMARK_SET_TC_INDEX' undeclared (first use in this function)
make[1]: *** [q_dsmark.o] Error 1
make[1]: Leaving directory `/home/somy/iproute2/tc'
make: *** [all] Error 2
---------------------------------------------------------------------------
so is it seems that kernel2.2.10 does not supporting this? or should I
have
to use another version to get the tc executabe so that i could get the
statistics?
so can anybody help me out please.
with regards,
someshwar
ME CSE
IISc, Bangalore - 560 012.
/===============================================================\
| S O M E S H W A R R. P A R A T E |
|---------------------------------------------------------------|
| Contact Address: | Permanant Address: |
| D - 8, Student's Hostel, | s/o. Mr. R. D. Parate, |
| Indian Institute of Science, | SAMUDRAPUR - 442 305, |
| BANGALORE - 560 012(India) | Distt - Wardha. |
| Phone : +91-80-3092452 | Maharashtra(India). |
| E-mail: sm@csa.iisc.ernet.in | Phone : +91-7151-25503. |
|---------------------------------------------------------------|
| Other E-mails: |
| somesh_75@yahoo.com |
| srparate@nagar.com |
\===============================================================/