Deleted Added
full compact
xform_esp.c (139823) xform_esp.c (156756)
1/* $FreeBSD: head/sys/netipsec/xform_esp.c 139823 2005-01-07 01:45:51Z imp $ */
1/* $FreeBSD: head/sys/netipsec/xform_esp.c 156756 2006-03-15 21:11:11Z sam $ */
2/* $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 angelos Exp $ */
3/*-
4 * The authors of this code are John Ioannidis (ji@tla.org),
5 * Angelos D. Keromytis (kermit@csd.uch.gr) and
6 * Niels Provos (provos@physnet.uni-hamburg.de).
7 *
8 * The original version of this code was written by John Ioannidis
9 * for BSD/OS in Athens, Greece, in November 1995.

--- 698 unchanged lines hidden (view full) ---

708 espstat.esps_toobig++;
709 error = EMSGSIZE;
710 goto bad;
711 }
712
713 /* Update the counters. */
714 espstat.esps_obytes += m->m_pkthdr.len - skip;
715
2/* $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 angelos Exp $ */
3/*-
4 * The authors of this code are John Ioannidis (ji@tla.org),
5 * Angelos D. Keromytis (kermit@csd.uch.gr) and
6 * Niels Provos (provos@physnet.uni-hamburg.de).
7 *
8 * The original version of this code was written by John Ioannidis
9 * for BSD/OS in Athens, Greece, in November 1995.

--- 698 unchanged lines hidden (view full) ---

708 espstat.esps_toobig++;
709 error = EMSGSIZE;
710 goto bad;
711 }
712
713 /* Update the counters. */
714 espstat.esps_obytes += m->m_pkthdr.len - skip;
715
716 m = m_clone(m);
716 m = m_unshare(m, M_NOWAIT);
717 if (m == NULL) {
718 DPRINTF(("%s: cannot clone mbuf chain, SA %s/%08lx\n", __func__,
719 ipsec_address(&saidx->dst), (u_long) ntohl(sav->spi)));
720 espstat.esps_hdrops++;
721 error = ENOBUFS;
722 goto bad;
723 }
724

--- 236 unchanged lines hidden ---
717 if (m == NULL) {
718 DPRINTF(("%s: cannot clone mbuf chain, SA %s/%08lx\n", __func__,
719 ipsec_address(&saidx->dst), (u_long) ntohl(sav->spi)));
720 espstat.esps_hdrops++;
721 error = ENOBUFS;
722 goto bad;
723 }
724

--- 236 unchanged lines hidden ---