Whitespace changes.
This commit is contained in:
parent
f5f409a8f0
commit
8d5a88a7e3
@ -3278,7 +3278,7 @@ sctp_addr_mgmt_ep_sa(struct sctp_inpcb *inp, struct sockaddr *sa,
|
||||
SCTP_ASOC_ANY_STATE,
|
||||
(void *)asc, 0,
|
||||
sctp_asconf_iterator_end, inp, 0);
|
||||
if (ret) {
|
||||
if (ret) {
|
||||
SCTP_PRINTF("Failed to initiate iterator for addr_mgmt_ep_sa\n");
|
||||
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_ASCONF, EFAULT);
|
||||
sctp_asconf_iterator_end(asc, 0);
|
||||
|
@ -296,7 +296,6 @@ sctp_addr_change(struct ifaddr *ifa, int cmd)
|
||||
if (SCTP_BASE_VAR(sctp_pcb_initialized) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* BSD only has one VRF, if this changes we will need to hook in the
|
||||
* right things here to get the id to pass to the address managment
|
||||
|
@ -2821,6 +2821,8 @@ sctp_remove_laddr(struct sctp_laddr *laddr)
|
||||
SCTP_DECR_LADDR_COUNT();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* sctp_ifap is used to bypass normal local address validation checks */
|
||||
int
|
||||
sctp_inpcb_bind(struct socket *so, struct sockaddr *addr,
|
||||
@ -5920,7 +5922,6 @@ sctp_pcb_finish(void)
|
||||
return;
|
||||
}
|
||||
SCTP_BASE_VAR(sctp_pcb_initialized) = 0;
|
||||
|
||||
/*
|
||||
* In FreeBSD the iterator thread never exits but we do clean up.
|
||||
* The only way FreeBSD reaches here is if we have VRF's but we
|
||||
@ -6043,7 +6044,6 @@ sctp_pcb_finish(void)
|
||||
SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_strmoq));
|
||||
SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_asconf));
|
||||
SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_asconf_ack));
|
||||
|
||||
#if defined(__FreeBSD__) && defined(SMP) && defined(SCTP_USE_PERCPU_STAT)
|
||||
SCTP_FREE(SCTP_BASE_STATS, SCTP_M_MCORE);
|
||||
#endif
|
||||
@ -7057,7 +7057,6 @@ sctp_initiate_iterator(inp_func inpf,
|
||||
SCTP_FREE(it, SCTP_M_ITER);
|
||||
return (-1);
|
||||
}
|
||||
|
||||
TAILQ_INSERT_TAIL(&sctp_it_ctl.iteratorhead, it, sctp_nxt_itr);
|
||||
if (sctp_it_ctl.iterator_running == 0) {
|
||||
sctp_wakeup_iterator();
|
||||
|
@ -1482,7 +1482,10 @@ sctp_handle_addr_wq(void)
|
||||
sctp_asconf_iterator_end, NULL, 0);
|
||||
if (ret) {
|
||||
SCTP_PRINTF("Failed to initiate iterator for handle_addr_wq\n");
|
||||
/* Freeing if we are stopping or put back on the addr_wq. */
|
||||
/*
|
||||
* Freeing if we are stopping or put back on the
|
||||
* addr_wq.
|
||||
*/
|
||||
if (SCTP_BASE_VAR(sctp_pcb_initialized) == 0) {
|
||||
sctp_asconf_iterator_end(asc, 0);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user