diff options
author | Eric Leblond <eric@regit.org> | 2013-01-18 19:41:19 +0100 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2013-01-18 19:41:19 +0100 |
commit | a385170fee2e406afe0387f99361eebe7ce2b3c8 (patch) | |
tree | e409aa170132953983063afd29613137da25570e /include/ulogd | |
parent | ec1da580639aa1779bbeb66bb9bcd266c76b5925 (diff) |
conf: add flag to allow option setup tuning
This patch adds a flag to the config_entry structure to be able to
tune setup. First usage is to ask config parser not to update a key
if it has been already set.
Diffstat (limited to 'include/ulogd')
-rw-r--r-- | include/ulogd/conffile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ulogd/conffile.h b/include/ulogd/conffile.h index 7431243..aa35809 100644 --- a/include/ulogd/conffile.h +++ b/include/ulogd/conffile.h @@ -41,11 +41,15 @@ enum { #define CONFIG_OPT_MANDATORY 0x0001 #define CONFIG_OPT_MULTI 0x0002 +/* valid flag part */ +#define CONFIG_FLAG_VAL_PROTECTED (1<<0) + struct config_entry { char key[CONFIG_KEY_LEN]; /* name of config directive */ u_int8_t type; /* type; see above */ u_int8_t options; /* options; see above */ u_int8_t hit; /* found? */ + u_int8_t flag; /* tune setup of option */ union { char string[CONFIG_VAL_STRING_LEN]; int value; |