1174704Skmacy/* 2174704Skmacy This software is available to you under a choice of one of two 3174704Skmacy licenses. You may choose to be licensed under the terms of the GNU 4174704Skmacy General Public License (GPL) Version 2, available at 5174704Skmacy <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD 6174704Skmacy license, available in the LICENSE.TXT file accompanying this 7174704Skmacy software. These details are also available at 8174704Skmacy <http://openib.org/license.html>. 9174704Skmacy 10174704Skmacy THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 11174704Skmacy EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 12174704Skmacy MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 13174704Skmacy NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 14174704Skmacy BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 15174704Skmacy ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 16174704Skmacy CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 17174704Skmacy SOFTWARE. 18174704Skmacy 19174704Skmacy Copyright (c) 2004 Topspin Communications. All rights reserved. 20174704Skmacy 21174704Skmacy $Id$ 22174704Skmacy*/ 23174704Skmacy 24174704Skmacy#ifndef _SDP_INET_H 25174704Skmacy#define _SDP_INET_H 26174704Skmacy 27174704Skmacy/* 28174704Skmacy * constants shared between user and kernel space. 29174704Skmacy */ 30174704Skmacy 31174704Skmacy#ifndef SOLARIS_BUILD 32174704Skmacy#ifdef __FreeBSD__ 33174704Skmacy#include <sys/socket.h> 34174704Skmacy#else 35174704Skmacy#define AF_INET_SDP 27 /* SDP socket protocol family */ 36174704Skmacy#define AF_INET6_SDP 28 /* SDP socket protocol family */ 37174704Skmacy#endif 38174704Skmacy#else 39174704Skmacy#define AF_INET_SDP 31 /* This is an invalid family on native solaris 40181803Sbz * and will only work using QuickTransit */ 41174704Skmacy//TODO XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx 42174704Skmacy#define AF_INET6_SDP 32 /* SDP socket protocol family */ 43174704Skmacy#endif 44174704Skmacy 45194739Sbz#define AF_INET_STR "AF_INET_SDP" /* SDP enabled environment variable */ 46174704Skmacy#define AF_INET6_STR "AF_INET6_SDP" /* SDP enabled environment variable */ 47174704Skmacy 48174704Skmacy#ifndef SDP_ZCOPY_THRESH 49174704Skmacy#define SDP_ZCOPY_THRESH 80 50174704Skmacy#endif 51174704Skmacy 52174704Skmacy#ifndef SDP_LAST_BIND_ERR 53174704Skmacy#define SDP_LAST_BIND_ERR 81 54185571Sbz#endif 55174704Skmacy 56182591Skmacy#endif /* _SDP_INET_H */ 57182591Skmacy