Subject: lurking caddr_t in ip6_flow.c
To: None <current-users@netbsd.org>
From: Tobias Nygren <tnn+nbsd@nygren.pp.se>
List: current-users
Date: 03/23/2007 18:33:42
Index: ip6_flow.c
===================================================================
RCS file: /cvsroot/src/sys/netinet6/ip6_flow.c,v
retrieving revision 1.4
diff -u -r1.4 ip6_flow.c
--- ip6_flow.c 23 Mar 2007 14:24:22 -0000 1.4
+++ ip6_flow.c 23 Mar 2007 17:23:26 -0000
@@ -233,7 +233,7 @@
if ((m->m_flags & (M_BCAST|M_MCAST)) != 0)
return 0;
- if (IP6_HDR_ALIGNED_P(mtod(m, caddr_t)) == 0) {
+ if (IP6_HDR_ALIGNED_P(mtod(m, void *)) == 0) {
if ((m = m_copyup(m, sizeof(struct ip6_hdr),
(max_linkhdr + 3) & ~3)) == NULL) {
return 0;
Cheers,
Tobias