Remove unused pcbinfo arguments to in_setsockaddr() and
in_setpeeraddr().
This commit is contained in:
parent
c2fa6c1890
commit
84ca8aa609
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169179
@ -796,8 +796,7 @@ in_sockaddr(in_port_t port, struct in_addr *addr_p)
|
|||||||
* because there actually /is/ a programming error somewhere... XXX)
|
* because there actually /is/ a programming error somewhere... XXX)
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
in_setsockaddr(struct socket *so, struct sockaddr **nam,
|
in_setsockaddr(struct socket *so, struct sockaddr **nam)
|
||||||
struct inpcbinfo *pcbinfo)
|
|
||||||
{
|
{
|
||||||
struct inpcb *inp;
|
struct inpcb *inp;
|
||||||
struct in_addr addr;
|
struct in_addr addr;
|
||||||
@ -819,8 +818,7 @@ in_setsockaddr(struct socket *so, struct sockaddr **nam,
|
|||||||
* The wrapper function will pass down the pcbinfo for this function to lock.
|
* The wrapper function will pass down the pcbinfo for this function to lock.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
in_setpeeraddr(struct socket *so, struct sockaddr **nam,
|
in_setpeeraddr(struct socket *so, struct sockaddr **nam)
|
||||||
struct inpcbinfo *pcbinfo)
|
|
||||||
{
|
{
|
||||||
struct inpcb *inp;
|
struct inpcb *inp;
|
||||||
struct in_addr addr;
|
struct in_addr addr;
|
||||||
|
@ -391,8 +391,8 @@ void in_pcbnotifyall(struct inpcbinfo *pcbinfo, struct in_addr,
|
|||||||
int, struct inpcb *(*)(struct inpcb *, int));
|
int, struct inpcb *(*)(struct inpcb *, int));
|
||||||
void in_pcbrehash(struct inpcb *);
|
void in_pcbrehash(struct inpcb *);
|
||||||
void in_pcbsetsolabel(struct socket *so);
|
void in_pcbsetsolabel(struct socket *so);
|
||||||
int in_setpeeraddr(struct socket *so, struct sockaddr **nam, struct inpcbinfo *pcbinfo);
|
int in_setpeeraddr(struct socket *so, struct sockaddr **nam);
|
||||||
int in_setsockaddr(struct socket *so, struct sockaddr **nam, struct inpcbinfo *pcbinfo);
|
int in_setsockaddr(struct socket *so, struct sockaddr **nam);
|
||||||
struct sockaddr *
|
struct sockaddr *
|
||||||
in_sockaddr(in_port_t port, struct in_addr *addr);
|
in_sockaddr(in_port_t port, struct in_addr *addr);
|
||||||
void in_pcbsosetlabel(struct socket *so);
|
void in_pcbsosetlabel(struct socket *so);
|
||||||
|
@ -630,7 +630,7 @@ div_pcblist(SYSCTL_HANDLER_ARGS)
|
|||||||
static int
|
static int
|
||||||
div_sockaddr(struct socket *so, struct sockaddr **nam)
|
div_sockaddr(struct socket *so, struct sockaddr **nam)
|
||||||
{
|
{
|
||||||
return (in_setsockaddr(so, nam, &divcbinfo));
|
return (in_setsockaddr(so, nam));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -640,7 +640,7 @@ div_sockaddr(struct socket *so, struct sockaddr **nam)
|
|||||||
static int
|
static int
|
||||||
div_peeraddr(struct socket *so, struct sockaddr **nam)
|
div_peeraddr(struct socket *so, struct sockaddr **nam)
|
||||||
{
|
{
|
||||||
return (in_setpeeraddr(so, nam, &divcbinfo));
|
return (in_setpeeraddr(so, nam));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SYSCTL_NODE
|
#ifdef SYSCTL_NODE
|
||||||
|
@ -915,7 +915,7 @@ rip_pcblist(SYSCTL_HANDLER_ARGS)
|
|||||||
static int
|
static int
|
||||||
rip_sockaddr(struct socket *so, struct sockaddr **nam)
|
rip_sockaddr(struct socket *so, struct sockaddr **nam)
|
||||||
{
|
{
|
||||||
return (in_setsockaddr(so, nam, &ripcbinfo));
|
return (in_setsockaddr(so, nam));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -925,7 +925,7 @@ rip_sockaddr(struct socket *so, struct sockaddr **nam)
|
|||||||
static int
|
static int
|
||||||
rip_peeraddr(struct socket *so, struct sockaddr **nam)
|
rip_peeraddr(struct socket *so, struct sockaddr **nam)
|
||||||
{
|
{
|
||||||
return (in_setpeeraddr(so, nam, &ripcbinfo));
|
return (in_setpeeraddr(so, nam));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -694,7 +694,7 @@ tcp6_usr_accept(struct socket *so, struct sockaddr **nam)
|
|||||||
static int
|
static int
|
||||||
tcp_sockaddr(struct socket *so, struct sockaddr **nam)
|
tcp_sockaddr(struct socket *so, struct sockaddr **nam)
|
||||||
{
|
{
|
||||||
return (in_setsockaddr(so, nam, &tcbinfo));
|
return (in_setsockaddr(so, nam));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -704,7 +704,7 @@ tcp_sockaddr(struct socket *so, struct sockaddr **nam)
|
|||||||
static int
|
static int
|
||||||
tcp_peeraddr(struct socket *so, struct sockaddr **nam)
|
tcp_peeraddr(struct socket *so, struct sockaddr **nam)
|
||||||
{
|
{
|
||||||
return (in_setpeeraddr(so, nam, &tcbinfo));
|
return (in_setpeeraddr(so, nam));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1139,7 +1139,7 @@ static int
|
|||||||
udp_sockaddr(struct socket *so, struct sockaddr **nam)
|
udp_sockaddr(struct socket *so, struct sockaddr **nam)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (in_setsockaddr(so, nam, &udbinfo));
|
return (in_setsockaddr(so, nam));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1150,7 +1150,7 @@ static int
|
|||||||
udp_peeraddr(struct socket *so, struct sockaddr **nam)
|
udp_peeraddr(struct socket *so, struct sockaddr **nam)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (in_setpeeraddr(so, nam, &udbinfo));
|
return (in_setpeeraddr(so, nam));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pr_usrreqs udp_usrreqs = {
|
struct pr_usrreqs udp_usrreqs = {
|
||||||
|
@ -563,7 +563,7 @@ in6_mapped_sockaddr(struct socket *so, struct sockaddr **nam)
|
|||||||
KASSERT(inp != NULL, ("in6_mapped_sockaddr: inp == NULL"));
|
KASSERT(inp != NULL, ("in6_mapped_sockaddr: inp == NULL"));
|
||||||
|
|
||||||
if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
|
if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
|
||||||
error = in_setsockaddr(so, nam, &tcbinfo);
|
error = in_setsockaddr(so, nam);
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
in6_sin_2_v4mapsin6_in_sock(nam);
|
in6_sin_2_v4mapsin6_in_sock(nam);
|
||||||
} else {
|
} else {
|
||||||
@ -584,7 +584,7 @@ in6_mapped_peeraddr(struct socket *so, struct sockaddr **nam)
|
|||||||
KASSERT(inp != NULL, ("in6_mapped_peeraddr: inp == NULL"));
|
KASSERT(inp != NULL, ("in6_mapped_peeraddr: inp == NULL"));
|
||||||
|
|
||||||
if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
|
if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
|
||||||
error = in_setpeeraddr(so, nam, &tcbinfo);
|
error = in_setpeeraddr(so, nam);
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
in6_sin_2_v4mapsin6_in_sock(nam);
|
in6_sin_2_v4mapsin6_in_sock(nam);
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user