Set verbose to 2 by default.
This commit is contained in:
@@ -118,7 +118,7 @@ The following table quickly explains the data types used within the configuratio
|
|||||||
### Main
|
### Main
|
||||||
| Name | Type | Default | Description |
|
| Name | Type | Default | Description |
|
||||||
| ---- | ---- | ------- | ----------- |
|
| ---- | ---- | ------- | ----------- |
|
||||||
| verbose | int | `1` | The verbose level for logging (0 - 5 supported so far). |
|
| verbose | int | `2` | The verbose level for logging (0 - 5 supported so far). |
|
||||||
| log_file | string | `/var/log/xdpfw/xdpfw.log` | The log file location. If the string is empty (`""`), the log file is disabled. |
|
| log_file | string | `/var/log/xdpfw/xdpfw.log` | The log file location. If the string is empty (`""`), the log file is disabled. |
|
||||||
| interface | string | `NULL` | The network interface name to attach the XDP program to (usually retrieved with `ip a` or `ifconfig`). |
|
| interface | string | `NULL` | The network interface name to attach the XDP program to (usually retrieved with `ip a` or `ifconfig`). |
|
||||||
| update_time | uint | `0` | How often to update the config and filtering rules from the file system in seconds (0 disables). |
|
| update_time | uint | `0` | How often to update the config and filtering rules from the file system in seconds (0 disables). |
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ int LoadConfig(config__t *cfg, char *cfg_file)
|
|||||||
*/
|
*/
|
||||||
void SetCfgDefaults(config__t *cfg)
|
void SetCfgDefaults(config__t *cfg)
|
||||||
{
|
{
|
||||||
cfg->verbose = 1;
|
cfg->verbose = 2;
|
||||||
cfg->log_file = strdup("/var/log/xdpfw/xdpfw.log");
|
cfg->log_file = strdup("/var/log/xdpfw/xdpfw.log");
|
||||||
cfg->updatetime = 0;
|
cfg->updatetime = 0;
|
||||||
cfg->interface = NULL;
|
cfg->interface = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user