Module Name:    src
Committed By:   pgoyette
Date:           Mon Aug  8 07:35:12 UTC 2016

Modified Files:
        src/sys/net: if_tap.c

Log Message:
Partial fix - restore creation of our sysctl subtree for _MODULE
builds (it's already handled for built-in builds via registration
in a link-set).

XXX The build is still broken in rump...


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/net/if_tap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_tap.c
diff -u src/sys/net/if_tap.c:1.85 src/sys/net/if_tap.c:1.86
--- src/sys/net/if_tap.c:1.85	Sun Aug  7 17:38:34 2016
+++ src/sys/net/if_tap.c	Mon Aug  8 07:35:12 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_tap.c,v 1.85 2016/08/07 17:38:34 christos Exp $	*/
+/*	$NetBSD: if_tap.c,v 1.86 2016/08/08 07:35:12 pgoyette Exp $	*/
 
 /*
  *  Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.85 2016/08/07 17:38:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.86 2016/08/08 07:35:12 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 
@@ -237,6 +237,10 @@ struct if_clone tap_cloners = IF_CLONE_I
 static struct tap_softc *	tap_clone_creator(int);
 int	tap_clone_destroyer(device_t);
 
+#ifdef _MODULE
+static struct sysctllog *tap_sysctl_clog;
+#endif
+
 static u_int tap_count;
 
 void
@@ -253,6 +257,9 @@ static void
 tapinit(void)
 {
 	if_clone_attach(&tap_cloners);
+#ifdef _MODULE
+	sysctl_tap_setup(&tap_sysctl_clog);
+#endif
 }
 
 static int
@@ -266,6 +273,9 @@ tapdetach(void)
 	if (error == 0)
 		if_clone_detach(&tap_cloners);
 
+#ifdef _MODULE
+	sysctl_teardown(&tap_sysctl_clog);
+#endif
 	return error;
 }
 

Reply via email to