| 27 | } |
| 28 | |
| 29 | struct node * |
| 30 | node_from_name(const char *name) |
| 31 | { |
| 32 | struct node *node; |
| 33 | |
| 34 | STAILQ_FOREACH(node, &node_list, next) |
| 35 | if (strncmp(node->name, name, RTE_NODE_NAMESIZE) == 0) |
| 36 | return node; |
| 37 | |
| 38 | return NULL; |
| 39 | } |
| 40 | |
| 41 | static bool |
| 42 | node_has_duplicate_entry(const char *name) |
no test coverage detected