00001 /* 00002 * $Id$ 00003 * 00004 * Copyright (C) 2009 iptelorg GmbH 00005 * 00006 * Permission to use, copy, modify, and distribute this software for any 00007 * purpose with or without fee is hereby granted, provided that the above 00008 * copyright notice and this permission notice appear in all copies. 00009 * 00010 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 00011 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 00012 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 00013 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00014 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00015 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 00016 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00017 */ 00018 /* 00019 * sctp_sockopts.h - portability fixes / compatibility defines for some 00020 * sctp socket options 00021 */ 00022 /* 00023 * History: 00024 * -------- 00025 * 2009-11-12 initial version (andrei) 00026 */ 00027 00028 #ifndef __sctp_sockopts_h 00029 #define __sctp_sockopts_h 00030 00031 #include <netinet/sctp.h> 00032 00033 #ifndef SCTP_DELAYED_SACK 00034 #ifdef SCTP_DELAYED_ACK 00035 /* on linux lksctp/libsctp <= 1.0.11 (and possible future versions) 00036 * SCTP_DELAYED_ACK is used instead of SCTP_DELAYED_SACK (typo?) 00037 */ 00038 #define SCTP_DELAYED_SACK SCTP_DELAYED_ACK 00039 #endif /* SCTP_DELAYED_ACK */ 00040 #endif /* SCTP_DELAYED_SACK */ 00041 00042 #endif /*__sctp_sockopts_h*/ 00043 00044 /* vi: set ts=4 sw=4 tw=79:ai:cindent: */
1.7.1