Bug 28969

Summary: IN6_IS_ADDR_* macros don't cast their arguments to const
Product: Base System Reporter: matthias.andree <matthias.andree>
Component: miscAssignee: Hajimu UMEMOTO <ume>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description matthias.andree 2001-07-14 20:20:29 UTC
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.

Fix: 

Fix the IN6_IS_ADDR_* macros to cast to const if they intend to only read.
Comment 1 dwmalone freebsd_committer freebsd_triage 2001-07-14 23:10:51 UTC
Responsible Changed
From-To: freebsd-bugs->ume

It would probably be best to take this up with the KAME people, but maybe 
ume can help you with that.
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2001-07-15 19:36:55 UTC
State Changed
From-To: open->closed

Thank you for your report. 
It was already in 5-CURRENT and 4-STABLE.  You'll see it in 
next release.