Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2001 21:11:09 +0200 (CEST)
From:      matthias.andree@web.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/28969: IN6_IS_ADDR_* macros don't cast their arguments to const
Message-ID:  <20010714191109.797B72D310@freebsd.emma.line.org>

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

>Number:         28969
>Category:       misc
>Synopsis:       IN6_IS_ADDR_* macros don't cast their arguments to const
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 14 12:20:29 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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