aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-02-24 14:48:34 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-24 14:48:34 -0500
commitbc2f7996858db66f2d5b154aac10971655f72cad (patch)
tree530661128cdbc5997ce98aa4c89ebad4f088a736 /net/core
parente29b5d8f0896bfe908c0036f2614a89e71bdf42c (diff)
downloadkernel_goldelico_gta04-bc2f7996858db66f2d5b154aac10971655f72cad.zip
kernel_goldelico_gta04-bc2f7996858db66f2d5b154aac10971655f72cad.tar.gz
kernel_goldelico_gta04-bc2f7996858db66f2d5b154aac10971655f72cad.tar.bz2
net: Add missing getsockopt for SO_NOFCS.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/sock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 55011cb..216719c 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;
}