diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-09-03 20:37:10 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-09-03 20:37:10 +0200 |
commit | d9eb48a0ced1eb60bd00fe2f18559b3c780ee98a (patch) | |
tree | 1c435788f7c78d2ec422652695ccb5361af71d40 /interface-definitions/include | |
parent | 2791fd446e54e909bbcdb8e753e0c3774204318c (diff) | |
download | vyos-1x-d9eb48a0ced1eb60bd00fe2f18559b3c780ee98a.tar.gz vyos-1x-d9eb48a0ced1eb60bd00fe2f18559b3c780ee98a.zip |
firewall: T4651: re-implement packet-length CLI option to use <multi/>
Diffstat (limited to 'interface-definitions/include')
-rw-r--r-- | interface-definitions/include/firewall/packet-length.xml.i | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/interface-definitions/include/firewall/packet-length.xml.i b/interface-definitions/include/firewall/packet-length.xml.i index 866a76bbb..043f56d16 100644 --- a/interface-definitions/include/firewall/packet-length.xml.i +++ b/interface-definitions/include/firewall/packet-length.xml.i @@ -1,18 +1,38 @@ <!-- include start from firewall/packet-length.xml.i --> <leafNode name="packet-length"> <properties> - <help>Payload size in bytes, including header and data</help> + <help>Payload size in bytes, including header and data to match</help> <valueHelp> <format>u32:1-65535</format> - <description>Packet length value. Multiple values can be specified as a comma-separated list. Inverted match is also supported</description> + <description>Packet length to match</description> </valueHelp> <valueHelp> <format><start-end></format> - <description>Packet length range. Inverted match is also supported (e.g. 1001-1005 or !1001-1005)</description> + <description>Packet length range to match</description> </valueHelp> <constraint> - <validator name="packet-length"/> + <validator name="numeric" argument="--range 1-65535"/> + <validator name="range" argument="--min=1 --max=65535"/> </constraint> + <multi/> + </properties> +</leafNode> +<leafNode name="packet-length-exclude"> + <properties> + <help>Payload size in bytes, including header and data not to match</help> + <valueHelp> + <format>u32:1-65535</format> + <description>Packet length not to match</description> + </valueHelp> + <valueHelp> + <format><start-end></format> + <description>Packet length range not to match</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-65535"/> + <validator name="range" argument="--min=1 --max=65535"/> + </constraint> + <multi/> </properties> </leafNode> <!-- include end --> |