projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e29b5d8
)
net: Add missing getsockopt for SO_NOFCS.
author
David S. Miller
<davem@davemloft.net>
Fri, 24 Feb 2012 19:48:34 +0000
(14:48 -0500)
committer
David S. Miller
<davem@davemloft.net>
Fri, 24 Feb 2012 19:48:34 +0000
(14:48 -0500)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/sock.c
b/net/core/sock.c
index 55011cb691ad53afa5659cc7dda01d6c04c394d0..216719cb5c7f2f44a8831390113809eaa33d3f09 100644
(file)
--- 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;
}