kern/127360: TOE socket options missing from sosetopt()

Andrew Thompson thompsa at FreeBSD.org
Sat Sep 13 18:40:01 UTC 2008


>Number:         127360
>Category:       kern
>Synopsis:       TOE socket options missing from sosetopt()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 13 18:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Thompson
>Release:        
>Organization:
>Environment:
>Description:
the switch at sys/kern/uipc_socket.c:2242 is missing SO_NO_OFFLOAD and SO_NO_DDP

..
 case SO_DEBUG:
 case SO_KEEPALIVE:
 case SO_DONTROUTE:
 case SO_USELOOPBACK:
 case SO_BROADCAST:
 case SO_REUSEADDR:
 case SO_REUSEPORT:
 case SO_OOBINLINE:
 case SO_TIMESTAMP:
 case SO_BINTIME:
 case SO_NOSIGPIPE:
   error = sooptcopyin(sopt, &optval, sizeof optval,
     sizeof optval);
   if (error)
     goto bad;
   SOCK_LOCK(so);
   if (optval)
     so->so_options |= sopt->sopt_name;
   else
     so->so_options &= ~sopt->sopt_name;
   SOCK_UNLOCK(so);
   break;

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list