From: David S. Miller Date: Fri, 24 Feb 2012 19:48:34 +0000 (-0500) Subject: net: Add missing getsockopt for SO_NOFCS. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc2f7996858db66f2d5b154aac10971655f72cad;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net: Add missing getsockopt for SO_NOFCS. Signed-off-by: David S. Miller --- diff --git a/net/core/sock.c b/net/core/sock.c index 55011cb691ad..216719cb5c7f 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -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; }