Deleted Added
full compact
sctp_asconf.c (295668) sctp_asconf.c (295670)
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
4 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
4 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.c 295668 2016-02-16 19:36:25Z tuexen $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.c 295670 2016-02-16 20:33:18Z tuexen $");
35
36#include <netinet/sctp_os.h>
37#include <netinet/sctp_var.h>
38#include <netinet/sctp_sysctl.h>
39#include <netinet/sctp_pcb.h>
40#include <netinet/sctp_header.h>
41#include <netinet/sctputil.h>
42#include <netinet/sctp_output.h>

--- 3230 unchanged lines hidden (view full) ---

3273 ret = sctp_initiate_iterator(sctp_asconf_iterator_ep,
3274 sctp_asconf_iterator_stcb,
3275 sctp_asconf_iterator_ep_end,
3276 SCTP_PCB_ANY_FLAGS,
3277 SCTP_PCB_ANY_FEATURES,
3278 SCTP_ASOC_ANY_STATE,
3279 (void *)asc, 0,
3280 sctp_asconf_iterator_end, inp, 0);
35
36#include <netinet/sctp_os.h>
37#include <netinet/sctp_var.h>
38#include <netinet/sctp_sysctl.h>
39#include <netinet/sctp_pcb.h>
40#include <netinet/sctp_header.h>
41#include <netinet/sctputil.h>
42#include <netinet/sctp_output.h>

--- 3230 unchanged lines hidden (view full) ---

3273 ret = sctp_initiate_iterator(sctp_asconf_iterator_ep,
3274 sctp_asconf_iterator_stcb,
3275 sctp_asconf_iterator_ep_end,
3276 SCTP_PCB_ANY_FLAGS,
3277 SCTP_PCB_ANY_FEATURES,
3278 SCTP_ASOC_ANY_STATE,
3279 (void *)asc, 0,
3280 sctp_asconf_iterator_end, inp, 0);
3281 if (ret) {
3281 if (ret) {
3282 SCTP_PRINTF("Failed to initiate iterator for addr_mgmt_ep_sa\n");
3283 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_ASCONF, EFAULT);
3284 sctp_asconf_iterator_end(asc, 0);
3285 return (EFAULT);
3286 }
3287 }
3288 return (0);
3289 } else {

--- 236 unchanged lines hidden ---
3282 SCTP_PRINTF("Failed to initiate iterator for addr_mgmt_ep_sa\n");
3283 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_ASCONF, EFAULT);
3284 sctp_asconf_iterator_end(asc, 0);
3285 return (EFAULT);
3286 }
3287 }
3288 return (0);
3289 } else {

--- 236 unchanged lines hidden ---