sctp_usrreq.c (cd2de8b735254062876b07728ae6363da8eefb4b) sctp_usrreq.c (d6e23cf0cf52fc36a4f1583aed67332ad734fa1f)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved.
5 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
6 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

48#include <netinet/sctp_uio.h>
49#include <netinet/sctp_asconf.h>
50#include <netinet/sctputil.h>
51#include <netinet/sctp_indata.h>
52#include <netinet/sctp_timer.h>
53#include <netinet/sctp_auth.h>
54#include <netinet/sctp_bsd_addr.h>
55#include <netinet/udp.h>
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved.
5 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
6 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

48#include <netinet/sctp_uio.h>
49#include <netinet/sctp_asconf.h>
50#include <netinet/sctputil.h>
51#include <netinet/sctp_indata.h>
52#include <netinet/sctp_timer.h>
53#include <netinet/sctp_auth.h>
54#include <netinet/sctp_bsd_addr.h>
55#include <netinet/udp.h>
56#include <sys/eventhandler.h>
56
57
58
59extern const struct sctp_cc_functions sctp_cc_functions[];
60extern const struct sctp_ss_functions sctp_ss_functions[];
61
62void
63sctp_init(void)

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

84 SCTP_BASE_VAR(first_time) = 0;
85 SCTP_BASE_VAR(sctp_pcb_initialized) = 0;
86 sctp_pcb_init();
87#if defined(SCTP_PACKET_LOGGING)
88 SCTP_BASE_VAR(packet_log_writers) = 0;
89 SCTP_BASE_VAR(packet_log_end) = 0;
90 memset(&SCTP_BASE_VAR(packet_log_buffer), 0, SCTP_PACKET_LOG_SIZE);
91#endif
57
58
59
60extern const struct sctp_cc_functions sctp_cc_functions[];
61extern const struct sctp_ss_functions sctp_ss_functions[];
62
63void
64sctp_init(void)

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

85 SCTP_BASE_VAR(first_time) = 0;
86 SCTP_BASE_VAR(sctp_pcb_initialized) = 0;
87 sctp_pcb_init();
88#if defined(SCTP_PACKET_LOGGING)
89 SCTP_BASE_VAR(packet_log_writers) = 0;
90 SCTP_BASE_VAR(packet_log_end) = 0;
91 memset(&SCTP_BASE_VAR(packet_log_buffer), 0, SCTP_PACKET_LOG_SIZE);
92#endif
93 EVENTHANDLER_REGISTER(rt_addrmsg, sctp_addr_change_event_handler,
94 NULL, EVENTHANDLER_PRI_FIRST);
92}
93
94#ifdef VIMAGE
95static void
96sctp_finish(void *unused __unused)
97{
98 sctp_pcb_finish();
99}

--- 7400 unchanged lines hidden ---
95}
96
97#ifdef VIMAGE
98static void
99sctp_finish(void *unused __unused)
100{
101 sctp_pcb_finish();
102}

--- 7400 unchanged lines hidden ---