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 retrieving revision 1.109 retrieving revision 1.110 diff -u -p -r1.109 -r1.110 --- src/sys/netinet/udp_usrreq.c 2003/09/04 09:17:03 1.109 +++ src/sys/netinet/udp_usrreq.c 2003/09/12 09:55:22 1.110 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.109 2003/09/04 09:17:03 itojun Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.110 2003/09/12 09:55:22 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.109 2003/09/04 09:17:03 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.110 2003/09/12 09:55:22 itojun Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -500,6 +500,9 @@ udp4_sendup(m, off, src, so) /* check AH/ESP integrity. */ if (so != NULL && ipsec4_in_reject_so(m, so)) { ipsecstat.in_polvio++; + if ((n = m_copy(m, 0, M_COPYALL)) != NULL) + icmp_error(n, ICMP_UNREACH, ICMP_UNREACH_ADMIN_PROHIBIT, + 0, 0); return; } #endif /*IPSEC*/ @@ -546,6 +549,9 @@ udp6_sendup(m, off, src, so) /* check AH/ESP integrity. */ if (so != NULL && ipsec6_in_reject_so(m, so)) { ipsec6stat.in_polvio++; + if ((n = m_copy(n, 0, M_COPYALL)) != NULL) + icmp6_error(n, ICMP6_DST_UNREACH, + ICMP6_DST_UNREACH_ADMIN, 0); return; } #endif /*IPSEC*/