Skip to content

Commit

Permalink
net: Move the comment about unsettable socket-level options to defaul…
Browse files Browse the repository at this point in the history
…t clause and update its reference.

We implement the SO_SNDLOWAT etc not to be settable and return
ENOPROTOOPT per 1003.1g 7.  Move the comment to appropriate
position and update the reference.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
yoshfuji authored and davem330 committed Mar 23, 2015
1 parent 86c1aee commit 443b599
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,6 @@ int sock_setsockopt(struct socket *sock, int level, int optname,
sk->sk_mark = val;
break;

/* We implement the SO_SNDLOWAT etc to
not be settable (1003.1g 5.3) */
case SO_RXQ_OVFL:
sock_valbool_flag(sk, SOCK_RXQ_OVFL, valbool);
break;
Expand Down Expand Up @@ -1234,6 +1232,9 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
break;

default:
/* We implement the SO_SNDLOWAT etc to not be settable
* (1003.1g 7).
*/
return -ENOPROTOOPT;
}

Expand Down

0 comments on commit 443b599

Please sign in to comment.