| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: ip_mroute.c,v 1.161 2018/07/11 05:25:45 maxv Exp $ */ | | 1 | /* $NetBSD: ip_mroute.c,v 1.162 2018/07/11 12:48:42 martin Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1992, 1993 | | 4 | * Copyright (c) 1992, 1993 |
5 | * The Regents of the University of California. All rights reserved. | | 5 | * The Regents of the University of California. All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to Berkeley by | | 7 | * This code is derived from software contributed to Berkeley by |
8 | * Stephen Deering of Stanford University. | | 8 | * Stephen Deering of Stanford University. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -83,27 +83,27 @@ | | | @@ -83,27 +83,27 @@ |
83 | * Modified by Charles M. Hannum, NetBSD, May 1995. | | 83 | * Modified by Charles M. Hannum, NetBSD, May 1995. |
84 | * Modified by Ahmed Helmy, SGI, June 1996 | | 84 | * Modified by Ahmed Helmy, SGI, June 1996 |
85 | * Modified by George Edmond Eddy (Rusty), ISI, February 1998 | | 85 | * Modified by George Edmond Eddy (Rusty), ISI, February 1998 |
86 | * Modified by Pavlin Radoslavov, USC/ISI, May 1998, August 1999, October 2000 | | 86 | * Modified by Pavlin Radoslavov, USC/ISI, May 1998, August 1999, October 2000 |
87 | * Modified by Hitoshi Asaeda, WIDE, August 2000 | | 87 | * Modified by Hitoshi Asaeda, WIDE, August 2000 |
88 | * Modified by Pavlin Radoslavov, ICSI, October 2002 | | 88 | * Modified by Pavlin Radoslavov, ICSI, October 2002 |
89 | * | | 89 | * |
90 | * MROUTING Revision: 1.2 | | 90 | * MROUTING Revision: 1.2 |
91 | * and PIM-SMv2 and PIM-DM support, advanced API support, | | 91 | * and PIM-SMv2 and PIM-DM support, advanced API support, |
92 | * bandwidth metering and signaling | | 92 | * bandwidth metering and signaling |
93 | */ | | 93 | */ |
94 | | | 94 | |
95 | #include <sys/cdefs.h> | | 95 | #include <sys/cdefs.h> |
96 | __KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.161 2018/07/11 05:25:45 maxv Exp $"); | | 96 | __KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.162 2018/07/11 12:48:42 martin Exp $"); |
97 | | | 97 | |
98 | #ifdef _KERNEL_OPT | | 98 | #ifdef _KERNEL_OPT |
99 | #include "opt_inet.h" | | 99 | #include "opt_inet.h" |
100 | #include "opt_ipsec.h" | | 100 | #include "opt_ipsec.h" |
101 | #include "opt_pim.h" | | 101 | #include "opt_pim.h" |
102 | #endif | | 102 | #endif |
103 | | | 103 | |
104 | #ifdef PIM | | 104 | #ifdef PIM |
105 | #define _PIM_VT 1 | | 105 | #define _PIM_VT 1 |
106 | #endif | | 106 | #endif |
107 | | | 107 | |
108 | #include <sys/param.h> | | 108 | #include <sys/param.h> |
109 | #include <sys/systm.h> | | 109 | #include <sys/systm.h> |
| @@ -114,26 +114,27 @@ __KERNEL_RCSID(0, "$NetBSD: ip_mroute.c, | | | @@ -114,26 +114,27 @@ __KERNEL_RCSID(0, "$NetBSD: ip_mroute.c, |
114 | #include <sys/errno.h> | | 114 | #include <sys/errno.h> |
115 | #include <sys/time.h> | | 115 | #include <sys/time.h> |
116 | #include <sys/kernel.h> | | 116 | #include <sys/kernel.h> |
117 | #include <sys/kmem.h> | | 117 | #include <sys/kmem.h> |
118 | #include <sys/ioctl.h> | | 118 | #include <sys/ioctl.h> |
119 | #include <sys/syslog.h> | | 119 | #include <sys/syslog.h> |
120 | | | 120 | |
121 | #include <net/if.h> | | 121 | #include <net/if.h> |
122 | #include <net/raw_cb.h> | | 122 | #include <net/raw_cb.h> |
123 | | | 123 | |
124 | #include <netinet/in.h> | | 124 | #include <netinet/in.h> |
125 | #include <netinet/in_var.h> | | 125 | #include <netinet/in_var.h> |
126 | #include <netinet/in_systm.h> | | 126 | #include <netinet/in_systm.h> |
| | | 127 | #include <netinet/in_offload.h> |
127 | #include <netinet/ip.h> | | 128 | #include <netinet/ip.h> |
128 | #include <netinet/ip_var.h> | | 129 | #include <netinet/ip_var.h> |
129 | #include <netinet/in_pcb.h> | | 130 | #include <netinet/in_pcb.h> |
130 | #include <netinet/udp.h> | | 131 | #include <netinet/udp.h> |
131 | #include <netinet/igmp.h> | | 132 | #include <netinet/igmp.h> |
132 | #include <netinet/igmp_var.h> | | 133 | #include <netinet/igmp_var.h> |
133 | #include <netinet/ip_mroute.h> | | 134 | #include <netinet/ip_mroute.h> |
134 | #ifdef PIM | | 135 | #ifdef PIM |
135 | #include <netinet/pim.h> | | 136 | #include <netinet/pim.h> |
136 | #include <netinet/pim_var.h> | | 137 | #include <netinet/pim_var.h> |
137 | #endif | | 138 | #endif |
138 | #include <netinet/ip_encap.h> | | 139 | #include <netinet/ip_encap.h> |
139 | | | 140 | |