Deleted Added
full compact
frag6.c (196019) frag6.c (207369)
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

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

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 * $KAME: frag6.c,v 1.33 2002/01/07 11:34:48 kjc Exp $
30 */
31
32#include <sys/cdefs.h>
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

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

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 * $KAME: frag6.c,v 1.33 2002/01/07 11:34:48 kjc Exp $
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet6/frag6.c 196019 2009-08-01 19:26:27Z rwatson $");
33__FBSDID("$FreeBSD: head/sys/netinet6/frag6.c 207369 2010-04-29 11:52:42Z bz $");
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>

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

101 V_ip6_maxfragpackets = nmbclusters / 4;
102 V_ip6_maxfrags = nmbclusters / 4;
103}
104
105void
106frag6_init(void)
107{
108
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>

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

101 V_ip6_maxfragpackets = nmbclusters / 4;
102 V_ip6_maxfrags = nmbclusters / 4;
103}
104
105void
106frag6_init(void)
107{
108
109 V_ip6q.ip6q_next = V_ip6q.ip6q_prev = &V_ip6q;
110 V_ip6_maxfragpackets = nmbclusters / 4;
111 V_ip6_maxfrags = nmbclusters / 4;
109 V_ip6_maxfragpackets = nmbclusters / 4;
110 V_ip6_maxfrags = nmbclusters / 4;
111 V_ip6q.ip6q_next = V_ip6q.ip6q_prev = &V_ip6q;
112
113 if (!IS_DEFAULT_VNET(curvnet))
114 return;
115
112
113 if (!IS_DEFAULT_VNET(curvnet))
114 return;
115
116 IP6Q_LOCK_INIT();
117 EVENTHANDLER_REGISTER(nmbclusters_change,
118 frag6_change, NULL, EVENTHANDLER_PRI_ANY);
116 EVENTHANDLER_REGISTER(nmbclusters_change,
117 frag6_change, NULL, EVENTHANDLER_PRI_ANY);
118
119 IP6Q_LOCK_INIT();
119}
120
121/*
122 * In RFC2460, fragment and reassembly rule do not agree with each other,
123 * in terms of next header field handling in fragment header.
124 * While the sender will use the same value for all of the fragmented packets,
125 * receiver is suggested not to check the consistency.
126 *

--- 652 unchanged lines hidden ---
120}
121
122/*
123 * In RFC2460, fragment and reassembly rule do not agree with each other,
124 * in terms of next header field handling in fragment header.
125 * While the sender will use the same value for all of the fragmented packets,
126 * receiver is suggested not to check the consistency.
127 *

--- 652 unchanged lines hidden ---