Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic add a comment why IFF_PROMISC is handled separate...
details: https://anonhg.NetBSD.org/src/rev/8a9c86f48e4d
branches: trunk
changeset: 510393:8a9c86f48e4d
user: onoe <onoe%NetBSD.org@localhost>
date: Mon May 28 00:46:35 2001 +0000
description:
add a comment why IFF_PROMISC is handled separately for SIOCSIFFLAGS:
Handle special case for IFF_PROMISC. If only IFF_PROMISC
flag is changed, do not call an_init() to avoid initiating
reassociation to another access point. It is really
helpful for tcpdump(8).
diffstat:
sys/dev/ic/an.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 9239a4836dc1 -r 8a9c86f48e4d sys/dev/ic/an.c
--- a/sys/dev/ic/an.c Mon May 28 00:41:14 2001 +0000
+++ b/sys/dev/ic/an.c Mon May 28 00:46:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: an.c,v 1.13 2001/05/24 08:12:28 itojun Exp $ */
+/* $NetBSD: an.c,v 1.14 2001/05/28 00:46:35 onoe Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul%ctr.columbia.edu@localhost>. All rights reserved.
@@ -1040,6 +1040,12 @@
switch (command) {
case SIOCSIFFLAGS:
+ /*
+ * Handle special case for IFF_PROMISC. If only IFF_PROMISC
+ * flag is changed, do not call an_init() to avoid initiating
+ * reassociation to another access point. It is really
+ * helpful for tcpdump(8).
+ */
if ((ifp->if_flags & sc->an_if_flags &
(IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING)) {
if (ifp->if_flags & IFF_PROMISC &&
Home |
Main Index |
Thread Index |
Old Index