Author: jhb
Date: Fri May 29 00:09:12 2020
New Revision: 361613
URL: https://svnweb.freebsd.org/changeset/base/361613

Log:
  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

Modified:
  head/sys/kern/uipc_socket.c

Modified: head/sys/kern/uipc_socket.c
==============================================================================
--- head/sys/kern/uipc_socket.c Fri May 29 00:05:43 2020        (r361612)
+++ head/sys/kern/uipc_socket.c Fri May 29 00:09:12 2020        (r361613)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to