mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 13:15:57 +00:00
net: Add missing getsockopt for SO_NOFCS.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e29b5d8f08
commit
bc2f799685
@ -1035,6 +1035,9 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
|
||||
|
||||
v.val = sk->sk_peek_off;
|
||||
break;
|
||||
case SO_NOFCS:
|
||||
v.val = !!sock_flag(sk, SOCK_NOFCS);
|
||||
break;
|
||||
default:
|
||||
return -ENOPROTOOPT;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user