Deleted Added
full compact
frag6.c (121684) frag6.c (133720)
1/* $FreeBSD: head/sys/netinet6/frag6.c 121684 2003-10-29 15:07:04Z ume $ */
1/* $FreeBSD: head/sys/netinet6/frag6.c 133720 2004-08-14 15:32:40Z dwmalone $ */
2/* $KAME: frag6.c,v 1.33 2002/01/07 11:34:48 kjc Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
2/* $KAME: frag6.c,v 1.33 2002/01/07 11:34:48 kjc Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include "opt_random_ip_id.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/malloc.h>
38#include <sys/mbuf.h>
39#include <sys/domain.h>
40#include <sys/protosw.h>
41#include <sys/socket.h>
42#include <sys/errno.h>

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

93frag6_init()
94{
95
96 ip6_maxfragpackets = nmbclusters / 4;
97 ip6_maxfrags = nmbclusters / 4;
98
99 IP6Q_LOCK_INIT();
100
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/malloc.h>
36#include <sys/mbuf.h>
37#include <sys/domain.h>
38#include <sys/protosw.h>
39#include <sys/socket.h>
40#include <sys/errno.h>

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

91frag6_init()
92{
93
94 ip6_maxfragpackets = nmbclusters / 4;
95 ip6_maxfrags = nmbclusters / 4;
96
97 IP6Q_LOCK_INIT();
98
101#ifndef RANDOM_IP_ID
102 ip6_id = arc4random();
103#endif
104 ip6q.ip6q_next = ip6q.ip6q_prev = &ip6q;
105}
106
107/*
108 * In RFC2460, fragment and reassembly rule do not agree with each other,
109 * in terms of next header field handling in fragment header.
110 * While the sender will use the same value for all of the fragmented packets,
111 * receiver is suggested not to check the consistency.

--- 635 unchanged lines hidden ---
99 ip6q.ip6q_next = ip6q.ip6q_prev = &ip6q;
100}
101
102/*
103 * In RFC2460, fragment and reassembly rule do not agree with each other,
104 * in terms of next header field handling in fragment header.
105 * While the sender will use the same value for all of the fragmented packets,
106 * receiver is suggested not to check the consistency.

--- 635 unchanged lines hidden ---