From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 11 04:09:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B67416A4CE for ; Sat, 11 Sep 2004 04:09:19 +0000 (GMT) Received: from digital-security.org (digital-security.org [216.254.116.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8214C43D1D for ; Sat, 11 Sep 2004 04:09:17 +0000 (GMT) (envelope-from vxp@digital-security.org) Received: from digital-security.org ([216.254.116.252] helo=ownage.digital-security.org ident=vxp) by digital-security.org with esmtp (Exim 4.41 (FreeBSD)) id 1C5xi1-0000gV-K3; Fri, 10 Sep 2004 22:33:50 -0400 Date: Fri, 10 Sep 2004 22:33:49 -0400 (EDT) From: vxp To: John-Mark Gurney In-Reply-To: <20040911040353.GZ72089@funkthat.com> Message-ID: <20040910223013.V2617@digital-security.org> References: <20040910212926.V2370@digital-security.org> <20040911035133.GA74157@cre85086tuf.rose.agilent.com> <20040911040353.GZ72089@funkthat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -3.9 (---) X-Spam-Report: Spam detection software, running on the system "ownage.digital-security.org", hasmessageblock similar future email. If you have any questions, see the administrator of that system for details.gettinglooki = hlen + min(icmplen, ICMP_ADVLENMIN); [...] Content analysis details: (-3.9 points, 3.0 required) pts rule name description --------------------------------------------------1% [score: 0.0000] 1.1 AWL AWL: Auto-whitelist adjustment cc: freebsd-hackers@freebsd.org Subject: Re: help with a module, please.. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 04:09:19 -0000 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" >