[Bug 262007] [ipfw] incorrectly rejects rules with dashed service names as an "unrecognised option"

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 17 Feb 2022 08:18:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262007

            Bug ID: 262007
           Summary: [ipfw] incorrectly rejects rules with dashed service
                    names as an "unrecognised option"
           Product: Base System
           Version: 12.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: bsdpr@phoe.frmug.org

On a 12.3-STABLE host (rev d891ee6ac7e6af693959c6d11c5af7c440919ea9),
ipfw(8) rejects addition of rules comprising symbolic ports containing a dash.
Non dashed port names are accepted. The parser is in error as all the names
listed in /etc/services should be acceptable.

Examples:

# ipfw add 10000 deny udp from 10/8 to me dhcp-failover
ipfw: unrecognised option [-1] dhcp-failover

# ipfw add 10000 deny tcp from 10/8 to me ftp-data
ipfw: unrecognised option [-1] ftp-data

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