Deleted Added
full compact
sctp_os_bsd.h (168124) sctp_os_bsd.h (168299)
1/*-
2 * Copyright (c) 2006-2007, Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

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

23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006-2007, Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

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

23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/netinet/sctp_os_bsd.h 168124 2007-03-31 11:47:30Z rrs $");
31__FBSDID("$FreeBSD: head/sys/netinet/sctp_os_bsd.h 168299 2007-04-03 11:15:32Z rrs $");
32#ifndef __sctp_os_bsd_h__
33#define __sctp_os_bsd_h__
34/*
35 * includes
36 */
37#include "opt_ipsec.h"
38#include "opt_compat.h"
39#include "opt_inet6.h"

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

88#include <netinet6/in6_pcb.h>
89#include <netinet/icmp6.h>
90#include <netinet6/ip6protosw.h>
91#include <netinet6/nd6.h>
92#include <netinet6/scope6_var.h>
93#endif /* INET6 */
94
95
32#ifndef __sctp_os_bsd_h__
33#define __sctp_os_bsd_h__
34/*
35 * includes
36 */
37#include "opt_ipsec.h"
38#include "opt_compat.h"
39#include "opt_inet6.h"

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

88#include <netinet6/in6_pcb.h>
89#include <netinet/icmp6.h>
90#include <netinet6/ip6protosw.h>
91#include <netinet6/nd6.h>
92#include <netinet6/scope6_var.h>
93#endif /* INET6 */
94
95
96
97#include <netinet/ip_options.h>
98
96#include <netinet/ip_options.h>
97
99
100#ifndef in6pcb
101#define in6pcb inpcb
102#endif
103
104
105
106/*
107 *

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

265 (sb).sb_cc = 0; \
266 (sb).sb_mb = NULL; \
267 (sb).sb_mbcnt = 0;
268
269#define SCTP_SB_LIMIT_RCV(so) so->so_rcv.sb_hiwat
270#define SCTP_SB_LIMIT_SND(so) so->so_snd.sb_hiwat
271
272/*
98#ifndef in6pcb
99#define in6pcb inpcb
100#endif
101
102
103
104/*
105 *

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

263 (sb).sb_cc = 0; \
264 (sb).sb_mb = NULL; \
265 (sb).sb_mbcnt = 0;
266
267#define SCTP_SB_LIMIT_RCV(so) so->so_rcv.sb_hiwat
268#define SCTP_SB_LIMIT_SND(so) so->so_snd.sb_hiwat
269
270/*
271 * routes, output, etc.
272 */
273typedef struct route sctp_route_t;
274
275
276/*
273 * SCTP AUTH
274 */
275#define HAVE_SHA2
276
277#define SCTP_READ_RANDOM(buf, len) read_random(buf, len)
278
279#ifdef USE_SCTP_SHA1
280#include <netinet/sctp_sha1.h>

--- 19 unchanged lines hidden ---
277 * SCTP AUTH
278 */
279#define HAVE_SHA2
280
281#define SCTP_READ_RANDOM(buf, len) read_random(buf, len)
282
283#ifdef USE_SCTP_SHA1
284#include <netinet/sctp_sha1.h>

--- 19 unchanged lines hidden ---