Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2022 15:14:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264635] Including headers from multicast(4) causes compilation failure: use of undeclared identifier 'NBBY'
Message-ID:  <bug-264635-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 264635
           Summary: Including headers from multicast(4) causes compilation
                    failure: use of undeclared identifier 'NBBY'
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

These headers alone fail:
     #include <sys/types.h>
     #include <sys/socket.h>
     #include <netinet/in.h>
     #include <netinet/ip_mroute.h>
     #include <netinet6/ip6_mroute.h>

Failure:
In file included from x.c:6:
/usr/include/netinet6/ip6_mroute.h:92:39: error: use of undeclared identifi=
er
'NBBY'
        if_mask ifs_bits[howmany(IF_SETSIZE, NIFBITS)];
                                             ^
/usr/include/netinet6/ip6_mroute.h:85:36: note: expanded from macro 'NIFBIT=
S'
#define NIFBITS (sizeof(if_mask) * NBBY)        /* bits per mask */
                                   ^
/usr/include/netinet6/ip6_mroute.h:92:39: error: use of undeclared identifi=
er
'NBBY'
/usr/include/netinet6/ip6_mroute.h:85:36: note: expanded from macro 'NIFBIT=
S'
#define NIFBITS (sizeof(if_mask) * NBBY)        /* bits per mask */
                                   ^
2 errors generated.

--=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-264635-227>