Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2019 09:42:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 242318] ipfw - option 'ipversion' match only IPv4 packets
Message-ID:  <bug-242318-9@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 242318
           Summary: ipfw - option 'ipversion' match only IPv4 packets
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: dsx@bsdsx.fr
                CC: doc@FreeBSD.org

Created attachment 209546
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D209546&action=
=3Dedit
replace IP by IPv4

option 'ipversion' match only IPv4 packets:

sys/netpfil/ipfw/ip_fw2.c:
...
  2207                          case O_IPVER:
  2208                                  match =3D (is_ipv4 &&
  2209                                      cmd->arg1 =3D=3D ip->ip_v);
  2210                                  break;

As others options (iptos, ipid ...), replace IP by IPv4:

      ipversion ver
             Matches IP packets whose IP version field is ver.

become

     ipversion ver
             Matches IPv4 packets whose IP version field is ver.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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