From matthias.andree@web.de  Sat Jul 14 12:11:13 2001
Return-Path: <matthias.andree@web.de>
Received: from krusty.e-technik.uni-dortmund.de (krusty.E-Technik.Uni-Dortmund.DE [129.217.163.1])
	by hub.freebsd.org (Postfix) with ESMTP id D932C37B403
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Jul 2001 12:11:12 -0700 (PDT)
	(envelope-from matthias.andree@web.de)
Received: from emma1.emma.line.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])
	by krusty.e-technik.uni-dortmund.de (Postfix) with ESMTP id B15CDA3827
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Jul 2001 21:11:10 +0200 (CEST)
Received: from freebsd.emma.line.org (freebsd.emma.line.org [192.168.0.4])
	by emma1.emma.line.org (Postfix) with ESMTP id 2EBFCA2001
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Jul 2001 21:11:10 +0200 (CEST)
Received: by freebsd.emma.line.org (Postfix, from userid 500)
	id 797B72D310; Sat, 14 Jul 2001 21:11:09 +0200 (CEST)
Message-Id: <20010714191109.797B72D310@freebsd.emma.line.org>
Date: Sat, 14 Jul 2001 21:11:09 +0200 (CEST)
From: matthias.andree@web.de
Reply-To: matthias.andree@web.de
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: IN6_IS_ADDR_* macros don't cast their arguments to const
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28969
>Category:       misc
>Synopsis:       IN6_IS_ADDR_* macros don't cast their arguments to const
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ume
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 14 12:20:29 PDT 2001
>Closed-Date:    Sun Jul 15 11:36:55 PDT 2001
>Last-Modified:  Sun Jul 15 11:39:08 PDT 2001
>Originator:     Matthias Andree <matthias.andree@web.de>
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD freebsd.emma.line.org 4.3-RELEASE FreeBSD 4.3-RELEASE #5: Tue Jul 10 17:12:16 CEST 2001 root@freebsd.emma.line.org:/usr/src/sys/compile/M2A2 i386


	
>Description:
IN6_IS_ADDR_V4MAPPED does some casts, but omits "const" from the cast, thus,

	if (IN6_IS_ADDR_V4MAPPED(
	    &((const struct sockaddr_in6 *)sa)->sin6_addr)) {

will cause bogus compiler warnings.

	
>How-To-Repeat:
	
>Fix:
	Fix the IN6_IS_ADDR_* macros to cast to const if they intend to only read.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ume 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Sat Jul 14 15:10:51 PDT 2001 
Responsible-Changed-Why:  
It would probably be best to take this up with the KAME people, but maybe 
ume can help you with that. 





http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28969 
State-Changed-From-To: open->closed 
State-Changed-By: ume 
State-Changed-When: Sun Jul 15 11:36:55 PDT 2001 
State-Changed-Why:  
Thank you for your report. 
It was already in 5-CURRENT and 4-STABLE.  You'll see it in 
next release. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28969 
>Unformatted:
