hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/net/ppp/pppoe.c
....@@ -1,9 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /** -*- linux-c -*- ***********************************************************
23 * Linux PPP over Ethernet (PPPoX/PPPoE) Sockets
34 *
45 * PPPoX --- Generic PPP encapsulation socket family
56 * PPPoE --- PPP over Ethernet (RFC 2516)
6
- *
77 *
88 * Version: 0.7.0
99 *
....@@ -50,11 +50,6 @@
5050 * David S. Miller (davem@redhat.com)
5151 *
5252 * License:
53
- * This program is free software; you can redistribute it and/or
54
- * modify it under the terms of the GNU General Public License
55
- * as published by the Free Software Foundation; either version
56
- * 2 of the License, or (at your option) any later version.
57
- *
5853 */
5954
6055 #include <linux/string.h>
....@@ -124,8 +119,6 @@
124119
125120 static inline struct pppoe_net *pppoe_pernet(struct net *net)
126121 {
127
- BUG_ON(!net);
128
-
129122 return net_generic(net, pppoe_net_id);
130123 }
131124
....@@ -1117,8 +1110,6 @@
11171110 .poll = datagram_poll,
11181111 .listen = sock_no_listen,
11191112 .shutdown = sock_no_shutdown,
1120
- .setsockopt = sock_no_setsockopt,
1121
- .getsockopt = sock_no_getsockopt,
11221113 .sendmsg = pppoe_sendmsg,
11231114 .recvmsg = pppoe_recvmsg,
11241115 .mmap = sock_no_mmap,