From 53a48f499ae9bcc2f657136bb7779b38aad1c242 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`. --- .../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 (limited to 'interface-definitions/include/firewall') diff --git a/interface-definitions/include/firewall/common-rule-bridge.xml.i b/interface-definitions/include/firewall/common-rule-bridge.xml.i index a27cae43b..6de770c79 100644 --- a/interface-definitions/include/firewall/common-rule-bridge.xml.i +++ b/interface-definitions/include/firewall/common-rule-bridge.xml.i @@ -24,7 +24,7 @@ #include -#include +#include Source parameters @@ -36,4 +36,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 aabefcb27..6f56ecc85 100644 --- a/interface-definitions/include/firewall/common-rule-inet.xml.i +++ b/interface-definitions/include/firewall/common-rule-inet.xml.i @@ -83,7 +83,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 e040c9b13..0d749aa27 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 21b883e6a..21548f3fb 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 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