Bug 264635 - Including headers from multicast(4) causes compilation failure: use of undeclared identifier 'NBBY'
Summary: Including headers from multicast(4) causes compilation failure: use of undecl...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.1-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-12 15:14 UTC by Yuri Victorovich
Modified: 2022-06-12 15:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2022-06-12 15:14:14 UTC
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 identifier 'NBBY'
        if_mask ifs_bits[howmany(IF_SETSIZE, NIFBITS)];
                                             ^
/usr/include/netinet6/ip6_mroute.h:85:36: note: expanded from macro 'NIFBITS'
#define NIFBITS (sizeof(if_mask) * NBBY)        /* bits per mask */
                                   ^
/usr/include/netinet6/ip6_mroute.h:92:39: error: use of undeclared identifier 'NBBY'
/usr/include/netinet6/ip6_mroute.h:85:36: note: expanded from macro 'NIFBITS'
#define NIFBITS (sizeof(if_mask) * NBBY)        /* bits per mask */
                                   ^
2 errors generated.