From owner-freebsd-current Mon May 1 2:43:51 2000 Delivered-To: freebsd-current@freebsd.org Received: from pogo.caustic.org (pogo.caustic.org [208.44.193.69]) by hub.freebsd.org (Postfix) with ESMTP id 7652437B6F0 for ; Mon, 1 May 2000 02:43:49 -0700 (PDT) (envelope-from jan@caustic.org) Received: from localhost (jan@localhost) by pogo.caustic.org (8.10.0/ignatz) with ESMTP id e419kif56456; Mon, 1 May 2000 02:46:44 -0700 (PDT) Date: Mon, 1 May 2000 02:46:44 -0700 (PDT) From: "f.johan.beisser" To: Gary Jennejohn Cc: freebsd-current@FreeBSD.ORG Subject: Re: kernel breakage in ng_base.c In-Reply-To: <200004301335.PAA00747@peedub.muc.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hrm, i'm sad to report that it did not work for me.. let me know if you need output from it, i'll see about sending it to you. -- jan On Sun, 30 Apr 2000, Gary Jennejohn wrote: > 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 > +-----/ f. johan beisser /------------------------------+ email: jan[at]caustic.org web: http://www.caustic.org/~jan "knowledge is power. power corrupts. study hard, be evil." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message