From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 15 10:30:21 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B356C16A4D3 for ; Tue, 15 Feb 2005 10:30:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE2F143D69 for ; Tue, 15 Feb 2005 10:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1FAUKDs049405 for ; Tue, 15 Feb 2005 10:30:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1FAUK3F049403; Tue, 15 Feb 2005 10:30:20 GMT (envelope-from gnats) Resent-Date: Tue, 15 Feb 2005 10:30:20 GMT Resent-Message-Id: <200502151030.j1FAUK3F049403@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, Joerg Wallerich Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 635D616A4CE for ; Tue, 15 Feb 2005 10:27:22 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A73143D5C for ; Tue, 15 Feb 2005 10:27:22 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j1FARLiB080711 for ; Tue, 15 Feb 2005 10:27:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j1FARLM4080710; Tue, 15 Feb 2005 10:27:21 GMT (envelope-from nobody) Message-Id: <200502151027.j1FARLM4080710@www.freebsd.org> Date: Tue, 15 Feb 2005 10:27:21 GMT From: Joerg Wallerich To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/77554: type mismatch in IPv6 firewall rule parser X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 10:30:21 -0000 >Number: 77554 >Category: bin >Synopsis: type mismatch in IPv6 firewall rule parser >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 15 10:30:20 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Joerg Wallerich >Release: 5.3-STABLE, Tue Feb 15 2005 >Organization: Technische Universitaet Muenchen >Environment: FreeBSD falcon.net.in.tum.de 5.3-STABLE FreeBSD 5.3-STABLE #7: Tue Feb 15 11:01:37 CET 2005 root@falcon.net.in.tum.de:/usr/obj/usr/src/sys/FALCON amd64 >Description: sbin/ip6fw has a type mismatch (unsigned in struct declaration vs. u_long as parameter type) that leads to errors in the rule parser for icmp type codes. This is a problem on all 64-bit platforms, where sizeof(int) != sizeof(long) >How-To-Repeat: falcon# ip6fw add allow ipv6-icmp from any to any icmptype 128,129 00000 allow ipv6-icmp from any to any icmptype >Fix: --- ip6fw.c.orig Tue Feb 15 11:11:43 2005 +++ ip6fw.c Tue Feb 15 11:26:30 2005 @@ -764,7 +764,7 @@ void fill_icmptypes(types, vp, fw_flg) - u_long *types; + unsigned *types; char **vp; u_short *fw_flg; { >Release-Note: >Audit-Trail: >Unformatted: