sockbits.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License version 2 as
  4. * published by the Free Software Foundation, or (at your option) any
  5. * later version. See the COPYING file in the top-level directory.
  6. */
  7. #ifndef GENERIC_SOCKBITS_H
  8. #define GENERIC_SOCKBITS_H
  9. #define TARGET_SO_PASSSEC 34
  10. /* For setsockopt(2) */
  11. #define TARGET_SOL_SOCKET 1
  12. #define TARGET_SO_DEBUG 1
  13. #define TARGET_SO_REUSEADDR 2
  14. #define TARGET_SO_TYPE 3
  15. #define TARGET_SO_ERROR 4
  16. #define TARGET_SO_DONTROUTE 5
  17. #define TARGET_SO_BROADCAST 6
  18. #define TARGET_SO_SNDBUF 7
  19. #define TARGET_SO_RCVBUF 8
  20. #define TARGET_SO_SNDBUFFORCE 32
  21. #define TARGET_SO_RCVBUFFORCE 33
  22. #define TARGET_SO_KEEPALIVE 9
  23. #define TARGET_SO_OOBINLINE 10
  24. #define TARGET_SO_NO_CHECK 11
  25. #define TARGET_SO_PRIORITY 12
  26. #define TARGET_SO_LINGER 13
  27. #define TARGET_SO_BSDCOMPAT 14
  28. #define TARGET_SO_REUSEPORT 15
  29. #define TARGET_SO_PASSCRED 16
  30. #define TARGET_SO_PEERCRED 17
  31. #define TARGET_SO_RCVLOWAT 18
  32. #define TARGET_SO_SNDLOWAT 19
  33. #define TARGET_SO_RCVTIMEO 20
  34. #define TARGET_SO_SNDTIMEO 21
  35. /* Security levels - as per NRL IPv6 - don't actually do anything */
  36. #define TARGET_SO_SECURITY_AUTHENTICATION 22
  37. #define TARGET_SO_SECURITY_ENCRYPTION_TRANSPORT 23
  38. #define TARGET_SO_SECURITY_ENCRYPTION_NETWORK 24
  39. #define TARGET_SO_BINDTODEVICE 25
  40. /* Socket filtering */
  41. #define TARGET_SO_ATTACH_FILTER 26
  42. #define TARGET_SO_DETACH_FILTER 27
  43. #define TARGET_SO_PEERNAME 28
  44. #define TARGET_SO_TIMESTAMP 29
  45. #define TARGET_SCM_TIMESTAMP TARGET_SO_TIMESTAMP
  46. #define TARGET_SO_ACCEPTCONN 30
  47. #define TARGET_SO_PEERSEC 31
  48. #endif