Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.158.2.3 retrieving revision 1.159 diff -u -p -r1.158.2.3 -r1.159 --- src/sys/netinet/udp_usrreq.c 2007/10/09 13:44:52 1.158.2.3 +++ src/sys/netinet/udp_usrreq.c 2007/05/12 02:03:15 1.159 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.158.2.3 2007/10/09 13:44:52 ad Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.159 2007/05/12 02:03:15 dyoung Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.158.2.3 2007/10/09 13:44:52 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.159 2007/05/12 02:03:15 dyoung Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -617,14 +617,14 @@ udp4_sendup(struct mbuf *m, int off /* o /* check AH/ESP integrity. */ if (so != NULL && ipsec4_in_reject_so(m, so)) { ipsecstat.in_polvio++; - if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) + if ((n = m_copy(m, 0, M_COPYALL)) != NULL) icmp_error(n, ICMP_UNREACH, ICMP_UNREACH_ADMIN_PROHIBIT, 0, 0); return; } #endif /*IPSEC*/ - if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) { + if ((n = m_copy(m, 0, M_COPYALL)) != NULL) { if (inp && (inp->inp_flags & INP_CONTROLOPTS || so->so_options & SO_TIMESTAMP)) { struct ip *ip = mtod(n, struct ip *); @@ -664,14 +664,14 @@ udp6_sendup(struct mbuf *m, int off /* o /* check AH/ESP integrity. */ if (so != NULL && ipsec6_in_reject_so(m, so)) { ipsec6stat.in_polvio++; - if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) + if ((n = m_copy(m, 0, M_COPYALL)) != NULL) icmp6_error(n, ICMP6_DST_UNREACH, ICMP6_DST_UNREACH_ADMIN, 0); return; } #endif /*IPSEC*/ - if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) { + if ((n = m_copy(m, 0, M_COPYALL)) != NULL) { if (in6p && (in6p->in6p_flags & IN6P_CONTROLOPTS || in6p->in6p_socket->so_options & SO_TIMESTAMP)) { struct ip6_hdr *ip6 = mtod(n, struct ip6_hdr *); @@ -1528,7 +1528,7 @@ udp4_espinudp(struct mbuf **mp, int off, m_tag_prepend(n, tag); #ifdef FAST_IPSEC - ipsec4_common_input(n, iphdrlen, IPPROTO_ESP); + ipsec4_common_input(n, iphdrlen); #else esp4_input(n, iphdrlen); #endif