[Bug 207840] Driver ix-3.1.14 not work without 'options INET6'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 7 15:40:44 UTC 2016


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

Jeff Pieper <jeffrey.e.pieper at intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeffrey.e.pieper at intel.com

--- Comment #3 from Jeff Pieper <jeffrey.e.pieper at intel.com> ---
Thanks for the report. Without options INET6 defined in the kernel, removing
the -DINET6 flag from the Makefile should allow the driver to load, but it
doesn't compile:

ix_txrx.c:813:4: error: use of undeclared identifier 'ip6'; did you mean 'ip'?
                        ip6 = (struct ip6_hdr *)(l3d);
                        ^~~
                        ip
ix_txrx.c:730:13: note: 'ip' declared here
        struct ip *ip;
                   ^
ix_txrx.c:813:8: error: incompatible pointer types assigning to 'struct ip *'
from 'struct ip6_hdr *' [-Werror,-Wincompatible-pointer-types]
                        ip6 = (struct ip6_hdr *)(l3d);
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~
ix_txrx.c:815:14: error: use of undeclared identifier 'ip6'; did you mean 'ip'?
                        ipproto = ip6->ip6_nxt;
                                  ^~~
                                  ip
ix_txrx.c:730:13: note: 'ip' declared here
        struct ip *ip;
                   ^
ix_txrx.c:815:19: error: no member named 'ip6_ctlun' in 'struct ip'
                        ipproto = ip6->ip6_nxt;
                                  ~~~  ^
@/netinet/ip6.h:89:18: note: expanded from macro 'ip6_nxt'
#define ip6_nxt         ip6_ctlun.ip6_un1.ip6_un1_nxt
                        ^
4 errors generated. 

We will investigate.

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


More information about the freebsd-amd64 mailing list