socket.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef _ASM_SOCKET_H
  2. #define _ASM_SOCKET_H
  3. /* almost the same as asm-i386/socket.h */
  4. #include <asm/sockios.h>
  5. /* For setsockoptions(2) */
  6. #define SOL_SOCKET 1
  7. #define SO_DEBUG 1
  8. #define SO_REUSEADDR 2
  9. #define SO_TYPE 3
  10. #define SO_ERROR 4
  11. #define SO_DONTROUTE 5
  12. #define SO_BROADCAST 6
  13. #define SO_SNDBUF 7
  14. #define SO_RCVBUF 8
  15. #define SO_SNDBUFFORCE 32
  16. #define SO_RCVBUFFORCE 33
  17. #define SO_KEEPALIVE 9
  18. #define SO_OOBINLINE 10
  19. #define SO_NO_CHECK 11
  20. #define SO_PRIORITY 12
  21. #define SO_LINGER 13
  22. #define SO_BSDCOMPAT 14
  23. /* To add :#define SO_REUSEPORT 15 */
  24. #define SO_PASSCRED 16
  25. #define SO_PEERCRED 17
  26. #define SO_RCVLOWAT 18
  27. #define SO_SNDLOWAT 19
  28. #define SO_RCVTIMEO 20
  29. #define SO_SNDTIMEO 21
  30. /* Security levels - as per NRL IPv6 - don't actually do anything */
  31. #define SO_SECURITY_AUTHENTICATION 22
  32. #define SO_SECURITY_ENCRYPTION_TRANSPORT 23
  33. #define SO_SECURITY_ENCRYPTION_NETWORK 24
  34. #define SO_BINDTODEVICE 25
  35. /* Socket filtering */
  36. #define SO_ATTACH_FILTER 26
  37. #define SO_DETACH_FILTER 27
  38. #define SO_PEERNAME 28
  39. #define SO_TIMESTAMP 29
  40. #define SCM_TIMESTAMP SO_TIMESTAMP
  41. #define SO_ACCEPTCONN 30
  42. #define SO_PEERSEC 31
  43. #define SO_PASSSEC 34
  44. #define SO_TIMESTAMPNS 35
  45. #define SCM_TIMESTAMPNS SO_TIMESTAMPNS
  46. #define SO_MARK 36
  47. #define SO_TIMESTAMPING 37
  48. #define SCM_TIMESTAMPING SO_TIMESTAMPING
  49. #define SO_PROTOCOL 38
  50. #define SO_DOMAIN 39
  51. #define SO_RXQ_OVFL 40
  52. #endif /* _ASM_SOCKET_H */