Deleted Added
full compact
frag6.c (157675) frag6.c (157927)
1/* $FreeBSD: head/sys/netinet6/frag6.c 157675 2006-04-12 03:06:20Z rwatson $ */
1/* $FreeBSD: head/sys/netinet6/frag6.c 157927 2006-04-21 09:25:40Z ps $ */
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

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

82#define IP6Q_LOCK_ASSERT() mtx_assert(&ip6qlock, MA_OWNED)
83#define IP6Q_UNLOCK() mtx_unlock(&ip6qlock)
84
85static MALLOC_DEFINE(M_FTABLE, "fragment", "fragment reassembly header");
86
87/*
88 * Initialise reassembly queue and fragment identifier.
89 */
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

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

82#define IP6Q_LOCK_ASSERT() mtx_assert(&ip6qlock, MA_OWNED)
83#define IP6Q_UNLOCK() mtx_unlock(&ip6qlock)
84
85static MALLOC_DEFINE(M_FTABLE, "fragment", "fragment reassembly header");
86
87/*
88 * Initialise reassembly queue and fragment identifier.
89 */
90static void
91frag6_change(void *tag)
92{
93
94 ip6_maxfragpackets = nmbclusters / 4;
95 ip6_maxfrags = nmbclusters / 4;
96}
97
90void
91frag6_init()
92{
93
94 ip6_maxfragpackets = nmbclusters / 4;
95 ip6_maxfrags = nmbclusters / 4;
98void
99frag6_init()
100{
101
102 ip6_maxfragpackets = nmbclusters / 4;
103 ip6_maxfrags = nmbclusters / 4;
104 EVENTHANDLER_REGISTER(nmbclusters_change,
105 frag6_change, NULL, EVENTHANDLER_PRI_ANY);
96
97 IP6Q_LOCK_INIT();
98
99 ip6q.ip6q_next = ip6q.ip6q_prev = &ip6q;
100}
101
102/*
103 * In RFC2460, fragment and reassembly rule do not agree with each other,

--- 635 unchanged lines hidden ---
106
107 IP6Q_LOCK_INIT();
108
109 ip6q.ip6q_next = ip6q.ip6q_prev = &ip6q;
110}
111
112/*
113 * In RFC2460, fragment and reassembly rule do not agree with each other,

--- 635 unchanged lines hidden ---