projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unify fw3_default and fw3_target enums
[project/firewall3.git]
/
options.c
diff --git
a/options.c
b/options.c
index 344d33d1fbd8d5a12ec04e8f091367a29addf24e..8effd2a96007a090a1cce324fc8ed417c1c6e37b 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-40,7
+40,7
@@
parse_enum(void *ptr, const char *val, const char **values, int min, int max)
}
}
-const char *fw3_flag_names[
FW3_DEFAULT_DROP_INVALID + 1
] = {
+const char *fw3_flag_names[
__FW3_FLAG_MAX
] = {
"filter",
"nat",
"mangle",
"filter",
"nat",
"mangle",
@@
-132,8
+132,8
@@
fw3_parse_string(void *ptr, const char *val)
bool
fw3_parse_target(void *ptr, const char *val)
{
bool
fw3_parse_target(void *ptr, const char *val)
{
- return parse_enum(ptr, val, &fw3_flag_names[FW3_
TARGET
_ACCEPT],
- FW3_
TARGET_ACCEPT, FW3_TARGET
_SNAT);
+ return parse_enum(ptr, val, &fw3_flag_names[FW3_
FLAG
_ACCEPT],
+ FW3_
FLAG_ACCEPT, FW3_FLAG
_SNAT);
}
bool
}
bool