Lines Matching refs:cls

1273 	ipqos_conf_class_t *cls;  in mark_classes_filters_del()  local
1294 for (cls = action->classes; cls; cls = cls->next) { in mark_classes_filters_del()
1295 if (cls->originator == IPP_CONFIG_PERMANENT) { in mark_classes_filters_del()
1297 cls->name); in mark_classes_filters_del()
1299 cls->modified = B_TRUE; in mark_classes_filters_del()
1302 cls->name); in mark_classes_filters_del()
1304 cls->todel = B_TRUE; in mark_classes_filters_del()
1317 ipqos_conf_class_t *cls; in mark_classes_filters_new() local
1340 for (cls = action->classes; cls; cls = cls->next) { in mark_classes_filters_new()
1341 if (cls->originator == IPP_CONFIG_PERMANENT) { in mark_classes_filters_new()
1343 cls->name); in mark_classes_filters_new()
1345 cls->modified = B_TRUE; in mark_classes_filters_new()
1349 cls->name); in mark_classes_filters_new()
1351 cls->new = B_TRUE; in mark_classes_filters_new()
1490 ipqos_conf_class_t *cls; in diffclasses() local
1498 for (cls = old->classes; cls; cls = cls->next) { in diffclasses()
1500 if (classexist(cls->name, new->classes) == NULL) { in diffclasses()
1504 if (cls->originator == IPP_CONFIG_IPQOSCONF) { in diffclasses()
1506 cls->name); in diffclasses()
1508 cls->todel = B_TRUE; in diffclasses()
1523 } else if (cls->originator == IPP_CONFIG_PERMANENT && in diffclasses()
1524 cls->alist->action && /* not virtual action */ in diffclasses()
1525 cls->alist->action->params->originator == in diffclasses()
1530 res = dup_class(cls, &ncls); in diffclasses()
1548 for (cls = new->classes; cls; cls = cls->next) { in diffclasses()
1552 if ((tmpc = classexist(cls->name, old->classes)) == NULL || in diffclasses()
1556 cls->name); in diffclasses()
1558 cls->new = B_TRUE; in diffclasses()
1565 res = diffclass(tmpc, cls); in diffclasses()
1570 if (cls->modified == B_TRUE) { in diffclasses()
2190 ipqos_conf_class_t *cls; in add_item() local
2207 for (cls = act->classes; cls; cls = cls->next) { in add_item()
2211 if (cls->alist->action) { in add_item()
2212 res = add_item(cls->alist->action, rem_undo); in add_item()
2399 ipqos_conf_class_t *cls; in add_classes() local
2404 for (cls = classes; cls; cls = cls->next) { in add_classes()
2409 if ((rem_undo == B_FALSE && cls->new == B_FALSE) || in add_classes()
2410 (rem_undo == B_TRUE && cls->deleted == B_FALSE)) { in add_classes()
2415 res = add_class(action, cls->name, module_version, in add_classes()
2416 cls->stats_enable, cls->alist->name); in add_classes()
2422 cls->cr_mod = B_TRUE; in add_classes()
2471 ipqos_conf_class_t *cls; in remove_item() local
2549 for (cls = act->classes; cls; cls = cls->next) { in remove_item()
2550 if ((add_undo == B_FALSE && cls->todel == B_TRUE) || in remove_item()
2551 (add_undo == B_TRUE && cls->new == B_TRUE && in remove_item()
2552 cls->cr_mod == B_TRUE)) { in remove_item()
2556 res = remove_class(act->name, cls->name, in remove_item()
2560 "class %s\n", cls->name); in remove_item()
2567 cls->deleted = B_TRUE; in remove_item()
2591 ipqos_conf_class_t *cls; in modify_items() local
2621 for (cls = act->classes; cls; cls = cls->next) { in modify_items()
2622 if (cls->modified) { in modify_items()
2623 res = modify_class(act->name, cls->name, in modify_items()
2624 act->module_version, cls->stats_enable, in modify_items()
2625 cls->alist->name, 0); in modify_items()
2631 cls->cr_mod = B_TRUE; in modify_items()
2671 ipqos_conf_class_t *cls; in undo_modifys() local
2723 for (cls = act->classes; cls; cls = cls->next) { in undo_modifys()
2724 if (cls->modified == B_TRUE && in undo_modifys()
2725 cls->cr_mod == B_TRUE) { in undo_modifys()
2726 oldcls = classexist(cls->name, oldact->classes); in undo_modifys()
2729 cls->name, act->module_version, in undo_modifys()
2761 for (cls = act->classes; cls != NULL; cls = cls->next) { in undo_modifys()
2762 if (cls->originator == IPP_CONFIG_PERMANENT) { in undo_modifys()
2763 res = modify_class(act->name, cls->name, in undo_modifys()
2764 act->module_version, cls->stats_enable, in undo_modifys()
2765 cls->alist->name, 0); in undo_modifys()
3765 ipqos_conf_class_t *cls; in printaction() local
3791 for (cls = action->classes; cls != NULL; cls = cls->next) { in printaction()
3793 cls->originator == IPP_CONFIG_IPQOSCONF || in printaction()
3794 cls->originator == IPP_CONFIG_PERMANENT) { in printaction()
3796 printclass(fp, cls, printall, tab_inserts + 1); in printaction()
6284 ipqos_conf_class_t *cls; in dup_class() local
6288 cls = alloc_class(); in dup_class()
6289 if (cls == NULL) { in dup_class()
6294 *cls = *src; in dup_class()
6297 cls->nvlist = NULL; in dup_class()
6301 cls->alist = NULL; in dup_class()
6302 res = add_aref(&cls->alist, src->alist->field, src->alist->name); in dup_class()
6304 free(cls); in dup_class()
6308 *dst = cls; in dup_class()
6335 free_class(ipqos_conf_class_t *cls) in free_class() argument
6338 if (cls == NULL) in free_class()
6343 nvlist_free(cls->nvlist); in free_class()
6347 if (cls->alist) in free_class()
6348 free_arefs(cls->alist); in free_class()
6351 free(cls); in free_class()
6364 ipqos_conf_class_t *cls; in classexist() local
6368 for (cls = classes; cls; cls = cls->next) { in classexist()
6369 if (strcmp(class_nm, cls->name) == 0) { in classexist()
6374 return (cls); in classexist()
6651 ipqos_conf_class_t *cls, *nc; in free_actions() local
6680 cls = act->classes; in free_actions()
6681 while (cls != NULL) { in free_actions()
6682 nc = cls->next; in free_actions()
6683 free_class(cls); in free_actions()
6684 cls = nc; in free_actions()
7311 int nm, cls, ipv; in readfilter() local
7354 ipv = nm = cls = 0; in readfilter()
7398 if (cls != 0) { in readfilter()
7415 cls++; in readfilter()
7634 if (nm == 0 || cls == 0) { in readfilter()
8225 ipqos_conf_class_t *cls; in validconf() local
8282 for (cls = act->classes; cls; cls = cls->next) { in validconf()
8286 if (userconf && classexist(cls->name, cls->next)) { in validconf()
8289 "action %s.\n"), cls->name, act->name); in validconf()
8297 if (virtual_action(cls->alist->name)) { in validconf()
8305 if ((cls->alist->action = in validconf()
8306 actionexist(cls->alist->name, actions)) == NULL) { in validconf()
8309 "action %s.\n"), cls->name, act->name); in validconf()
8315 dact = cls->alist->action; in validconf()