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: diotona...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to