Deleted Added
full compact
sctp_peeloff.c (165220) sctp_peeloff.c (166086)
1/*-
2 * Copyright (c) 2001-2006, 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.

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

27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31
32/* $KAME: sctp_peeloff.c,v 1.13 2005/03/06 16:04:18 itojun Exp $ */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2006, 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.

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

27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31
32/* $KAME: sctp_peeloff.c,v 1.13 2005/03/06 16:04:18 itojun Exp $ */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/netinet/sctp_peeloff.c 165220 2006-12-14 17:02:55Z rrs $");
36
37#include "opt_ipsec.h"
38#include "opt_inet6.h"
39#include "opt_inet.h"
40
41#include "opt_sctp.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/kernel.h>
46#include <sys/malloc.h>
47#include <sys/mbuf.h>
48#include <sys/domain.h>
49#include <sys/proc.h>
50#include <sys/protosw.h>
51#include <sys/socket.h>
52#include <sys/socketvar.h>
53#include <sys/sysctl.h>
54#include <sys/syslog.h>
55#include <net/if.h>
56#include <net/route.h>
57#include <netinet/in.h>
58#include <netinet/in_systm.h>
59#include <netinet/ip.h>
60#ifdef INET6
61#include <netinet/ip6.h>
62#endif
63#include <netinet/in_pcb.h>
64#include <netinet/in_var.h>
65#include <netinet/ip_var.h>
66#ifdef INET6
67#include <netinet6/ip6_var.h>
68#endif
69#include <netinet/ip_icmp.h>
70#include <netinet/icmp_var.h>
35__FBSDID("$FreeBSD: head/sys/netinet/sctp_peeloff.c 166086 2007-01-18 09:58:43Z rrs $");
71#include <netinet/sctp_os.h>
72#include <netinet/sctp_pcb.h>
73#include <netinet/sctp.h>
74#include <netinet/sctp_uio.h>
75#include <netinet/sctp_var.h>
76#include <netinet/sctp_peeloff.h>
77#include <netinet/sctputil.h>
78#include <netinet/sctp_auth.h>
79
36#include <netinet/sctp_os.h>
37#include <netinet/sctp_pcb.h>
38#include <netinet/sctp.h>
39#include <netinet/sctp_uio.h>
40#include <netinet/sctp_var.h>
41#include <netinet/sctp_peeloff.h>
42#include <netinet/sctputil.h>
43#include <netinet/sctp_auth.h>
44
80#ifdef IPSEC
81#include <netinet6/ipsec.h>
82#include <netkey/key.h>
83#endif /* IPSEC */
84
45
85
86#ifdef SCTP_DEBUG
87extern uint32_t sctp_debug_on;
88
89#endif /* SCTP_DEBUG */
90
91
92int
93sctp_can_peel_off(struct socket *head, sctp_assoc_t assoc_id)

--- 148 unchanged lines hidden ---
46#ifdef SCTP_DEBUG
47extern uint32_t sctp_debug_on;
48
49#endif /* SCTP_DEBUG */
50
51
52int
53sctp_can_peel_off(struct socket *head, sctp_assoc_t assoc_id)

--- 148 unchanged lines hidden ---