bin/77554: type mismatch in IPv6 firewall rule parser
Joerg Wallerich
jw at net.in.tum.de
Tue Feb 15 02:30:21 PST 2005
>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 at 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:
More information about the freebsd-bugs
mailing list