commit | bc2f7996858db66f2d5b154aac10971655f72cad | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Fri Feb 24 14:48:34 2012 -0500 |
committer | David S. Miller <davem@davemloft.net> | Fri Feb 24 14:48:34 2012 -0500 |
tree | 530661128cdbc5997ce98aa4c89ebad4f088a736 | |
parent | e29b5d8f0896bfe908c0036f2614a89e71bdf42c [diff] [blame] |
net: Add missing getsockopt for SO_NOFCS. Signed-off-by: David S. Miller <davem@davemloft.net>
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 @@ v.val = sk->sk_peek_off; break; + case SO_NOFCS: + v.val = !!sock_flag(sk, SOCK_NOFCS); + break; default: return -ENOPROTOOPT; }