Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Apr 2000 15:35:07 +0200
From:      Gary Jennejohn <garyj@muc.de>
To:        freebsd-current@freebsd.org
Subject:   kernel breakage in ng_base.c
Message-ID:  <200004301335.PAA00747@peedub.muc.de>

next in thread | raw e-mail | index | archive | help
Here's a simple patch which works for me.

--- /sys/netgraph/ng_base.c	Sun Apr 30 11:32:22 2000
+++ /sys/netgraph/ng_base.c_mod	Sun Apr 30 11:40:24 2000
@@ -314,11 +314,16 @@
 		int error;
 
 		/* Not found, try to load it as a loadable module */
+#if 0
 		snprintf(filename, sizeof(filename), "ng_%s.ko", typename);
 		if ((path = linker_search_path(filename)) == NULL)
 			return (ENXIO);
 		error = linker_load_file(path, &lf);
 		FREE(path, M_LINKER);
+#else
+		snprintf(filename, sizeof(filename), "ng_%s", typename);
+		error = linker_load_file(filename, &lf);
+#endif
 		if (error != 0)
 			return (error);
 		lf->userrefs++;		/* pretend loaded by the syscall */


--------
Gary Jennejohn / garyj@muc.de gj@freebsd.org




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004301335.PAA00747>