Lines Matching defs:old

234 static int diffclasses(ipqos_conf_action_t *old, ipqos_conf_action_t *new);
235 static int difffilters(ipqos_conf_action_t *old, ipqos_conf_action_t *new);
1157 * difference class old against class new. It marks the new class as
1163 ipqos_conf_class_t *old,
1170 if (strcmp(old->alist->name, new->alist->name) != 0) {
1178 if (old->stats_enable != new->stats_enable) {
1189 * difference params set old against params set new of module module_name. It
1195 ipqos_conf_params_t *old,
1206 if (old->stats_enable != new->stats_enable) {
1213 res = diffnvlists(old->nvlist, new->nvlist, module_name, &diff,
1227 * differences filter old against filter new of module module_name. It marks
1233 ipqos_conf_filter_t *old,
1245 if (strcmp(old->class_name, new->class_name) != 0) {
1254 res = diffnvlists(old->nvlist, new->nvlist, module_name, &diff,
1379 * differences the configuration in new against old marking the actions
1385 ipqos_conf_action_t *old,
1395 /* check the new actions against the old */
1399 /* if action not in old mark it and it's contents as new */
1401 if ((tmp = actionexist(act->name, old)) == NULL) {
1409 /* if action in old diff old against new */
1418 * mark actions, and their contents, in old but not new that were
1422 for (act = old; act; act = act->next) {
1436 * differences action old against action new, comparing its classes, filters
1443 ipqos_conf_action_t *old,
1452 res = diffclasses(old, new);
1458 res = difffilters(old, new);
1464 res = diffparams(old->params, new->params, old->module);
1481 * differences the set of classes in new against those in old, marking any
1483 * in the old class appropriately. Also marks the action which has had an
1490 ipqos_conf_action_t *old,
1501 /* loop through old classes checking for classes not present in new */
1503 for (cls = old->classes; cls; cls = cls->next) {
1515 /* mark old action */
1516 old->modified = B_TRUE;
1557 if ((tmpc = classexist(cls->name, old->classes)) == NULL ||
1585 * differences the set of filters in new against those in old, marking any
1587 * in the old filter appropriately. Also marks the action which has had an
1594 ipqos_conf_action_t *old,
1610 if ((tmpf = filterexist(flt->name, -1, old->filters)) == NULL) {
1632 * all old filter instances as todel and all new new.
1640 /* mark old instances for deletion */
1686 /* mark old action */
1687 old->modified = B_TRUE;
1712 for (flt = old->filters; flt; flt = flt->next) {
1717 /* mark all old instances for deletions */
1723 old->modified = B_TRUE; /* mark old action */
1739 * differences the elements of nvlists old and new using the types file
1746 nvlist_t *old,
1781 * it with the old one if present. If the old one isn't present
1787 * If the loop runs its course then the new and old nvlists are
1819 /* compare against old if present */
1821 res = nvlist_lookup_uint32(old, nme, &oifidx);
1826 /* not in old so see if new value is default */
1840 res = nvlist_lookup_byte(old, nme, &oproto);
1854 res = nvlist_lookup_uint16(old, nme, &oport);
1869 res = nvlist_lookup_string(old, nme, &ostr);
1894 /* see if there's an old value and diff it */
1896 res = nvlist_lookup_uint32_array(old, nme,
1918 /* see if there's an old value and diff it */
1919 res = nvlist_lookup_uint32(old, nme, (uint32_t *)&obl);
1938 res = nvlist_lookup_byte(old, nme, (uchar_t *)&ou8);
1955 res = nvlist_lookup_int16(old, nme, &oi16);
1972 res = nvlist_lookup_uint16(old, nme, &oui16);
1994 res = nvlist_lookup_int32(old, nme, &oi32);
2011 res = nvlist_lookup_uint32(old, nme, &oui32);
2028 res = nvlist_lookup_uint32(old, nme, &oeval);
2043 res = nvlist_lookup_byte(old, nme, &oidx);
2053 res = nvlist_lookup_int32_array(old, nme, &oarr,
2081 tmp = old;
2082 old = new;
2746 * Go through the old actions modifying perm filters and classes
6518 /* struct copy old filter to new */
9439 * current configuration, then attempts to apply the oconf (the old
9442 * RETURNS: IPQOS_CONF_ERR if the application of old config fails,
9459 * mark all elements of old config for application.
9464 * attempt to apply old config.
9534 * action before we deleted the old one and because actions
9600 } else { /* old config re-applied */
9628 } else { /* old config re-applied */