Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net for gif interface, sync IFF_RUNNING with IFF_UP. it...
details: https://anonhg.NetBSD.org/src/rev/2ddb88690667
branches: trunk
changeset: 480650:2ddb88690667
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Jan 17 05:50:12 2000 +0000
description:
for gif interface, sync IFF_RUNNING with IFF_UP. it does not
make sense to leave IFF_RUNNING during !IFF_UP (it is pseudo interface
so we need to immitate - or is it okay if we don't raise IFF_RUNNING?)
diffstat:
sys/net/if_gif.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 4129c8c68049 -r 2ddb88690667 sys/net/if_gif.c
--- a/sys/net/if_gif.c Mon Jan 17 05:33:14 2000 +0000
+++ b/sys/net/if_gif.c Mon Jan 17 05:50:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gif.c,v 1.5 2000/01/06 15:46:08 itojun Exp $ */
+/* $NetBSD: if_gif.c,v 1.6 2000/01/17 05:50:12 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -485,6 +485,11 @@
break;
case SIOCSIFFLAGS:
+ /* sync "running" with "up" */
+ if (ifp->if_flags & IFF_UP)
+ ifp->if_flags |= IFF_RUNNING;
+ else
+ ifp->if_flags &= ~IFF_RUNNING;
break;
default:
Home |
Main Index |
Thread Index |
Old Index