netwerk/sctp/src/netinet6/sctp6_var.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/sctp/src/netinet6/sctp6_var.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,85 @@
     1.4 +/*-
     1.5 + * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
     1.6 + * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
     1.7 + * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
     1.8 + *
     1.9 + * Redistribution and use in source and binary forms, with or without
    1.10 + * modification, are permitted provided that the following conditions are met:
    1.11 + *
    1.12 + * a) Redistributions of source code must retain the above copyright notice,
    1.13 + *    this list of conditions and the following disclaimer.
    1.14 + *
    1.15 + * b) Redistributions in binary form must reproduce the above copyright
    1.16 + *    notice, this list of conditions and the following disclaimer in
    1.17 + *    the documentation and/or other materials provided with the distribution.
    1.18 + *
    1.19 + * c) Neither the name of Cisco Systems, Inc. nor the names of its
    1.20 + *    contributors may be used to endorse or promote products derived
    1.21 + *    from this software without specific prior written permission.
    1.22 + *
    1.23 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    1.24 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    1.25 + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.26 + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    1.27 + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    1.28 + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    1.29 + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    1.30 + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    1.31 + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    1.32 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
    1.33 + * THE POSSIBILITY OF SUCH DAMAGE.
    1.34 + */
    1.35 +
    1.36 +#ifdef __FreeBSD__
    1.37 +#include <sys/cdefs.h>
    1.38 +__FBSDID("$FreeBSD: head/sys/netinet6/sctp6_var.h 243186 2012-11-17 20:04:04Z tuexen $");
    1.39 +#endif
    1.40 +
    1.41 +#ifndef _NETINET6_SCTP6_VAR_H_
    1.42 +#define _NETINET6_SCTP6_VAR_H_
    1.43 +
    1.44 +#if defined(__Userspace__)
    1.45 +extern void in6_sin6_2_sin(struct sockaddr_in *, struct sockaddr_in6 *sin6);
    1.46 +#endif
    1.47 +#if defined(_KERNEL)
    1.48 +
    1.49 +#if defined(__FreeBSD__) || (__APPLE__) || defined(__Windows__)
    1.50 +SYSCTL_DECL(_net_inet6_sctp6);
    1.51 +extern struct pr_usrreqs sctp6_usrreqs;
    1.52 +#else
    1.53 +int sctp6_usrreq(struct socket *, int, struct mbuf *, struct mbuf *, struct mbuf *);
    1.54 +#endif
    1.55 +
    1.56 +#if defined(__APPLE__)
    1.57 +int sctp6_input(struct mbuf **, int *);
    1.58 +int sctp6_input_with_port(struct mbuf **, int *, uint16_t);
    1.59 +#elif defined(__Panda__)
    1.60 +int sctp6_input (pakhandle_type *);
    1.61 +#elif defined(__FreeBSD__) && __FreeBSD_version < 902000
    1.62 +int sctp6_input __P((struct mbuf **, int *, int));
    1.63 +int sctp6_input_with_port __P((struct mbuf **, int *, uint16_t));
    1.64 +#else
    1.65 +int sctp6_input(struct mbuf **, int *, int);
    1.66 +int sctp6_input_with_port(struct mbuf **, int *, uint16_t);
    1.67 +#endif
    1.68 +#if defined(__FreeBSD__) && __FreeBSD_version < 902000
    1.69 +int sctp6_output
    1.70 +__P((struct sctp_inpcb *, struct mbuf *, struct sockaddr *,
    1.71 +     struct mbuf *, struct proc *));
    1.72 +void sctp6_ctlinput __P((int, struct sockaddr *, void *));
    1.73 +#else
    1.74 +int sctp6_output(struct sctp_inpcb *, struct mbuf *, struct sockaddr *,
    1.75 +                 struct mbuf *, struct proc *);
    1.76 +void sctp6_ctlinput(int, struct sockaddr *, void *);
    1.77 +#endif
    1.78 +#if !(defined(__FreeBSD__) || defined(__APPLE__))
    1.79 +extern void in6_sin_2_v4mapsin6(struct sockaddr_in *sin,
    1.80 +				struct sockaddr_in6 *sin6);
    1.81 +extern void in6_sin6_2_sin(struct sockaddr_in *, struct sockaddr_in6 *sin6);
    1.82 +extern void in6_sin6_2_sin_in_sock(struct sockaddr *nam);
    1.83 +#endif
    1.84 +extern void sctp6_notify(struct sctp_inpcb *, struct icmp6_hdr *,
    1.85 +                         struct sctphdr *, struct sockaddr *,
    1.86 +                         struct sctp_tcb *, struct sctp_nets *);
    1.87 +#endif
    1.88 +#endif

mercurial