mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Should resolve ITS#2071
This commit is contained in:
parent
b8240724ad
commit
007b618d99
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ lutil_eaddr( void )
|
|||
free(buf);
|
||||
return NULL;
|
||||
|
||||
#elif defined (SIOCGIFADDR)
|
||||
#elif defined( SIOCGIFADDR ) && defined( AFLINK )
|
||||
char buf[sizeof(struct ifreq) * 32];
|
||||
struct ifconf ifc;
|
||||
struct ifreq *ifr;
|
||||
|
|
@ -156,7 +156,7 @@ lutil_eaddr( void )
|
|||
if (memcmp(eaddr, zero, sizeof(eaddr)) == 0) {
|
||||
/* XXX - who knows? */
|
||||
lutil_entropy( eaddr, sizeof(eaddr) );
|
||||
eaddr[0] |= 0x80; /* turn it into a mutlicast address */
|
||||
eaddr[0] |= 0x80; /* turn it into a multicast address */
|
||||
}
|
||||
|
||||
return eaddr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue