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