]> git.sur5r.net Git - openldap/commitdiff
Check for AFLINK before using it
authorKurt Zeilenga <kurt@openldap.org>
Mon, 9 Sep 2002 18:24:23 +0000 (18:24 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 9 Sep 2002 18:24:23 +0000 (18:24 +0000)
libraries/liblutil/uuid.c

index d93c364eb826462b7a8fc824062375e079d528d2..81be614358f0516971a6b2973d339a6fbb6a06a8 100644 (file)
@@ -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;