[Bug 1369] New: ipset save|list -sorted sorts alphabetically instead of naturally
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Wed Oct 9 01:01:55 CEST 2019
https://bugzilla.netfilter.org/show_bug.cgi?id=1369
Bug ID: 1369
Summary: ipset save|list -sorted sorts alphabetically instead
of naturally
Product: ipset
Version: unspecified
Hardware: x86_64
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: default
Assignee: netfilter-buglog at lists.netfilter.org
Reporter: dominik at greysector.net
Description of problem:
ipset save|list -sorted sorts IP (network) addresses as if they were text
instead of naturally as IP addresses, i.e. 95.0.0.0 should be sorted before
107.0.0.0.
Version-Release number of selected component (if applicable):
ipset-7.2
How reproducible:
Always
Steps to Reproduce:
1. ipset create foo hash:net
2. ipset add foo 95.0.0.0/8
3. ipset add foo 107.0.0.0/8
4. ipset save foo -sorted
Actual results:
create foo hash:net family inet hashsize 1024 maxelem 65536
add foo 107.0.0.0/8
add foo 95.0.0.0/8
Expected results:
create foo hash:net family inet hashsize 1024 maxelem 65536
add foo 95.0.0.0/8
add foo 107.0.0.0/8
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20191008/99ee7038/attachment.html>
More information about the netfilter-buglog
mailing list