Source-Changes-HG archive

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

[src/trunk]: src/sys/net we don't need IFF_RUNNING for gif.



details:   https://anonhg.NetBSD.org/src/rev/fc8ec42c2700
branches:  trunk
changeset: 480651:fc8ec42c2700
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Jan 17 06:29:07 2000 +0000

description:
we don't need IFF_RUNNING for gif.

diffstat:

 sys/net/if_gif.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 2ddb88690667 -r fc8ec42c2700 sys/net/if_gif.c
--- a/sys/net/if_gif.c  Mon Jan 17 05:50:12 2000 +0000
+++ b/sys/net/if_gif.c  Mon Jan 17 06:29:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_gif.c,v 1.6 2000/01/17 05:50:12 itojun Exp $        */
+/*     $NetBSD: if_gif.c,v 1.7 2000/01/17 06:29:07 itojun Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -419,7 +419,7 @@
                bcopy((caddr_t)dst, (caddr_t)sa, size);
                sc->gif_pdst = sa;
                
-               ifp->if_flags |= (IFF_UP|IFF_RUNNING);
+               ifp->if_flags |= IFF_UP;
                if_up(ifp);             /* send up RTM_IFINFO */
 
                break;
@@ -485,11 +485,6 @@
                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