Kill caddr_t introduced in the previous revision

Fix build with FAST_IPSEC
This commit is contained in:
degroote 2008-06-27 17:28:24 +00:00
parent 04fc7d252f
commit ba4ebf7e6b
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipsec.c,v 1.38 2008/06/27 05:18:58 mlelstv Exp $ */ /* $NetBSD: ipsec.c,v 1.39 2008/06/27 17:28:24 degroote Exp $ */
/* $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipsec/ipsec.c,v 1.2.2.2 2003/07/01 01:38:13 sam Exp $ */ /* $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipsec/ipsec.c,v 1.2.2.2 2003/07/01 01:38:13 sam Exp $ */
/* $KAME: ipsec.c,v 1.103 2001/05/24 07:14:18 sakane Exp $ */ /* $KAME: ipsec.c,v 1.103 2001/05/24 07:14:18 sakane Exp $ */
@ -32,7 +32,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.38 2008/06/27 05:18:58 mlelstv Exp $"); __KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.39 2008/06/27 17:28:24 degroote Exp $");
/* /*
* IPsec controller part. * IPsec controller part.
@ -988,7 +988,7 @@ ipsec4_get_ulp(struct mbuf *m, struct secpolicyindex *spidx, int needport)
spidx->ul_proto = nxt; spidx->ul_proto = nxt;
if (off + sizeof(struct icmp) > m->m_pkthdr.len) if (off + sizeof(struct icmp) > m->m_pkthdr.len)
return; return;
m_copydata(m, off, sizeof(icmph), (caddr_t)&icmph); m_copydata(m, off, sizeof(icmph), &icmph);
((struct sockaddr_in *)&spidx->src)->sin_port = ((struct sockaddr_in *)&spidx->src)->sin_port =
htons((uint16_t)icmph.icmp_type); htons((uint16_t)icmph.icmp_type);
((struct sockaddr_in *)&spidx->dst)->sin_port = ((struct sockaddr_in *)&spidx->dst)->sin_port =
@ -1091,7 +1091,7 @@ ipsec6_get_ulp(struct mbuf *m, struct secpolicyindex *spidx,
spidx->ul_proto = nxt; spidx->ul_proto = nxt;
if (off + sizeof(struct icmp6_hdr) > m->m_pkthdr.len) if (off + sizeof(struct icmp6_hdr) > m->m_pkthdr.len)
break; break;
m_copydata(m, off, sizeof(icmph), (caddr_t)&icmph); m_copydata(m, off, sizeof(icmph), &icmph);
((struct sockaddr_in6 *)&spidx->src)->sin6_port = ((struct sockaddr_in6 *)&spidx->src)->sin6_port =
htons((uint16_t)icmph.icmp6_type); htons((uint16_t)icmph.icmp6_type);
((struct sockaddr_in6 *)&spidx->dst)->sin6_port = ((struct sockaddr_in6 *)&spidx->dst)->sin6_port =