Deleted Added
full compact
ip_mroute.c (227309) ip_mroute.c (232517)
1/*-
2 * Copyright (c) 1989 Stephen Deering
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Stephen Deering of Stanford University.
8 *

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

62 * TODO: Cleanup LSRR removal further.
63 * TODO: Push RSVP stubs into raw_ip.c.
64 * TODO: Use bitstring.h for vif set.
65 * TODO: Fix mrt6_ioctl dangling ref when dynamically loaded.
66 * TODO: Sync ip6_mroute.c with this file.
67 */
68
69#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989 Stephen Deering
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Stephen Deering of Stanford University.
8 *

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

62 * TODO: Cleanup LSRR removal further.
63 * TODO: Push RSVP stubs into raw_ip.c.
64 * TODO: Use bitstring.h for vif set.
65 * TODO: Fix mrt6_ioctl dangling ref when dynamically loaded.
66 * TODO: Sync ip6_mroute.c with this file.
67 */
68
69#include <sys/cdefs.h>
70__FBSDID("$FreeBSD: head/sys/netinet/ip_mroute.c 227309 2011-11-07 15:43:11Z ed $");
70__FBSDID("$FreeBSD: head/sys/netinet/ip_mroute.c 232517 2012-03-04 18:59:38Z zec $");
71
72#include "opt_inet.h"
73#include "opt_mrouting.h"
74
75#define _PIM_VT 1
76
77#include <sys/param.h>
78#include <sys/kernel.h>

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

2817
2818 MALLOC(V_nexpire, u_char *, mfchashsize, M_MRTABLE, M_WAITOK|M_ZERO);
2819 bzero(V_bw_meter_timers, sizeof(V_bw_meter_timers));
2820 callout_init(&V_expire_upcalls_ch, CALLOUT_MPSAFE);
2821 callout_init(&V_bw_upcalls_ch, CALLOUT_MPSAFE);
2822 callout_init(&V_bw_meter_ch, CALLOUT_MPSAFE);
2823}
2824
71
72#include "opt_inet.h"
73#include "opt_mrouting.h"
74
75#define _PIM_VT 1
76
77#include <sys/param.h>
78#include <sys/kernel.h>

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

2817
2818 MALLOC(V_nexpire, u_char *, mfchashsize, M_MRTABLE, M_WAITOK|M_ZERO);
2819 bzero(V_bw_meter_timers, sizeof(V_bw_meter_timers));
2820 callout_init(&V_expire_upcalls_ch, CALLOUT_MPSAFE);
2821 callout_init(&V_bw_upcalls_ch, CALLOUT_MPSAFE);
2822 callout_init(&V_bw_meter_ch, CALLOUT_MPSAFE);
2823}
2824
2825VNET_SYSINIT(vnet_mroute_init, SI_SUB_PSEUDO, SI_ORDER_MIDDLE, vnet_mroute_init,
2825VNET_SYSINIT(vnet_mroute_init, SI_SUB_PSEUDO, SI_ORDER_ANY, vnet_mroute_init,
2826 NULL);
2827
2828static void
2829vnet_mroute_uninit(const void *unused __unused)
2830{
2831
2832 FREE(V_nexpire, M_MRTABLE);
2833 V_nexpire = NULL;

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

2940}
2941
2942static moduledata_t ip_mroutemod = {
2943 "ip_mroute",
2944 ip_mroute_modevent,
2945 0
2946};
2947
2826 NULL);
2827
2828static void
2829vnet_mroute_uninit(const void *unused __unused)
2830{
2831
2832 FREE(V_nexpire, M_MRTABLE);
2833 V_nexpire = NULL;

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

2940}
2941
2942static moduledata_t ip_mroutemod = {
2943 "ip_mroute",
2944 ip_mroute_modevent,
2945 0
2946};
2947
2948DECLARE_MODULE(ip_mroute, ip_mroutemod, SI_SUB_PSEUDO, SI_ORDER_ANY);
2948DECLARE_MODULE(ip_mroute, ip_mroutemod, SI_SUB_PSEUDO, SI_ORDER_MIDDLE);