From ef220cfa40ffa62ef15597aae6c9dd2e9186f5f1 Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 21 Jul 2000 00:22:38 +0000 Subject: [PATCH] Make sure IS_PASSIVE gets set on a parm's int_state when the passive option is used in an if=xxx clause. --- sbin/routed/parms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/routed/parms.c b/sbin/routed/parms.c index ae74388b6eac..3b5f5682be10 100644 --- a/sbin/routed/parms.c +++ b/sbin/routed/parms.c @@ -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 -__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 @@ parse_parms(char *line, } 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