From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 11 04:44:25 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 A19E216A4CE for ; Sat, 11 Sep 2004 04:44:25 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68F1743D53 for ; Sat, 11 Sep 2004 04:44:25 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 9454 invoked from network); 11 Sep 2004 04:44:25 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail3.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 Sep 2004 04:44:24 -0000 Received: from hydrogen.funkthat.com (wfwnet@localhost.funkthat.com [127.0.0.1])i8B4iOuU022250; Fri, 10 Sep 2004 21:44:24 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i8B4iO1c022249; Fri, 10 Sep 2004 21:44:24 -0700 (PDT) Date: Fri, 10 Sep 2004 21:44:24 -0700 From: John-Mark Gurney To: vxp Message-ID: <20040911044424.GA72089@funkthat.com> Mail-Followup-To: vxp , freebsd-hackers@freebsd.org References: <20040910212926.V2370@digital-security.org> <20040911035133.GA74157@cre85086tuf.rose.agilent.com> <20040911040353.GZ72089@funkthat.com> <20040910223013.V2617@digital-security.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040910223013.V2617@digital-security.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html 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 Reply-To: John-Mark Gurney 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:44:25 -0000 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, 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? not sure, but make sure you're including sys/libkern.h, since that is the header file that it's defined as an inline function... > 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" > > > _______________________________________________ > 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" -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."