Lines Matching refs:av

1025 process_extra_parms(int *ac, char **av, struct dn_extra_parms *ep,
1048 int tok = match_token(aqm_params, *av);
1049 (*ac)--; av++;
1052 if (*ac <= 0 || time_to_us(av[0]) < 0)
1055 ep->par[0] = time_to_us(av[0]);
1056 (*ac)--; av++;
1060 if (*ac <= 0 || time_to_us(av[0]) < 0)
1063 ep->par[1] = time_to_us(av[0]);
1064 (*ac)--; av++;
1077 if (*ac <= 0 || !is_valid_number(av[0]))
1080 ep->par[3]= atoi(av[0]);
1081 (*ac)--; av++;
1087 if (*ac <= 0 || !is_valid_number(av[0]))
1090 ep->par[4] = atoi(av[0]);
1091 (*ac)--; av++;
1097 if (*ac <= 0 || !is_valid_number(av[0]))
1100 ep->par[5] = atoi(av[0]);
1101 (*ac)--; av++;
1105 printf("%s is Invalid parameter\n", av[-1]);
1128 int tok = match_token(aqm_params, *av);
1129 (*ac)--; av++;
1132 if (*ac <= 0 || time_to_us(av[0]) < 0)
1135 ep->par[0] = time_to_us(av[0]);
1136 (*ac)--; av++;
1140 if (*ac <= 0 || time_to_us(av[0]) < 0)
1143 ep->par[1] = time_to_us(av[0]);
1144 (*ac)--; av++;
1148 if (*ac <= 0 || time_to_us(av[0]) < 0)
1151 ep->par[2] = time_to_us(av[0]);
1152 (*ac)--; av++;
1156 if (*ac <= 0 || !is_valid_number(av[0]))
1159 ep->par[3] = atof(av[0]) * PIE_SCALE;
1160 (*ac)--; av++;
1164 if (*ac <= 0 || !is_valid_number(av[0]))
1167 ep->par[4] = atof(av[0]) * PIE_SCALE;
1168 (*ac)--; av++;
1172 if (*ac <= 0 || !is_valid_number(av[0]))
1175 ep->par[5] = atof(av[0]) * PIE_SCALE;
1176 (*ac)--; av++;
1216 if (*ac <= 0 || !is_valid_number(av[0]))
1219 ep->par[7]= atoi(av[0]);
1220 (*ac)--; av++;
1226 if (*ac <= 0 || !is_valid_number(av[0]))
1229 ep->par[8] = atoi(av[0]);
1230 (*ac)--; av++;
1236 if (*ac <= 0 || !is_valid_number(av[0]))
1239 ep->par[9] = atoi(av[0]);
1240 (*ac)--; av++;
1245 printf("%s is invalid parameter\n", av[-1]);
1277 ipfw_config_pipe(int ac, char **av)
1314 av++; ac--;
1316 if (ac && isdigit(**av)) {
1317 i = atoi(*av); av++; ac--;
1408 int tok = match_token(dummynet_params, *av);
1409 ac--; av++;
1420 if ((end = strsep(&av[0], ","))) {
1425 if ((end = strsep(&av[0], ","))) {
1430 if ((end = strsep(&av[0], ","))) {
1435 if ((end = strsep(&av[0], ","))) {
1440 ac--; av++;
1447 fs->qsize = strtoul(av[0], &end, 0);
1455 ac--; av++;
1461 *buckets = strtoul(av[0], NULL, 0);
1462 ac--; av++;
1485 tok = match_token(dummynet_params, *av);
1486 ac--; av++;
1546 ac++; av--; /* backtrack */
1551 if (*av[0] == '/') {
1552 a = strtoul(av[0]+1, &end, 0);
1556 a = strtoul(av[0], &end, 0);
1583 ac--; av++;
1595 strlcpy(aqm_extra->name, av[-1],
1599 process_extra_parms(&ac, av, aqm_extra, tok);
1604 if (!strcmp(av[-1],"type"))
1608 strlcpy(sch_extra->name, av[-1],
1611 process_extra_parms(&ac, av, sch_extra, tok);
1623 if ((end = strsep(&av[0], "/"))) {
1629 if ((end = strsep(&av[0], "/"))) {
1634 if ((end = strsep(&av[0], "/"))) {
1639 if ((end = strsep(&av[0], "/"))) {
1645 ac--; av++;
1660 read_bandwidth(av[0], &p->bandwidth, NULL, 0);
1661 ac--; av++;
1667 p->delay = strtoul(av[0], NULL, 0);
1668 ac--; av++;
1675 l = strlen(av[0]);
1677 errx(1, "type %s too long\n", av[0]);
1678 strlcpy(sch->name, av[0], sizeof(sch->name));
1684 if (!strcasecmp(av[0],"fq_codel") || !strcasecmp(av[0],"fq_pie")){
1685 strlcpy(sch_extra->name, av[0],
1688 process_extra_parms(&ac, av, sch_extra, tok);
1690 ac--;av++;
1693 ac--;av++;
1701 fs->par[0] = strtol(av[0], &end, 0);
1702 ac--; av++;
1708 fs->par[1] = strtol(av[0], &end, 0);
1709 ac--; av++;
1715 fs->par[2] = strtol(av[0], &end, 0);
1716 ac--; av++;
1723 fs->sched_nr = strtoul(av[0], &end, 0);
1724 ac--; av++;
1733 load_extra_delays(av[0], pf, p); //XXX can't fail?
1734 --ac; ++av;
1742 if (expand_number(av[0], &p->burst) < 0)
1749 ac--; av++;
1753 errx(EX_DATAERR, "unrecognised option ``%s''", av[-1]);
1882 parse_range(int ac, char *av[], uint32_t *v, int len)
1893 for (s = *av; s != NULL; av++, ac--) {
1898 s = (ac > 0) ? *(av+1) : NULL;
1908 av--;
1928 * av may contain filtering arguments, either individual entries
1936 dummynet_list(int ac, char *av[], int show_counters)
1946 av++; /* skip 'list' | 'show' word */
1948 n = parse_range(ac, av, NULL, 0); /* Count # of ranges. */
1956 parse_range(ac, av, (uint32_t *)(oid + 1), n*2);