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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue