Remove last argument of sctp_addr_mgmt_ep_sa(), since it is not used.
MFC after: 1 week
This commit is contained in:
parent
cdd02f43b9
commit
7a9dbc33f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362377
@ -3165,7 +3165,7 @@ sctp_check_address_list(struct sctp_tcb *stcb, struct mbuf *m, int offset,
|
|||||||
*/
|
*/
|
||||||
uint32_t
|
uint32_t
|
||||||
sctp_addr_mgmt_ep_sa(struct sctp_inpcb *inp, struct sockaddr *sa,
|
sctp_addr_mgmt_ep_sa(struct sctp_inpcb *inp, struct sockaddr *sa,
|
||||||
uint32_t type, uint32_t vrf_id, struct sctp_ifa *sctp_ifap)
|
uint32_t type, uint32_t vrf_id)
|
||||||
{
|
{
|
||||||
struct sctp_ifa *ifa;
|
struct sctp_ifa *ifa;
|
||||||
struct sctp_laddr *laddr, *nladdr;
|
struct sctp_laddr *laddr, *nladdr;
|
||||||
@ -3174,9 +3174,7 @@ sctp_addr_mgmt_ep_sa(struct sctp_inpcb *inp, struct sockaddr *sa,
|
|||||||
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_ASCONF, EINVAL);
|
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_ASCONF, EINVAL);
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
}
|
}
|
||||||
if (sctp_ifap) {
|
if (type == SCTP_ADD_IP_ADDRESS) {
|
||||||
ifa = sctp_ifap;
|
|
||||||
} else if (type == SCTP_ADD_IP_ADDRESS) {
|
|
||||||
/* For an add the address MUST be on the system */
|
/* For an add the address MUST be on the system */
|
||||||
ifa = sctp_find_ifa_by_addr(sa, vrf_id, SCTP_ADDR_NOT_LOCKED);
|
ifa = sctp_find_ifa_by_addr(sa, vrf_id, SCTP_ADDR_NOT_LOCKED);
|
||||||
} else if (type == SCTP_DEL_IP_ADDRESS) {
|
} else if (type == SCTP_DEL_IP_ADDRESS) {
|
||||||
|
@ -56,8 +56,8 @@ sctp_handle_asconf_ack(struct mbuf *, int, struct sctp_asconf_ack_chunk *,
|
|||||||
struct sctp_tcb *, struct sctp_nets *, int *);
|
struct sctp_tcb *, struct sctp_nets *, int *);
|
||||||
|
|
||||||
extern uint32_t
|
extern uint32_t
|
||||||
sctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *,
|
sctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *, uint32_t,
|
||||||
uint32_t, uint32_t, struct sctp_ifa *);
|
uint32_t);
|
||||||
|
|
||||||
|
|
||||||
extern int
|
extern int
|
||||||
|
@ -6804,8 +6804,7 @@ sctp_bindx_add_address(struct socket *so, struct sctp_inpcb *inp,
|
|||||||
} else if (lep == NULL) {
|
} else if (lep == NULL) {
|
||||||
((struct sockaddr_in *)addr_touse)->sin_port = 0;
|
((struct sockaddr_in *)addr_touse)->sin_port = 0;
|
||||||
*error = sctp_addr_mgmt_ep_sa(inp, addr_touse,
|
*error = sctp_addr_mgmt_ep_sa(inp, addr_touse,
|
||||||
SCTP_ADD_IP_ADDRESS,
|
SCTP_ADD_IP_ADDRESS, vrf_id);
|
||||||
vrf_id, NULL);
|
|
||||||
} else {
|
} else {
|
||||||
*error = EADDRINUSE;
|
*error = EADDRINUSE;
|
||||||
}
|
}
|
||||||
@ -6896,8 +6895,7 @@ sctp_bindx_delete_address(struct sctp_inpcb *inp,
|
|||||||
if (assoc_id == 0) {
|
if (assoc_id == 0) {
|
||||||
/* delete the address */
|
/* delete the address */
|
||||||
*error = sctp_addr_mgmt_ep_sa(inp, addr_touse,
|
*error = sctp_addr_mgmt_ep_sa(inp, addr_touse,
|
||||||
SCTP_DEL_IP_ADDRESS,
|
SCTP_DEL_IP_ADDRESS, vrf_id);
|
||||||
vrf_id, NULL);
|
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* FIX: decide whether we allow assoc based bindx
|
* FIX: decide whether we allow assoc based bindx
|
||||||
|
Loading…
Reference in New Issue
Block a user