sctp_peeloff.h (228653) | sctp_peeloff.h (235828) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. | 1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. |
3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. 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 * 9 * a) Redistributions of source code must retain the above copyright notice, 10 * this list of conditions and the following disclaimer. 11 * 12 * b) Redistributions in binary form must reproduce the above copyright --- 12 unchanged lines hidden (view full) --- 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 | 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 * 9 * a) Redistributions of source code must retain the above copyright notice, 10 * this list of conditions and the following disclaimer. 11 * 12 * b) Redistributions in binary form must reproduce the above copyright --- 12 unchanged lines hidden (view full) --- 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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/* $KAME: sctp_peeloff.h,v 1.6 2005/03/06 16:04:18 itojun Exp $ */ 34 | |
35#include <sys/cdefs.h> | 33#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_peeloff.h 228653 2011-12-17 19:21:40Z tuexen $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_peeloff.h 235828 2012-05-23 11:26:28Z tuexen $"); |
37 | 35 |
38#ifndef __sctp_peeloff_h__ 39#define __sctp_peeloff_h__ | 36#ifndef _NETINET_SCTP_PEELOFF_H_ 37#define _NETINET_SCTP_PEELOFF_H_ |
40 41 42 43 44#if defined(_KERNEL) 45 46int sctp_can_peel_off(struct socket *, sctp_assoc_t); 47int sctp_do_peeloff(struct socket *, struct socket *, sctp_assoc_t); 48struct socket *sctp_get_peeloff(struct socket *, sctp_assoc_t, int *); 49 50 51 52#endif /* _KERNEL */ 53 54#endif | 38 39 40 41 42#if defined(_KERNEL) 43 44int sctp_can_peel_off(struct socket *, sctp_assoc_t); 45int sctp_do_peeloff(struct socket *, struct socket *, sctp_assoc_t); 46struct socket *sctp_get_peeloff(struct socket *, sctp_assoc_t, int *); 47 48 49 50#endif /* _KERNEL */ 51 52#endif |