xref: /f-stack/tools/compat/include/net/if_gre.h (revision df6ad731)
1*df6ad731Slogwang /*-
2*df6ad731Slogwang  * Copyright (c) 1998 The NetBSD Foundation, Inc.
3*df6ad731Slogwang  * Copyright (c) 2014 Andrey V. Elsukov <[email protected]>
4*df6ad731Slogwang  * All rights reserved
5*df6ad731Slogwang  *
6*df6ad731Slogwang  * This code is derived from software contributed to The NetBSD Foundation
7*df6ad731Slogwang  * by Heiko W.Rupp <[email protected]>
8*df6ad731Slogwang  *
9*df6ad731Slogwang  * Redistribution and use in source and binary forms, with or without
10*df6ad731Slogwang  * modification, are permitted provided that the following conditions
11*df6ad731Slogwang  * are met:
12*df6ad731Slogwang  * 1. Redistributions of source code must retain the above copyright
13*df6ad731Slogwang  *    notice, this list of conditions and the following disclaimer.
14*df6ad731Slogwang  * 2. Redistributions in binary form must reproduce the above copyright
15*df6ad731Slogwang  *    notice, this list of conditions and the following disclaimer in the
16*df6ad731Slogwang  *    documentation and/or other materials provided with the distribution.
17*df6ad731Slogwang  *
18*df6ad731Slogwang  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19*df6ad731Slogwang  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20*df6ad731Slogwang  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21*df6ad731Slogwang  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22*df6ad731Slogwang  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*df6ad731Slogwang  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*df6ad731Slogwang  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*df6ad731Slogwang  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*df6ad731Slogwang  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*df6ad731Slogwang  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*df6ad731Slogwang  * POSSIBILITY OF SUCH DAMAGE.
29*df6ad731Slogwang  *
30*df6ad731Slogwang  * $NetBSD: if_gre.h,v 1.13 2003/11/10 08:51:52 wiz Exp $
31*df6ad731Slogwang  * $FreeBSD$
32*df6ad731Slogwang  */
33*df6ad731Slogwang 
34*df6ad731Slogwang #ifndef _NET_IF_GRE_H_
35*df6ad731Slogwang #define _NET_IF_GRE_H_
36*df6ad731Slogwang 
37*df6ad731Slogwang #define GRESADDRS	_IOW('i', 101, struct ifreq)
38*df6ad731Slogwang #define GRESADDRD	_IOW('i', 102, struct ifreq)
39*df6ad731Slogwang #define GREGADDRS	_IOWR('i', 103, struct ifreq)
40*df6ad731Slogwang #define GREGADDRD	_IOWR('i', 104, struct ifreq)
41*df6ad731Slogwang #define GRESPROTO	_IOW('i' , 105, struct ifreq)
42*df6ad731Slogwang #define GREGPROTO	_IOWR('i', 106, struct ifreq)
43*df6ad731Slogwang 
44*df6ad731Slogwang #define	GREGKEY		_IOWR('i', 107, struct ifreq)
45*df6ad731Slogwang #define	GRESKEY		_IOW('i', 108, struct ifreq)
46*df6ad731Slogwang #define	GREGOPTS	_IOWR('i', 109, struct ifreq)
47*df6ad731Slogwang #define	GRESOPTS	_IOW('i', 110, struct ifreq)
48*df6ad731Slogwang 
49*df6ad731Slogwang #define	GRE_ENABLE_CSUM		0x0001
50*df6ad731Slogwang #define	GRE_ENABLE_SEQ		0x0002
51*df6ad731Slogwang #define	GRE_OPTMASK		(GRE_ENABLE_CSUM|GRE_ENABLE_SEQ)
52*df6ad731Slogwang 
53*df6ad731Slogwang #endif /* _NET_IF_GRE_H_ */
54