Permit SO_NO_DDP and SO_NO_OFFLOAD to be read via getsockopt(2).

MFC after:	2 weeks
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D24627
This commit is contained in:
John Baldwin 2020-05-29 00:09:12 +00:00
parent 5687a376df
commit 2684603c5f

View File

@ -3231,6 +3231,8 @@ sogetopt(struct socket *so, struct sockopt *sopt)
case SO_TIMESTAMP:
case SO_BINTIME:
case SO_NOSIGPIPE:
case SO_NO_DDP:
case SO_NO_OFFLOAD:
optval = so->so_options & sopt->sopt_name;
integer:
error = sooptcopyout(sopt, &optval, sizeof optval);