Commit a5a6f1e8 authored by osdl.net!shemminger's avatar osdl.net!shemminger

more ifdef excession.

(Logical change 1.158)
parent 587aea5e
......@@ -165,10 +165,6 @@ static int gred_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct n
fprintf(stderr, "GRED: only %d DPs are currently supported\n",MAX_DPs);
return -1;
}
#if 0
return -1;
}
#endif
ok++;
} else if (strcmp(*argv, "burst") == 0) {
NEXT_ARG();
......@@ -274,27 +270,13 @@ static int gred_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if (tb[TCA_GRED_PARMS] == NULL)
return -1;
#if 0
sopt = RTA_DATA(tb[TCA_GRED_DPS]);
if (RTA_PAYLOAD(tb[TCA_GRED_DPS]) < sizeof(*sopt)) {
printf("\n GRED DPs message smaller than expected\n");
return -1;
}
DPRINTF(f, "\n\tDPs:%d Default DP %d\n ",
sopt->DPs, sopt->def_DP);
#endif
qopt = RTA_DATA(tb[TCA_GRED_PARMS]);
if (RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) {
fprintf(f,"\n GRED received message smaller than expected\n");
return -1;
}
#if 0
for (i=0;i<sopt->DPs;i++)
#endif
/* Bad hack! should really return a proper message as shown above*/
for (i=0;i<MAX_DPs;i++, qopt++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment