xref: /dflybsd-src/sys/netinet/ip_gre.h (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
1*86d7f5d3SJohn Marino /*
2*86d7f5d3SJohn Marino  * $NetBSD: ip_gre.h,v 1.5 2002/06/09 16:33:40 itojun Exp $
3*86d7f5d3SJohn Marino  * $DragonFly: src/sys/netinet/ip_gre.h,v 1.5 2006/05/20 02:42:12 dillon Exp $
4*86d7f5d3SJohn Marino  *
5*86d7f5d3SJohn Marino  * Copyright (c) 1998 The NetBSD Foundation, Inc.
6*86d7f5d3SJohn Marino  * All rights reserved.
7*86d7f5d3SJohn Marino  *
8*86d7f5d3SJohn Marino  * This code is derived from software contributed to The NetBSD Foundation
9*86d7f5d3SJohn Marino  * by Heiko W.Rupp <hwr@pilhuhn.de>
10*86d7f5d3SJohn Marino  *
11*86d7f5d3SJohn Marino  * Redistribution and use in source and binary forms, with or without
12*86d7f5d3SJohn Marino  * modification, are permitted provided that the following conditions
13*86d7f5d3SJohn Marino  * are met:
14*86d7f5d3SJohn Marino  * 1. Redistributions of source code must retain the above copyright
15*86d7f5d3SJohn Marino  *    notice, this list of conditions and the following disclaimer.
16*86d7f5d3SJohn Marino  * 2. Redistributions in binary form must reproduce the above copyright
17*86d7f5d3SJohn Marino  *    notice, this list of conditions and the following disclaimer in the
18*86d7f5d3SJohn Marino  *    documentation and/or other materials provided with the distribution.
19*86d7f5d3SJohn Marino  * 3. All advertising materials mentioning features or use of this software
20*86d7f5d3SJohn Marino  *    must display the following acknowledgement:
21*86d7f5d3SJohn Marino  *	  This product includes software developed by the NetBSD
22*86d7f5d3SJohn Marino  *	  Foundation, Inc. and its contributors.
23*86d7f5d3SJohn Marino  * 4. Neither the name of The NetBSD Foundation nor the names of its
24*86d7f5d3SJohn Marino  *    contributors may be used to endorse or promote products derived
25*86d7f5d3SJohn Marino  *    from this software without specific prior written permission.
26*86d7f5d3SJohn Marino  *
27*86d7f5d3SJohn Marino  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
28*86d7f5d3SJohn Marino  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
29*86d7f5d3SJohn Marino  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30*86d7f5d3SJohn Marino  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
31*86d7f5d3SJohn Marino  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32*86d7f5d3SJohn Marino  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33*86d7f5d3SJohn Marino  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34*86d7f5d3SJohn Marino  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35*86d7f5d3SJohn Marino  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36*86d7f5d3SJohn Marino  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37*86d7f5d3SJohn Marino  * POSSIBILITY OF SUCH DAMAGE.
38*86d7f5d3SJohn Marino  */
39*86d7f5d3SJohn Marino 
40*86d7f5d3SJohn Marino #ifndef _NETINET_IP_GRE_H_
41*86d7f5d3SJohn Marino #define _NETINET_IP_GRE_H_
42*86d7f5d3SJohn Marino 
43*86d7f5d3SJohn Marino #ifdef _KERNEL
44*86d7f5d3SJohn Marino 
45*86d7f5d3SJohn Marino struct mbuf;
46*86d7f5d3SJohn Marino 
47*86d7f5d3SJohn Marino int gre_input(struct mbuf **, int *, int);
48*86d7f5d3SJohn Marino int gre_mobile_input(struct mbuf **, int *, int);
49*86d7f5d3SJohn Marino 
50*86d7f5d3SJohn Marino #endif /* _KERNEL */
51*86d7f5d3SJohn Marino 
52*86d7f5d3SJohn Marino #endif
53