dccp6_var.h revision 1.4
1/*	$KAME: dccp6_var.h,v 1.3 2003/11/18 04:55:43 ono Exp $	*/
2/*	$NetBSD: dccp6_var.h,v 1.4 2015/05/02 17:18:03 rtr Exp $ */
3
4/*
5 * Copyright (c) 2003 Joacim H�ggmark
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 * 1. Redistributions of source code must retain the above copyright
13 *    notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 *    notice, this list of conditions and the following disclaimer in the
16 *    documentation and/or other materials provided with the distribution.
17 * 3. The name of the author may not be used to endorse or promote products
18 *    derived from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * Id: dccp6_var.h,v 1.1 2003/07/31 21:34:16 joahag-9 Exp
32 */
33
34#ifndef _NETINET_DCCP6_VAR_H_
35#define _NETINET_DCCP6_VAR_H_
36
37#ifdef _KERNEL
38
39extern const struct	pr_usrreqs dccp6_usrreqs;
40extern struct	in6pcb dccpb6;
41
42void *	dccp6_ctlinput(int, const struct sockaddr *, void *);
43int	dccp6_input(struct mbuf **, int *, int);
44int	dccp6_usrreq(struct socket *, int, struct mbuf *, struct mbuf *,
45		     struct mbuf *, struct lwp *);
46int	dccp6_bind(struct socket *, struct sockaddr *, struct lwp *);
47int	dccp6_listen(struct socket *, struct lwp *);
48int	dccp6_connect(struct socket *, struct sockaddr *, struct lwp *);
49int	dccp6_accept(struct socket *, struct sockaddr *);
50
51#endif
52#endif
53