From owner-freebsd-net@FreeBSD.ORG Wed Aug 22 13:00:18 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4909916A4C6 for ; Wed, 22 Aug 2007 13:00:18 +0000 (UTC) (envelope-from ivo.vachkov@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id EAE0F13C45B for ; Wed, 22 Aug 2007 13:00:17 +0000 (UTC) (envelope-from ivo.vachkov@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so15228anc for ; Wed, 22 Aug 2007 06:00:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=p1OSSF2mXo8n4mWxBAG0h7ljZMnDN1OgngZ3f6e5olq114yVF4xIUZtaQt+Q52HM+IPJNLUboQuNCXUgq61ews2IROOurZcUBHnFfNKhvrUt2t4wtEUvOsq5Bk74b6a/ehnImHwuScVujoFIk0thTYhSpitsJTdTsYshBxsOWX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LXAj7smKIA1dF+h7MWoyg16MW+mTa7p0aXD3A4DxRjK6KW7kZ4z6kMUKEH/sZ8ODbjZYwN22F0JsawjdEOJ16xmxF+M+UH1UWZelSVqwQHT59/H4xwQHactOOOhNThIDg2qqu4omkQBQf/dm36LQy1r9alJwISiqSOWF/52h908= Received: by 10.90.116.6 with SMTP id o6mr724251agc.1187787599163; Wed, 22 Aug 2007 05:59:59 -0700 (PDT) Received: by 10.90.119.18 with HTTP; Wed, 22 Aug 2007 05:59:59 -0700 (PDT) Message-ID: Date: Wed, 22 Aug 2007 15:59:59 +0300 From: "Ivo Vachkov" To: freebsd-net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Wrong function descriptio X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 13:00:18 -0000 Hello all, I find this: . . . /* * Try to forward a packet based on the destination address. * This is a fast path optimized for the plain forwarding case. * If the packet is handled (and consumed) here then we return 1; * otherwise 0 is returned and the packet should be delivered * to ip_input for full processing. */ struct mbuf * ip_fastforward(struct mbuf *m) . . . in ip_fastfwd.c (FreeBSD CURRENT source tree). I'd say this is probably true for the NetBSD, but i see that return value is actually a pointer to struct mbut, not an integer. Probably someone should update it with the right description of the return value type and meaning. /ipv