| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /** -*- linux-c -*- *********************************************************** |
|---|
| 2 | 3 | * Linux PPP over Ethernet (PPPoX/PPPoE) Sockets |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * PPPoX --- Generic PPP encapsulation socket family |
|---|
| 5 | 6 | * PPPoE --- PPP over Ethernet (RFC 2516) |
|---|
| 6 | | - * |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Version: 0.7.0 |
|---|
| 9 | 9 | * |
|---|
| .. | .. |
|---|
| 50 | 50 | * David S. Miller (davem@redhat.com) |
|---|
| 51 | 51 | * |
|---|
| 52 | 52 | * 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 | | - * |
|---|
| 58 | 53 | */ |
|---|
| 59 | 54 | |
|---|
| 60 | 55 | #include <linux/string.h> |
|---|
| .. | .. |
|---|
| 124 | 119 | |
|---|
| 125 | 120 | static inline struct pppoe_net *pppoe_pernet(struct net *net) |
|---|
| 126 | 121 | { |
|---|
| 127 | | - BUG_ON(!net); |
|---|
| 128 | | - |
|---|
| 129 | 122 | return net_generic(net, pppoe_net_id); |
|---|
| 130 | 123 | } |
|---|
| 131 | 124 | |
|---|
| .. | .. |
|---|
| 1117 | 1110 | .poll = datagram_poll, |
|---|
| 1118 | 1111 | .listen = sock_no_listen, |
|---|
| 1119 | 1112 | .shutdown = sock_no_shutdown, |
|---|
| 1120 | | - .setsockopt = sock_no_setsockopt, |
|---|
| 1121 | | - .getsockopt = sock_no_getsockopt, |
|---|
| 1122 | 1113 | .sendmsg = pppoe_sendmsg, |
|---|
| 1123 | 1114 | .recvmsg = pppoe_recvmsg, |
|---|
| 1124 | 1115 | .mmap = sock_no_mmap, |
|---|