Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2005 10:27:21 GMT
From:      Joerg Wallerich <jw@net.in.tum.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/77554: type mismatch in IPv6 firewall rule parser
Message-ID:  <200502151027.j1FARLM4080710@www.freebsd.org>
Resent-Message-ID: <200502151030.j1FAUK3F049403@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502151027.j1FARLM4080710>