Lines Matching defs:rule
4255 "pipeline <pipeline_name> table <table_id> rule add\n"
4288 if (strcmp(tokens[4], "rule") != 0) {
4289 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
4337 "pipeline <pipeline_name> table <table_id> rule add\n"
4375 if (strcmp(tokens[4], "rule") != 0) {
4376 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
4468 "pipeline <pipeline_name> table <table_id> rule add bulk <file_name>\n"
4510 if (strcmp(tokens[4], "rule") != 0) {
4511 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
4558 "pipeline <pipeline_name> table <table_id> rule delete\n"
4589 if (strcmp(tokens[4], "rule") != 0) {
4590 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
4627 "pipeline <pipeline_name> table <table_id> rule delete\n"
4658 if (strcmp(tokens[4], "rule") != 0) {
4659 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
4726 struct table_rule *rule;
4748 TAILQ_FOREACH(rule, &table->rules, node) {
4749 struct table_rule_match *m = &rule->match;
4750 struct table_rule_action *a = &rule->action;
5000 /* Write table default rule to file. */
5035 "pipeline <pipeline_name> table <table_id> rule show\n"
5065 if (strcmp(tokens[4], "rule") != 0) {
5066 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
5090 "pipeline <pipeline_name> table <table_id> rule read stats [clear]\n"
5122 if (strcmp(tokens[4], "rule") != 0) {
5123 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
5170 /* Read table rule stats. */
5414 "pipeline <pipeline_name> table <table_id> rule read meter [clear]\n"
5446 if (strcmp(tokens[4], "rule") != 0) {
5447 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
5494 /* Read table rule meter stats. */
5660 "pipeline <pipeline_name> table <table_id> rule read ttl [clear]\n"
5692 if (strcmp(tokens[4], "rule") != 0) {
5693 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
5740 /* Read table rule TTL stats. */
5757 "pipeline <pipeline_name> table <table_id> rule read time\n"
5789 if (strcmp(tokens[4], "rule") != 0) {
5790 snprintf(out, out_size, MSG_ARG_NOT_FOUND, "rule");
5829 /* Read table rule timestamp. */
5960 "\tpipeline table rule add\n"
5961 "\tpipeline table rule add default\n"
5962 "\tpipeline table rule add bulk\n"
5963 "\tpipeline table rule delete\n"
5964 "\tpipeline table rule delete default\n"
5965 "\tpipeline table rule show\n"
5966 "\tpipeline table rule stats read\n"
5969 "\tpipeline table rule meter read\n"
5971 "\tpipeline table rule ttl read\n"
5972 "\tpipeline table rule time read\n"
6133 (strcmp(tokens[2], "rule") == 0) &&
6141 (strcmp(tokens[2], "rule") == 0) &&
6150 (strcmp(tokens[2], "rule") == 0) &&
6159 (strcmp(tokens[2], "rule") == 0) &&
6167 (strcmp(tokens[2], "rule") == 0) &&
6176 (strcmp(tokens[2], "rule") == 0) &&
6184 (strcmp(tokens[2], "rule") == 0) &&
6211 (strcmp(tokens[2], "rule") == 0) &&
6220 (strcmp(tokens[2], "rule") == 0) &&
6229 (strcmp(tokens[2], "rule") == 0) &&
6440 (strcmp(tokens[4], "rule") == 0) &&
6457 (strcmp(tokens[4], "rule") == 0) &&
6467 (strcmp(tokens[4], "rule") == 0) &&
6484 (strcmp(tokens[4], "rule") == 0) &&
6493 (strcmp(tokens[4], "rule") == 0) &&
6523 (strcmp(tokens[4], "rule") == 0) &&
6541 (strcmp(tokens[4], "rule") == 0) &&
6551 (strcmp(tokens[4], "rule") == 0) &&
6686 struct table_rule *rule = NULL;
6711 rule = calloc(1, sizeof(struct table_rule));
6712 if (rule == NULL) {
6717 TAILQ_INSERT_TAIL(list, rule, node);
6724 &rule->match);
6736 &rule->action);
6749 /* Increment rule count */
6776 struct table_rule *rule;
6778 rule = TAILQ_FIRST(list);
6779 if (rule == NULL)
6782 TAILQ_REMOVE(list, rule, node);
6783 free(rule);