Source-Changes-HG archive

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

[src/trunk]: src/sbin/routed Make sure IS_PASSIVE gets set on a parm's int_st...



details:   https://anonhg.NetBSD.org/src/rev/45ee06687456
branches:  trunk
changeset: 495079:45ee06687456
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jul 21 00:22:38 2000 +0000

description:
Make sure IS_PASSIVE gets set on a parm's int_state when the
passive option is used in an if=xxx clause.

diffstat:

 sbin/routed/parms.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a669842ba7d4 -r 45ee06687456 sbin/routed/parms.c
--- a/sbin/routed/parms.c       Thu Jul 20 23:36:56 2000 +0000
+++ b/sbin/routed/parms.c       Fri Jul 21 00:22:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parms.c,v 1.13 1999/02/23 10:47:40 christos Exp $      */
+/*     $NetBSD: parms.c,v 1.14 2000/07/21 00:22:38 thorpej Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
 static char sccsid[] __attribute__((unused)) = "@(#)if.c       8.1 (Berkeley) 6/5/93";
 #elif defined(__NetBSD__)
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: parms.c,v 1.13 1999/02/23 10:47:40 christos Exp $");
+__RCSID("$NetBSD: parms.c,v 1.14 2000/07/21 00:22:38 thorpej Exp $");
 #endif
 
 #include "defs.h"
@@ -757,7 +757,7 @@
 
                } else if (PARS("passive")) {
                        CKF((GROUP_IS_SOL_OUT|GROUP_IS_ADV_OUT), IS_NO_RDISC);
-                       parm.parm_int_state |= IS_NO_RIP;
+                       parm.parm_int_state |= IS_NO_RIP | IS_PASSIVE;
 
                } else if (PARSEQ("rdisc_pref")) {
                        if (parm.parm_rdisc_pref != 0



Home | Main Index | Thread Index | Old Index