Re: header file related question

2004-09-10 Thread Andreas Kohn
On Fri, 2004-09-10 at 02:38, vxp wrote: > hi, > > i realize it's most likely a stupid question, but try not to be too hard > on me please - i'm trying to learn :) > > i'm experimenting with the kernel's source, and i'm not quite sure how to > find what all the header files are that i need, for th

Re: header file related question

2004-09-10 Thread Andrey Simonenko
On Thu, 9 Sep 2004 20:38:23 -0400 (EDT) in lucky.freebsd.hackers, vxp wrote: > > so, i copied all the #include's from /sys/netinet/ip_icmp.c and only have > the icmp_input() function (unmodified right now, from the form i found > it), the header files from the original ip_icmp, and a main() that >

header file related question

2004-09-10 Thread vxp
hi, i realize it's most likely a stupid question, but try not to be too hard on me please - i'm trying to learn :) i'm experimenting with the kernel's source, and i'm not quite sure how to find what all the header files are that i need, for the stuff i'd like to do.. how do i track down what head

header file related question

2004-09-10 Thread vxp
hi, i realize it's most likely a stupid question, but try not to be too hard on me please - i'm trying to learn :) i'm experimenting with the kernel's source, and i'm not quite sure how to find what all the header files are that i need, for the stuff i'd like to do.. how do i track down what head

Re: header file related question

2004-09-10 Thread vxp
no, didn't use D_KERNEL that took care of it! :) thanks --Val On Fri, 10 Sep 2004, Andreas Kohn wrote: > > just guessing: Did you compile with -D_KERNEL? > > HTH, > Andreas > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/

help with a module, please..

2004-09-10 Thread vxp
hi this is another one of my possibly lame questions.. so i wrote a module, it compiles with a few warnings (was too lazy to put func prototypes, so it outputs warnings about that). among other things, the compilation produces an icmp.ko (name of my mod) but when i try to do kldload ./icmp.ko it

help with a module, please..

2004-09-10 Thread yangshazhou
maybe 'kldload ./icmp.ko' ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: help with a module, please..

2004-09-10 Thread vxp
digital-security# pwd /usr/home/vxp/mycode/reboot digital-security# ls -l icmp.ko -rwxr-xr-x 1 vxp vxp 7548 Sep 10 21:31 icmp.ko digital-security# kldload ./icmp.ko kldload: can't load ./icmp.ko: No such file or directory digital-security# On Fri, 10 Sep 2004, Chuck Tuffli wrote: > On Fri,

Re: help with a module, please..

2004-09-10 Thread John-Mark Gurney
vxp wrote this message on Fri, Sep 10, 2004 at 22:23 -0400: > digital-security# pwd > /usr/home/vxp/mycode/reboot > digital-security# ls -l icmp.ko > -rwxr-xr-x 1 vxp vxp 7548 Sep 10 21:31 icmp.ko > digital-security# kldload ./icmp.ko > kldload: can't load ./icmp.ko: No such file or directory >

Re: help with a module, please..

2004-09-10 Thread vxp
link_elf: symbol min undefined hm i guess we're getting close to the root of my problem. :) to explain what min is: take a look at /sys/netinet/ip_icmp.c please in icmp_input() on line 273 theres: i = hlen + min(icmplen, ICMP_ADVLENMIN); my module replaces (or, i guess, i should say _should_ re

Re: help with a module, please..

2004-09-10 Thread John-Mark Gurney
vxp wrote this message on Fri, Sep 10, 2004 at 22:33 -0400: > link_elf: symbol min undefined > > hm > i guess we're getting close to the root of my problem. :) > to explain what min is: > > take a look at /sys/netinet/ip_icmp.c please > in icmp_input() on line 273 theres: > i = hlen + min(icmplen

Re: help with a module, please..

2004-09-10 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> vxp <[EMAIL PROTECTED]> writes: : static int : load_handler(module_t mod, int what, void *arg) : { : variable declarations here.. : : case MOD_LOAD: : blah blah blah : break; : case MOD_UNLOAD: :