[Bug 1216] New: Error messaging for "interval overlaps with previous one" misidentifies location

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Sat Jan 20 18:38:25 CET 2018


https://bugzilla.netfilter.org/show_bug.cgi?id=1216

            Bug ID: 1216
           Summary: Error messaging for "interval overlaps with previous
                    one" misidentifies location
           Product: nftables
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: netfilter at allycomm.com

At least when "include" is employed, the error message returned when "interval
overlaps with previous one" can fail to properly identify the file/line of the
source of the overlap. 

Noted on nftables master branch after

commit 0b3ccd27e12d1df442aa3eac40a2ccb63d6c6407 
Author: Phil Sutter <phil at nwl.cc>
Date:   Wed Jan 10 13:43:21 2018 +0100

including
commit 9afd72a883e391e366a1d75bb4e1705357e078e9
commit b4c7117ef552d0d71bde1db4a047b4c005699951

If a single include is used that contains the overlapping intervals, it appears
to report the proper file, line, and location

   ./blackhole_ipv6.nft:14:9-13: Error: interval overlaps with previous one
            ::/96,          # IPv4-compatible address
            ^^^^^

If an include of "unrelated" content appears either before or after the "bad"
include, the error message is incorrect.

With an include before the "bad" include:

    In file included from nftables.conf:8:5-35:
    ./blackhole_ipv6.nft:45:9-23: Error: interval overlaps with previous one

            ^^^^^^^^^^^^^^^

With an include after the "bad" include

    In file included from nftables.conf:10:5-34:
    ./defines_modem.nft:45:9-23: Error: interval overlaps with previous one

            ^^^^^^^^^^^^^^^

-- 
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/20180120/2cb84404/attachment.html>


More information about the netfilter-buglog mailing list