[Bug 201520] Wrong Error Line Number Given by PF syntax checker

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 13 10:20:57 UTC 2015


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 at FreeBSD.org
          Reporter: diotonante at 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.


More information about the freebsd-bugs mailing list