Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Sep 2004 22:33:49 -0400 (EDT)
From:      vxp <vxp@digital-security.org>
To:        John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: help with a module, please..
Message-ID:  <20040910223013.V2617@digital-security.org>
In-Reply-To: <20040911040353.GZ72089@funkthat.com>
References:  <20040910212926.V2370@digital-security.org> <20040911035133.GA74157@cre85086tuf.rose.agilent.com> <20040911040353.GZ72089@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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_ replace)
icmp_input() with my own function. which is basically the same function
but with about 4 lines of modification done to it.

i've #include'd every header file that /sys/netinet/ip_icmp.c uses..
so how come min() is defined there, but not defined here?

thanks,

Val

On Fri, 10 Sep 2004, John-Mark Gurney wrote:

> 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
> > digital-security#
>
> What does dmesg say?
>
> --
>   John-Mark Gurney				Voice: +1 415 225 5579
>
>      "All that I will do, has been done, All that I have, has not."
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040910223013.V2617>