Re: help with a module, please..

2004-09-13 Thread Iasen Kostov
vxp wrote: 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 ./i

Re: help with a module, please..

2004-09-11 Thread Conrad J. Sabatier
On Fri, 10 Sep 2004 22:23:16 -0400 (EDT), vxp <[EMAIL PROTECTED]> wrote: > > 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 fil

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: :

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 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: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
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,

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]"

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