Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/rtsold Pull up revision 1.8 (via patch, reques...



details:   https://anonhg.NetBSD.org/src/rev/63145c93abb4
branches:  netbsd-1-5
changeset: 493050:63145c93abb4
user:      he <he%NetBSD.org@localhost>
date:      Thu Apr 11 21:36:29 2002 +0000

description:
Pull up revision 1.8 (via patch, requested by itojun):
  Initialize sockaddr correctly.

diffstat:

 usr.sbin/rtsold/rtsol.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r d59ae9b53bad -r 63145c93abb4 usr.sbin/rtsold/rtsol.c
--- a/usr.sbin/rtsold/rtsol.c   Thu Apr 11 21:30:35 2002 +0000
+++ b/usr.sbin/rtsold/rtsol.c   Thu Apr 11 21:36:29 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsol.c,v 1.6 2000/02/28 07:20:44 itojun Exp $ */
+/*     $NetBSD: rtsol.c,v 1.6.4.1 2002/04/11 21:36:29 he Exp $ */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -89,6 +89,8 @@
                return(-1);
        }
        memset(&sin6_allrouters, 0, sizeof(struct sockaddr_in6));
+       sin6_allrouters.sin6_family = AF_INET6;
+       sin6_allrouters.sin6_len = sizeof(sin6_allrouters);
        if (inet_pton(AF_INET6, ALLROUTER,
                      &sin6_allrouters.sin6_addr.s6_addr) != 1) {
                warnmsg(LOG_ERR, __FUNCTION__, "inet_pton failed for %s",



Home | Main Index | Thread Index | Old Index