sctp_sockopts.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2009 iptelorg GmbH
  5. *
  6. * Permission to use, copy, modify, and distribute this software for any
  7. * purpose with or without fee is hereby granted, provided that the above
  8. * copyright notice and this permission notice appear in all copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /*
  19. * sctp_sockopts.h - portability fixes / compatibility defines for some
  20. * sctp socket options
  21. */
  22. /*
  23. * History:
  24. * --------
  25. * 2009-11-12 initial version (andrei)
  26. */
  27. #ifndef __sctp_sockopts_h
  28. #define __sctp_sockopts_h
  29. #include <netinet/sctp.h>
  30. #ifndef SCTP_DELAYED_SACK
  31. #ifdef SCTP_DELAYED_ACK
  32. /* on linux lksctp/libsctp <= 1.0.11 (and possible future versions)
  33. * SCTP_DELAYED_ACK is used instead of SCTP_DELAYED_SACK (typo?)
  34. */
  35. #define SCTP_DELAYED_SACK SCTP_DELAYED_ACK
  36. #endif /* SCTP_DELAYED_ACK */
  37. #endif /* SCTP_DELAYED_SACK */
  38. #endif /*__sctp_sockopts_h*/
  39. /* vi: set ts=4 sw=4 tw=79:ai:cindent: */