提交 bc2f7996 编写于 作者: D David S. Miller

net: Add missing getsockopt for SO_NOFCS.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e29b5d8f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册