bugzilla-daemon at netfilter.org
2014-Feb-10 13:12 UTC
[Bug 901] New: Can not add a rule with a 'hdrlength' value as IPv4 header expression
https://bugzilla.netfilter.org/show_bug.cgi?id=901
Summary: Can not add a rule with a 'hdrlength' value as IPv4
header expression
Product: nftables
Version: unspecified
Platform: x86_64
OS/Version: Debian GNU/Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: nft
AssignedTo: pablo at netfilter.org
ReportedBy: anarey.spam at gmail.com
Estimated Hours: 0.0
The error message shows the range of possible values for this option, but It
not possible assign these values.
There is a reproduction of this bug here:
$ sudo nft add table ip test1
$ sudo nft add chain ip test1 filter {type filter hook input priority 0 \; }
$ sudo nft list table ip test1
table ip test1 {
chain filter {
type filter hook input priority 0;
}
}
$ sudo nft add rule ip test1 filter ip hdrlength 15
<cmdline>:1:1-39: Error: Could not process rule: Invalid argument
add rule ip test filter ip hdrlength 15
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ sudo nft add rule ip test1 filter ip hdrlength 16
<cmdline>:1:38-39: Error: Value 16 exceeds valid range 0-15
add rule ip test filter ip hdrlength 16
^^
$ sudo nft add rule ip test1 filter ip hdrlength 222
<cmdline>:1:38-40: Error: Value 222 exceeds valid range 0-15
add rule ip test filter ip hdrlength 222
^^^
$ sudo nft add rule ip test1 filter ip hdrlength 14
<cmdline>:1:1-39: Error: Could not process rule: Invalid argument
add rule ip test filter ip hdrlength 14
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ sudo nft add rule ip test1 filter ip hdrlength 5
<cmdline>:1:1-38: Error: Could not process rule: Invalid argument
add rule ip test filter ip hdrlength 5
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I can always reproduce this bug.
The last commit in libmnl repo is "090a842 examples: use
mnl_socket_setsockopt"
The last commit in libnftnl repo is "076fd1e include: add cached copy of
linux/kernel.h"
The last commit in nftables repo is 35f689e mnl: fix inclusion of last rule in
batch page
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
Possibly Parallel Threads
- [Bug 902] New: Can not add a rule with a 'version' value as IPv4 header expression
- [Bug 895] New: Add a 'ipv6_address' set into a ipv4 table and vice versa
- [Bug 897] New: Numbers of caracter in the name of set.
- [Bug 919] New: ah: --reserver is not supported (ipv4 and ipv6)
- [Bug 896] New: You can not add the follow kinds of sets: mark, integer, string, lladdr
