]> git.ozlabs.org Git - ppp.git/commitdiff
Fix for Sun CR 6257917: the right prefix length for an interface token
authorJames Carlson <carlsonj@workingcode.com>
Wed, 4 May 2005 21:31:20 +0000 (21:31 +0000)
committerJames Carlson <carlsonj@workingcode.com>
Wed, 4 May 2005 21:31:20 +0000 (21:31 +0000)
is 64 bits, not 10.  (10 came from the prefix length of a link-layer
address, but it's not actually used by SIOCSLIFADDR, so it wasn't right
in any case.)

pppd/sys-solaris.c

index fb8f0fd0e0ab4cb54e4badf2e1eadfc4ca8ea075..add4423bac3cd281b872e07e47bc87d75c8cfd89 100644 (file)
@@ -85,7 +85,7 @@
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#define RCSID  "$Id: sys-solaris.c,v 1.13 2004/11/04 10:02:26 paulus Exp $"
+#define RCSID  "$Id: sys-solaris.c,v 1.14 2005/05/04 21:31:20 carlsonj Exp $"
 
 #include <limits.h>
 #include <stdio.h>
 
 #include <limits.h>
 #include <stdio.h>
@@ -194,7 +194,7 @@ static int  if6_is_up = 0;  /* IPv6 interface has been marked up */
        eui64_copy(eui64, s->sin6_addr.s6_addr32[2]);   \
        s->sin6_family = AF_INET6;              \
        l.lifr_addr.ss_family = AF_INET6;       \
        eui64_copy(eui64, s->sin6_addr.s6_addr32[2]);   \
        s->sin6_family = AF_INET6;              \
        l.lifr_addr.ss_family = AF_INET6;       \
-       l.lifr_addrlen = 10;                    \
+       l.lifr_addrlen = 64;                    \
        l.lifr_addr = laddr;                    \
        } while (0)
 
        l.lifr_addr = laddr;                    \
        } while (0)