Source-Changes-HG archive

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

[src/trunk]: src/sys/net Rename tuncreate to tun_enable



details:   https://anonhg.NetBSD.org/src/rev/1d1b4cc90f7c
branches:  trunk
changeset: 817767:1d1b4cc90f7c
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Sep 07 10:24:57 2016 +0000

description:
Rename tuncreate to tun_enable

It should be more proper.

diffstat:

 sys/net/if_tun.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r a945f2539800 -r 1d1b4cc90f7c sys/net/if_tun.c
--- a/sys/net/if_tun.c  Wed Sep 07 08:09:59 2016 +0000
+++ b/sys/net/if_tun.c  Wed Sep 07 10:24:57 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tun.c,v 1.130 2016/09/05 02:25:37 ozaki-r Exp $     */
+/*     $NetBSD: if_tun.c,v 1.131 2016/09/07 10:24:57 ozaki-r Exp $     */
 
 /*
  * Copyright (c) 1988, Julian Onions <jpo%cs.nott.ac.uk@localhost>
@@ -15,7 +15,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.130 2016/09/05 02:25:37 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.131 2016/09/07 10:24:57 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -83,7 +83,7 @@
     IF_CLONE_INITIALIZER("tun", tun_clone_create, tun_clone_destroy);
 
 static void tunattach0(struct tun_softc *);
-static void tuncreate(struct tun_softc *);
+static void tun_enable(struct tun_softc *);
 static void tun_i_softintr(void *);
 static void tun_o_softintr(void *);
 #ifdef ALTQ
@@ -421,7 +421,7 @@
  * Call at splnet().
  */
 static void
-tuncreate(struct tun_softc *tp)
+tun_enable(struct tun_softc *tp)
 {
        struct ifnet    *ifp = &tp->tun_if;
        struct ifaddr   *ifa;
@@ -484,7 +484,7 @@
 
        switch (cmd) {
        case SIOCINITIFADDR:
-               tuncreate(tp);
+               tun_enable(tp);
                ifa->ifa_rtrequest = p2p_rtrequest;
                TUNDEBUG("%s: address set\n", ifp->if_xname);
                break;



Home | Main Index | Thread Index | Old Index