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:
parent
1176e2e3a5
commit
6ff1185c1d
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user