Deleted Added
full compact
ip6_ipsec.c (230442) ip6_ipsec.c (236170)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/netinet6/ip6_ipsec.c 230442 2012-01-22 02:13:19Z bz $");
31__FBSDID("$FreeBSD: head/sys/netinet6/ip6_ipsec.c 236170 2012-05-28 09:30:13Z bz $");
32
33#include "opt_inet.h"
34#include "opt_inet6.h"
35#include "opt_ipsec.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>

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

286 /* XXX splx(s); */
287 goto done;
288 }
289 }
290
291 /*
292 * Do delayed checksums now because we send before
293 * this is done in the normal processing path.
32
33#include "opt_inet.h"
34#include "opt_inet6.h"
35#include "opt_ipsec.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>

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

286 /* XXX splx(s); */
287 goto done;
288 }
289 }
290
291 /*
292 * Do delayed checksums now because we send before
293 * this is done in the normal processing path.
294 * XXX-BZ CSUM_DELAY_DATA_IPV6?
294 */
295 if ((*m)->m_pkthdr.csum_flags & CSUM_DELAY_DATA) {
296 ipseclog((LOG_DEBUG,
297 "%s: we do not support IPv4 over IPv6", __func__));
298#ifdef INET
299 in_delayed_cksum(*m);
300#endif
301 (*m)->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA;

--- 89 unchanged lines hidden ---
295 */
296 if ((*m)->m_pkthdr.csum_flags & CSUM_DELAY_DATA) {
297 ipseclog((LOG_DEBUG,
298 "%s: we do not support IPv4 over IPv6", __func__));
299#ifdef INET
300 in_delayed_cksum(*m);
301#endif
302 (*m)->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA;

--- 89 unchanged lines hidden ---