Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2015 10:20:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201520] Wrong Error Line Number Given by PF syntax checker
Message-ID:  <bug-201520-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201520

            Bug ID: 201520
           Summary: Wrong Error Line Number Given by PF syntax checker
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: diotonante@gmail.com

PF syntax parser counts macro lines splited using "\" as a single line.

To reproduce the issue:
# cat -n pf.test
     1  internal_net="{ 192.168.0.0/24 \
     2  192.168.1.0/24 192.168.2.0/24 }"
     3
     4  pass in on em0 \
     5  from a to b
# pfctl -nf pf.test
no IP address found for a
pf.test:4: could not parse host specification

Ref:
https://forums.freebsd.org/threads/wrong-error-line-number-given-by-pf-syntax-checker.52121/#post-292829

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201520-8>