Source-Changes-HG archive

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

[src/trunk]: src/sys/net In vlan_config(), filter flags inherited from parent...



details:   https://anonhg.NetBSD.org/src/rev/ce828bb0b1b6
branches:  trunk
changeset: 499135:ce828bb0b1b6
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Nov 12 19:39:42 2000 +0000

description:
In vlan_config(), filter flags inherited from parent interface to
(IFF_UP | IFF_BROADCAST | IFF_RUNNING | IFF_ALLMULTI | IFF_SIMPLEX)
Without this, if the parent is OACTIVE of PROMISC at config time, we
loose.

diffstat:

 sys/net/if_vlan.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r b091f4dfbd52 -r ce828bb0b1b6 sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Sun Nov 12 19:29:31 2000 +0000
+++ b/sys/net/if_vlan.c Sun Nov 12 19:39:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.20 2000/11/10 02:31:53 enami Exp $       */
+/*     $NetBSD: if_vlan.c,v 1.21 2000/11/12 19:39:42 bouyer Exp $      */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -316,7 +316,8 @@
 
        ifv->ifv_p = p;
        ifv->ifv_if.if_mtu = p->if_mtu - ifv->ifv_mtufudge;
-       ifv->ifv_if.if_flags = p->if_flags;
+       ifv->ifv_if.if_flags = p->if_flags &
+           (IFF_UP | IFF_BROADCAST | IFF_RUNNING | IFF_ALLMULTI | IFF_SIMPLEX);
 
        /*
         * Inherit the if_type from the parent.  This allows us



Home | Main Index | Thread Index | Old Index