Skip to content

Commit

Permalink
net: Add missing getsockopt for SO_NOFCS.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Feb 24, 2012
1 parent e29b5d8 commit bc2f799
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bc2f799

Please sign in to comment.