Date: Sat, 23 Jan 1999 09:14:13 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: John Hay <jhay@mikom.csir.co.za> Cc: net@FreeBSD.ORG, Archie Cobbs <archie@whistle.com> Subject: Re: netgraph stuff Message-ID: <Pine.BSF.4.05.9901230909080.21631-100000@s204m82.isp.whistle.com> In-Reply-To: <199901231637.SAA29802@zibbi.mikom.csir.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 23 Jan 1999, John Hay wrote: > Julian, > > > ftp://ftp.whistle.com/pub/archie/misc/netgraph.tgz > > > > Includes a readme that hopefully will make sense. > > > > needs a current kernel < 2 days old > > > > either 3.x or 4.x will do. the crucial fix got in with hours to spare. > > I have tried the latest one, but I can't get it to compile. > > In modules/netgraph it dies with: > > --------- > cc -O -pipe -Wall -I/usr/src.freefall/sys -DKERNEL -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I/usr/src.freefall/sys -I/usr/src/sys/modules/netgraph/netgraph -I/usr/src/sys/modules/netgraph/netgraph/@ -c /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c > /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c: In function `ngb_mod_event': > /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:1357: `NETISR_NG' undeclared (first use this function) > -------- > > I have changed NETISR_NETGRAPH in net/netisr.h to NETISR_NG and then I got > further. The next place it dies is inside if_sr.c and if_ar.c when it tries > to include i386/isa/if_sr.h and i386/isa/if_ar.h respectively. Those files > does not exist. doh! that is why we were waiting for "make world" to work again.. so we could try it from scratch again.. you are correct in your fix. also here are the two missing .h files for sys/i386/isa if_sr.h: /* * if_sr.h * * Copyright (C) 1997-1999 Whistle Communications Inc. * All rights reserved. */ #ifndef _I386_ISA_IF_SR_H_ #define _I386_ISA_IF_SR_H_ /* Node type name and type cookie */ #define NG_SR_NODE_TYPE "sync_sr" #define NG_SR_COOKIE 860552149 /* Netgraph hooks */ #define NG_SR_HOOK_DEBUG "debug" #define NG_SR_HOOK_CONTROL "control" #define NG_SR_HOOK_RAW "rawdata" #endif /* _I386_ISA_IF_SR_H_ */ if_ar.h: /* * if_ar.h * * Copyright (C) 1997-1999 Whistle Communications Inc. * All rights reserved. */ #ifndef _I386_ISA_IF_AR_H_ #define _I386_ISA_IF_AR_H_ /* Node type name and type cookie */ #define NG_AR_NODE_TYPE "sync_ar" #define NG_AR_COOKIE 860552149 /* Netgraph hooks */ #define NG_AR_HOOK_DEBUG "debug" #define NG_AR_HOOK_CONTROL "control" #define NG_AR_HOOK_RAW "rawdata" #endif /* _I386_ISA_IF_AR_H_ */ > > Are you sure you have the right version on your ftp site? > > John > -- > John Hay -- John.Hay@mikom.csir.co.za > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901230909080.21631-100000>