Source-Changes-HG archive

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

[src/netbsd-6]: src/usr.sbin/rtadvd Pull up following revision(s) (requested ...



details:   https://anonhg.NetBSD.org/src/rev/858fa91c73c5
branches:  netbsd-6
changeset: 774390:858fa91c73c5
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Aug 08 15:37:49 2012 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #465):
        usr.sbin/rtadvd/config.c: revision 1.28
Fix a bug that incorrect RA packet is sent if rtadvd.conf exists.
Fixes PR#46580 reported by Takahiro HAYASHI.

diffstat:

 usr.sbin/rtadvd/config.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 36b98d23a34f -r 858fa91c73c5 usr.sbin/rtadvd/config.c
--- a/usr.sbin/rtadvd/config.c  Wed Aug 08 15:35:14 2012 +0000
+++ b/usr.sbin/rtadvd/config.c  Wed Aug 08 15:37:49 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.c,v 1.27 2011/12/11 20:44:44 christos Exp $     */
+/*     $NetBSD: config.c,v 1.27.2.1 2012/08/08 15:37:49 martin Exp $   */
 /*     $KAME: config.c,v 1.93 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -290,7 +290,7 @@
        MAYHAVE(val, "clockskew", 0);
        tmp->clockskew = val;
 
-       tmp->pfxs++;
+       tmp->pfxs = 0;
        TAILQ_INIT(&tmp->prefix);
        for (i = -1; i < MAXPREFIX; i++) {
                struct prefix *pfx;
@@ -763,6 +763,7 @@
 
                /* link into chain */
                TAILQ_INSERT_TAIL(&rai->prefix, pp, next);
+               rai->pfxs++;
        }
 
        freeifaddrs(ifap);



Home | Main Index | Thread Index | Old Index