]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ofed/libsdp/src/linux/sdp_inet.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ofed / libsdp / src / linux / sdp_inet.h
1 /*
2   This software is available to you under a choice of one of two
3   licenses.  You may choose to be licensed under the terms of the GNU
4   General Public License (GPL) Version 2, available at
5   <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
6   license, available in the LICENSE.TXT file accompanying this
7   software.  These details are also available at
8   <http://openib.org/license.html>.
9
10   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
11   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
12   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
13   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
14   BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
15   ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
16   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   SOFTWARE.
18
19   Copyright (c) 2004 Topspin Communications.  All rights reserved.
20
21   $Id$
22 */
23
24 #ifndef _SDP_INET_H
25 #define _SDP_INET_H
26
27 /*
28  * constants shared between user and kernel space.
29  */
30
31 #ifndef SOLARIS_BUILD
32 #define AF_INET_SDP 27                    /* SDP socket protocol family */
33 #define AF_INET6_SDP 28                   /* SDP socket protocol family */
34 #else
35 #define AF_INET_SDP 31  /* This is an invalid family on native solaris
36                          * and will only work using QuickTransit */
37 //TODO XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
38 #define AF_INET6_SDP 32                   /* SDP socket protocol family */
39 #endif
40
41 #define AF_INET_STR "AF_INET_SDP"       /* SDP enabled environment variable */
42 #define AF_INET6_STR "AF_INET6_SDP"     /* SDP enabled environment variable */
43
44 #ifndef SDP_ZCOPY_THRESH
45 #define SDP_ZCOPY_THRESH 80
46 #endif
47
48 #ifndef SDP_LAST_BIND_ERR
49 #define SDP_LAST_BIND_ERR 81
50 #endif
51
52 #endif /* _SDP_INET_H */