| 993 | } |
| 994 | |
| 995 | struct table_rule * |
| 996 | table_rule_find(struct table *table, |
| 997 | struct table_rule_match *match) |
| 998 | { |
| 999 | struct table_rule *rule; |
| 1000 | |
| 1001 | TAILQ_FOREACH(rule, &table->rules, node) |
| 1002 | if (memcmp(&rule->match, match, sizeof(*match)) == 0) |
| 1003 | return rule; |
| 1004 | |
| 1005 | return NULL; |
| 1006 | } |
| 1007 | |
| 1008 | void |
| 1009 | table_rule_add(struct table *table, |
no outgoing calls
no test coverage detected