Deleted Added
full compact
raw_ip6.c (67708) raw_ip6.c (70254)
1/*
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
1/*
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/netinet6/raw_ip6.c 67708 2000-10-27 11:45:49Z phk $
29 * $FreeBSD: head/sys/netinet6/raw_ip6.c 70254 2000-12-21 21:44:31Z bmilekic $
30 */
31
32/*
33 * Copyright (c) 1982, 1986, 1988, 1993
34 * The Regents of the University of California. All rights reserved.
35 *
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions

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

328 error = ENOBUFS;
329 goto bad;
330 }
331 icmp6 = mtod(m, struct icmp6_hdr *);
332 type = icmp6->icmp6_type;
333 code = icmp6->icmp6_code;
334 }
335
30 */
31
32/*
33 * Copyright (c) 1982, 1986, 1988, 1993
34 * The Regents of the University of California. All rights reserved.
35 *
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions

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

328 error = ENOBUFS;
329 goto bad;
330 }
331 icmp6 = mtod(m, struct icmp6_hdr *);
332 type = icmp6->icmp6_type;
333 code = icmp6->icmp6_code;
334 }
335
336 M_PREPEND(m, sizeof(*ip6), M_WAIT);
336 M_PREPEND(m, sizeof(*ip6), M_TRYWAIT);
337 ip6 = mtod(m, struct ip6_hdr *);
338
339 /*
340 * Next header might not be ICMP6 but use its pseudo header anyway.
341 */
342 ip6->ip6_dst = *dst;
343
344 /*

--- 367 unchanged lines hidden ---
337 ip6 = mtod(m, struct ip6_hdr *);
338
339 /*
340 * Next header might not be ICMP6 but use its pseudo header anyway.
341 */
342 ip6->ip6_dst = *dst;
343
344 /*

--- 367 unchanged lines hidden ---