mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-11 13:50:39 +08:00
Should resolve ITS#2071
This commit is contained in:
parent
b8240724ad
commit
007b618d99
@ -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 New Issue
Block a user