From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 16 07:50:01 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7B7C16A41A for ; Tue, 16 Oct 2007 07:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DBA0F13C4B0 for ; Tue, 16 Oct 2007 07:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9G7o16Q065549 for ; Tue, 16 Oct 2007 07:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9G7o1NZ065548; Tue, 16 Oct 2007 07:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 16 Oct 2007 07:50:01 GMT Resent-Message-Id: <200710160750.l9G7o1NZ065548@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Court Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B00516A417 for ; Tue, 16 Oct 2007 07:40:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2EC9B13C447 for ; Tue, 16 Oct 2007 07:40:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9G7eBJM020109 for ; Tue, 16 Oct 2007 07:40:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l9G7eB9O020108; Tue, 16 Oct 2007 07:40:11 GMT (envelope-from nobody) Message-Id: <200710160740.l9G7eB9O020108@www.freebsd.org> Date: Tue, 16 Oct 2007 07:40:11 GMT From: John Court To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/117234: ipfw send_pkt() and ipfw_tick() don't seem to support IPV6 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2007 07:50:02 -0000 >Number: 117234 >Category: kern >Synopsis: ipfw send_pkt() and ipfw_tick() don't seem to support IPV6 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 16 07:50:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: John Court >Release: 6.1 >Organization: Nokia >Environment: Hmm sorry but this was found from a review of the code and observance of an issue when porting it to another FreeBSD based platform. >Description: I can't see how the send_pkt() routine in ip_fw2.c would create a valid ipv6 source and destination address. This is relevent due to its use in ipfw_tick(). Basically in an ipv6 configuration when ipfw_tick() goes off to send a keep-alive, I think send_pkt() would produce an erroneous IPV4 style packet due to its use of id->dst_ip and id->src_ip rather than dst_ip6 and src_ip6 ? Further, ipfw_tick() then calls ip_output() rather than any ip6_output() routine. Cheers John >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: