inpcb: gc unused argument of in_pcbconnect()
This commit is contained in:
@@ -1005,8 +1005,7 @@ in_pcbbind_setup(struct inpcb *inp, struct sockaddr_in *sin, in_addr_t *laddrp,
|
|||||||
* then pick one.
|
* then pick one.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
in_pcbconnect(struct inpcb *inp, struct sockaddr_in *sin, struct ucred *cred,
|
in_pcbconnect(struct inpcb *inp, struct sockaddr_in *sin, struct ucred *cred)
|
||||||
bool rehash __unused)
|
|
||||||
{
|
{
|
||||||
u_short lport, fport;
|
u_short lport, fport;
|
||||||
in_addr_t laddr, faddr;
|
in_addr_t laddr, faddr;
|
||||||
|
|||||||
@@ -661,8 +661,7 @@ int in_pcballoc(struct socket *, struct inpcbinfo *);
|
|||||||
int in_pcbbind(struct inpcb *, struct sockaddr_in *, struct ucred *);
|
int in_pcbbind(struct inpcb *, struct sockaddr_in *, struct ucred *);
|
||||||
int in_pcbbind_setup(struct inpcb *, struct sockaddr_in *, in_addr_t *,
|
int in_pcbbind_setup(struct inpcb *, struct sockaddr_in *, in_addr_t *,
|
||||||
u_short *, struct ucred *);
|
u_short *, struct ucred *);
|
||||||
int in_pcbconnect(struct inpcb *, struct sockaddr_in *, struct ucred *,
|
int in_pcbconnect(struct inpcb *, struct sockaddr_in *, struct ucred *);
|
||||||
bool);
|
|
||||||
int in_pcbconnect_setup(struct inpcb *, struct sockaddr_in *, in_addr_t *,
|
int in_pcbconnect_setup(struct inpcb *, struct sockaddr_in *, in_addr_t *,
|
||||||
u_short *, in_addr_t *, u_short *, struct ucred *);
|
u_short *, in_addr_t *, u_short *, struct ucred *);
|
||||||
void in_pcbdisconnect(struct inpcb *);
|
void in_pcbdisconnect(struct inpcb *);
|
||||||
|
|||||||
@@ -898,7 +898,7 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m)
|
|||||||
sin.sin_port = sc->sc_inc.inc_fport;
|
sin.sin_port = sc->sc_inc.inc_fport;
|
||||||
bzero((caddr_t)sin.sin_zero, sizeof(sin.sin_zero));
|
bzero((caddr_t)sin.sin_zero, sizeof(sin.sin_zero));
|
||||||
INP_HASH_WLOCK(&V_tcbinfo);
|
INP_HASH_WLOCK(&V_tcbinfo);
|
||||||
error = in_pcbconnect(inp, &sin, thread0.td_ucred, false);
|
error = in_pcbconnect(inp, &sin, thread0.td_ucred);
|
||||||
INP_HASH_WUNLOCK(&V_tcbinfo);
|
INP_HASH_WUNLOCK(&V_tcbinfo);
|
||||||
if (error != 0)
|
if (error != 0)
|
||||||
goto abort;
|
goto abort;
|
||||||
|
|||||||
@@ -1471,7 +1471,7 @@ tcp_connect(struct tcpcb *tp, struct sockaddr_in *sin, struct thread *td)
|
|||||||
return (EISCONN);
|
return (EISCONN);
|
||||||
|
|
||||||
INP_HASH_WLOCK(&V_tcbinfo);
|
INP_HASH_WLOCK(&V_tcbinfo);
|
||||||
error = in_pcbconnect(inp, sin, td->td_ucred, true);
|
error = in_pcbconnect(inp, sin, td->td_ucred);
|
||||||
INP_HASH_WUNLOCK(&V_tcbinfo);
|
INP_HASH_WUNLOCK(&V_tcbinfo);
|
||||||
if (error != 0)
|
if (error != 0)
|
||||||
return (error);
|
return (error);
|
||||||
|
|||||||
@@ -1648,7 +1648,7 @@ udp_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
|
|||||||
}
|
}
|
||||||
NET_EPOCH_ENTER(et);
|
NET_EPOCH_ENTER(et);
|
||||||
INP_HASH_WLOCK(pcbinfo);
|
INP_HASH_WLOCK(pcbinfo);
|
||||||
error = in_pcbconnect(inp, sin, td->td_ucred, true);
|
error = in_pcbconnect(inp, sin, td->td_ucred);
|
||||||
INP_HASH_WUNLOCK(pcbinfo);
|
INP_HASH_WUNLOCK(pcbinfo);
|
||||||
NET_EPOCH_EXIT(et);
|
NET_EPOCH_EXIT(et);
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
|
|||||||
@@ -1151,7 +1151,7 @@ udp6_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
|
|||||||
inp->inp_vflag &= ~INP_IPV6;
|
inp->inp_vflag &= ~INP_IPV6;
|
||||||
NET_EPOCH_ENTER(et);
|
NET_EPOCH_ENTER(et);
|
||||||
INP_HASH_WLOCK(pcbinfo);
|
INP_HASH_WLOCK(pcbinfo);
|
||||||
error = in_pcbconnect(inp, &sin, td->td_ucred, true);
|
error = in_pcbconnect(inp, &sin, td->td_ucred);
|
||||||
INP_HASH_WUNLOCK(pcbinfo);
|
INP_HASH_WUNLOCK(pcbinfo);
|
||||||
NET_EPOCH_EXIT(et);
|
NET_EPOCH_EXIT(et);
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user