[Bug 253510] ipfw sockarg not working for ipv6

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 14 16:04:32 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253510

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

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


More information about the freebsd-bugs mailing list