From 53e801be8f225ad40e910b9414a575a7587a36ee Mon Sep 17 00:00:00 2001 From: Christian Deacon Date: Wed, 26 Feb 2025 11:59:18 -0500 Subject: [PATCH] Set verbose to 2 by default. --- README.md | 2 +- src/loader/utils/config.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0283811..f9948f5 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ The following table quickly explains the data types used within the configuratio ### Main | 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. | | 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). | diff --git a/src/loader/utils/config.c b/src/loader/utils/config.c index 83a0ff3..8288bc1 100644 --- a/src/loader/utils/config.c +++ b/src/loader/utils/config.c @@ -44,7 +44,7 @@ int LoadConfig(config__t *cfg, char *cfg_file) */ void SetCfgDefaults(config__t *cfg) { - cfg->verbose = 1; + cfg->verbose = 2; cfg->log_file = strdup("/var/log/xdpfw/xdpfw.log"); cfg->updatetime = 0; cfg->interface = NULL;