| 3021 | } |
| 3022 | |
| 3023 | static int |
| 3024 | eaction_check_name(const char *name) |
| 3025 | { |
| 3026 | |
| 3027 | if (ipfw_check_object_name(name) != 0) |
| 3028 | return (EINVAL); |
| 3029 | /* Restrict some 'special' names */ |
| 3030 | if (match_token(rule_actions, name) != -1 && |
| 3031 | match_token(rule_action_params, name) != -1) |
| 3032 | return (EINVAL); |
| 3033 | return (0); |
| 3034 | } |
| 3035 | |
| 3036 | static uint16_t |
| 3037 | pack_object(struct tidx *tstate, const char *name, int otype) |
no test coverage detected