From 57faafc8f8597f62d5edb5529349a565d7d2e865 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Fri, 22 Dec 2023 17:22:20 -0600 Subject: firewall: T5834: Improve log message and simplify log-option include `include/firewall/rule-log-options.xml.i` is now more aptly renamed to `include/firewall/log-options.xml.i`. (cherry picked from commit 53a48f499ae9bcc2f657136bb7779b38aad1c242) --- .../include/firewall/common-rule-bridge.xml.i | 4 +- .../include/firewall/common-rule-inet.xml.i | 2 +- .../include/firewall/common-rule-ipv4-raw.xml.i | 2 +- .../include/firewall/log-options.xml.i | 89 ++++++++++++++++++++++ interface-definitions/include/firewall/log.xml.i | 2 +- .../include/firewall/rule-log-options.xml.i | 89 ---------------------- 6 files changed, 94 insertions(+), 94 deletions(-) create mode 100644 interface-definitions/include/firewall/log-options.xml.i delete mode 100644 interface-definitions/include/firewall/rule-log-options.xml.i diff --git a/interface-definitions/include/firewall/common-rule-bridge.xml.i b/interface-definitions/include/firewall/common-rule-bridge.xml.i index ebf95a111..dcdd970ac 100644 --- a/interface-definitions/include/firewall/common-rule-bridge.xml.i +++ b/interface-definitions/include/firewall/common-rule-bridge.xml.i @@ -19,7 +19,7 @@ #include -#include +#include Source parameters @@ -31,4 +31,4 @@ #include #include #include - \ No newline at end of file + diff --git a/interface-definitions/include/firewall/common-rule-inet.xml.i b/interface-definitions/include/firewall/common-rule-inet.xml.i index 030adfe7c..3b5cb724d 100644 --- a/interface-definitions/include/firewall/common-rule-inet.xml.i +++ b/interface-definitions/include/firewall/common-rule-inet.xml.i @@ -78,7 +78,7 @@ #include -#include +#include Connection status diff --git a/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i b/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i index a1071a09a..b253ee048 100644 --- a/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i +++ b/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i @@ -144,7 +144,7 @@ -#include +#include Connection status diff --git a/interface-definitions/include/firewall/log-options.xml.i b/interface-definitions/include/firewall/log-options.xml.i new file mode 100644 index 000000000..e8b0cdec3 --- /dev/null +++ b/interface-definitions/include/firewall/log-options.xml.i @@ -0,0 +1,89 @@ + + + + Log options + + + + + Set log group + + u32:0-65535 + Log group to send messages to + + + + + + + + + Length of packet payload to include in netlink message + + u32:0-9000 + Length of packet payload to include in netlink message + + + + + + + + + Number of packets to queue inside the kernel before sending them to userspace + + u32:0-65535 + Number of packets to queue inside the kernel before sending them to userspace + + + + + + + + + Set log-level + + emerg alert crit err warn notice info debug + + + emerg + Emerg log level + + + alert + Alert log level + + + crit + Critical log level + + + err + Error log level + + + warn + Warning log level + + + notice + Notice log level + + + info + Info log level + + + debug + Debug log level + + + (emerg|alert|crit|err|warn|notice|info|debug) + + level must be alert, crit, debug, emerg, err, info, notice or warn + + + + + \ No newline at end of file diff --git a/interface-definitions/include/firewall/log.xml.i b/interface-definitions/include/firewall/log.xml.i index 8f3fae1be..795ed77be 100644 --- a/interface-definitions/include/firewall/log.xml.i +++ b/interface-definitions/include/firewall/log.xml.i @@ -1,7 +1,7 @@ - Enable log + Log packets hitting this rule \ No newline at end of file diff --git a/interface-definitions/include/firewall/rule-log-options.xml.i b/interface-definitions/include/firewall/rule-log-options.xml.i deleted file mode 100644 index e8b0cdec3..000000000 --- a/interface-definitions/include/firewall/rule-log-options.xml.i +++ /dev/null @@ -1,89 +0,0 @@ - - - - Log options - - - - - Set log group - - u32:0-65535 - Log group to send messages to - - - - - - - - - Length of packet payload to include in netlink message - - u32:0-9000 - Length of packet payload to include in netlink message - - - - - - - - - Number of packets to queue inside the kernel before sending them to userspace - - u32:0-65535 - Number of packets to queue inside the kernel before sending them to userspace - - - - - - - - - Set log-level - - emerg alert crit err warn notice info debug - - - emerg - Emerg log level - - - alert - Alert log level - - - crit - Critical log level - - - err - Error log level - - - warn - Warning log level - - - notice - Notice log level - - - info - Info log level - - - debug - Debug log level - - - (emerg|alert|crit|err|warn|notice|info|debug) - - level must be alert, crit, debug, emerg, err, info, notice or warn - - - - - \ No newline at end of file -- cgit v1.2.3