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
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
>
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
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
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/
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
maybe 'kldload ./icmp.ko'
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
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,
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
>
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
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
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:
:
12 matches
Mail list logo