Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2021 16:04:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253510] ipfw sockarg not working for ipv6
Message-ID:  <bug-253510-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 253510
           Summary: ipfw sockarg not working for ipv6
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: k@vodka.home.kg

SO_USER_COOKIE based rules (sockarg) dont work for ipv6 packets.
its artificial limitation coming from early age of ipv6 but still present in
2021.
PLS fix it !

looks like its hardcoded in
/sys/netpfil/ipfw/ip_fw2.c

case O_SOCKARG: {
        struct inpcb *inp =3D args->inp;
        struct inpcbinfo *pi;

        if (is_ipv6) /* XXX can we remove this ? */
           break;


So, CAN WE REMOVE THIS ?
It was real pain porting my raw sockets app from linux in its ipv6 part

--=20
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-253510-227>