hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/net/ipv4/protocol.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * INET An implementation of the TCP/IP protocol suite for the LINUX
34 * operating system. INET is implemented using the BSD Socket
....@@ -16,11 +17,6 @@
1617 * Richard Colella : Hang on hash collision
1718 * Vince Laviano : Modified inet_del_protocol() to correctly
1819 * maintain copy bit.
19
- *
20
- * This program is free software; you can redistribute it and/or
21
- * modify it under the terms of the GNU General Public License
22
- * as published by the Free Software Foundation; either version
23
- * 2 of the License, or (at your option) any later version.
2420 */
2521 #include <linux/cache.h>
2622 #include <linux/module.h>
....@@ -29,6 +25,7 @@
2925 #include <net/protocol.h>
3026
3127 struct net_protocol __rcu *inet_protos[MAX_INET_PROTOS] __read_mostly;
28
+EXPORT_SYMBOL(inet_protos);
3229 const struct net_offload __rcu *inet_offloads[MAX_INET_PROTOS] __read_mostly;
3330 EXPORT_SYMBOL(inet_offloads);
3431