From owner-freebsd-ipfw@FreeBSD.ORG Mon May 12 06:40:03 2008 Return-Path: Delivered-To: freebsd-ipfw@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B19BF1065679 for ; Mon, 12 May 2008 06:40:03 +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 9E7128FC1B for ; Mon, 12 May 2008 06:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4C6e3OZ012662 for ; Mon, 12 May 2008 06:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4C6e3Uu012661; Mon, 12 May 2008 06:40:03 GMT (envelope-from gnats) Date: Mon, 12 May 2008 06:40:03 GMT Message-Id: <200805120640.m4C6e3Uu012661@freefall.freebsd.org> To: freebsd-ipfw@FreeBSD.org From: "Joost Bekkers" Cc: Subject: Re: kern/117234: [ipfw] [patch] ipfw send_pkt() and ipfw_tick() don't seem to support IPV6 X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joost Bekkers List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 06:40:03 -0000 The following reply was made to PR kern/117234; it has been noted by GNATS. From: "Joost Bekkers" To: "Max Laier" , bug-followup@FreeBSD.org Cc: john.w.court@nokia.com Subject: Re: kern/117234: [ipfw] [patch] ipfw send_pkt() and ipfw_tick() don't seem to support IPV6 Date: Mon, 12 May 2008 08:40:04 +0200 (CEST) Hello I've just tried the patch in this PR and found it not to work (yet). The keep-alive packets that are sent for IPv6 have their tcp port octets in the wrong order. Eg. if a dynamic rule exists for a connetion to port 4000 (0x0FA0), the keepalives are sent to 40975 (0xA00F) I haven't looked into where this difference between ipv4 and ipv6 originates, but forcing the byte-swap in send_pkt() makes everything work. I'd post the change I made, but I'm fairly sertain it's The Wrong Way (tm) to fix this. Greetings Joost.