Deleted Added
full compact
ip6_input.c (193274) ip6_input.c (193731)
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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94
61 */
62
63#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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94
61 */
62
63#include <sys/cdefs.h>
64__FBSDID("$FreeBSD: head/sys/netinet6/ip6_input.c 193274 2009-06-01 21:29:54Z zec $");
64__FBSDID("$FreeBSD: head/sys/netinet6/ip6_input.c 193731 2009-06-08 17:15:40Z zec $");
65
66#include "opt_inet.h"
67#include "opt_inet6.h"
68#include "opt_ipsec.h"
69#include "opt_route.h"
70
71#include <sys/param.h>
72#include <sys/systm.h>

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

298 inet6_pfil_hook.ph_af = AF_INET6;
299 if ((i = pfil_head_register(&inet6_pfil_hook)) != 0)
300 printf("%s: WARNING: unable to register pfil hook, "
301 "error %d\n", __func__, i);
302
303 netisr_register(&ip6_nh);
304}
305
65
66#include "opt_inet.h"
67#include "opt_inet6.h"
68#include "opt_ipsec.h"
69#include "opt_route.h"
70
71#include <sys/param.h>
72#include <sys/systm.h>

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

298 inet6_pfil_hook.ph_af = AF_INET6;
299 if ((i = pfil_head_register(&inet6_pfil_hook)) != 0)
300 printf("%s: WARNING: unable to register pfil hook, "
301 "error %d\n", __func__, i);
302
303 netisr_register(&ip6_nh);
304}
305
306#ifdef VIMAGE
307void
308ip6_destroy()
309{
310 INIT_VNET_INET6(curvnet);
311
312 nd6_destroy();
313 callout_drain(&V_in6_tmpaddrtimer_ch);
314}
315#endif
316
306static int
307ip6_init2_vnet(const void *unused __unused)
308{
309 INIT_VNET_INET6(curvnet);
310
311 /* nd6_timer_init */
312 callout_init(&V_nd6_timer_ch, 0);
313 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, curvnet);

--- 1406 unchanged lines hidden ---
317static int
318ip6_init2_vnet(const void *unused __unused)
319{
320 INIT_VNET_INET6(curvnet);
321
322 /* nd6_timer_init */
323 callout_init(&V_nd6_timer_ch, 0);
324 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, curvnet);

--- 1406 unchanged lines hidden ---