[Bug 242201] ipfw - option 'ipversion 6' not working

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 26 06:00:05 UTC 2019


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

--- Comment #2 from Freddy DISSAUX <dsx at bsdsx.fr> ---
The flag is_ipv6 is set by:

...
        /* Identify IP packets and fill up variables. */
        if (pktlen >= sizeof(struct ip6_hdr) &&
            (eh == NULL || eh->ether_type == htons(ETHERTYPE_IPV6)) &&
            ip->ip_v == 6) {
                struct ip6_hdr *ip6 = (struct ip6_hdr *)ip;

                is_ipv6 = 1;
...

Test ip->ip_v seems correct

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


More information about the freebsd-ipfw mailing list