projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Limit zone names to 14 bytes
[project/firewall3.git]
/
zones.h
diff --git
a/zones.h
b/zones.h
index b78aa32ece58043e02db9c18fe4a1e94a1eaf9c4..dfae81c9d013efe9e306dc7c7dc6e67a076bb128 100644
(file)
--- a/
zones.h
+++ b/
zones.h
@@
-22,6
+22,9
@@
#include "options.h"
#include "iptables.h"
+/* 32 - sizeof("postrouting_") - sizeof("_rule") - sizeof("\0") */
+#define FW3_ZONE_MAXNAMELEN 14
+
extern const struct fw3_option fw3_zone_opts[];
struct fw3_zone * fw3_alloc_zone(void);