Rename Alfred's kern_setsockopt to so_setsockopt, as this seems a

a better name. I have a kern_[sg]etsockopt which I plan to commit
shortly, but the arguments to these function will be quite different
from so_setsockopt.

Approved by:	alfred
This commit is contained in:
dwmalone 2004-07-12 21:42:33 +00:00
parent 1176e2e3a5
commit 6ff1185c1d
3 changed files with 5 additions and 5 deletions

View File

@ -1546,7 +1546,7 @@ sooptcopyin(sopt, buf, len, minlen)
* XXX: optlen is size_t, not socklen_t
*/
int
kern_setsockopt(struct socket *so, int level, int optname, void *optval,
so_setsockopt(struct socket *so, int level, int optname, void *optval,
size_t optlen)
{
struct sockopt sopt;

View File

@ -176,8 +176,8 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep)
nmp->nm_soflags = so->so_proto->pr_flags;
opt = 1;
(void)kern_setsockopt(so, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
(void)kern_setsockopt(so, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt));
(void)so_setsockopt(so, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
(void)so_setsockopt(so, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt));
/*
* Some servers require that the client port be a reserved port number.

View File

@ -438,8 +438,8 @@ struct uio;
/*
* From uipc_socket and friends
*/
int kern_setsockopt(struct socket *so, int level, int optname,
void *optval, size_t optlen);
int so_setsockopt(struct socket *so, int level, int optname,
void *optval, size_t optlen);
int sockargs(struct mbuf **mp, caddr_t buf, int buflen, int type);
int getsockaddr(struct sockaddr **namp, caddr_t uaddr, size_t len);
void sbappend(struct sockbuf *sb, struct mbuf *m);