socket.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _ASM_SOCKET_H
  2. #define _ASM_SOCKET_H
  3. /*
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. */
  9. #include <asm/sockios.h>
  10. /* For setsockoptions(2) */
  11. #define SOL_SOCKET 1
  12. #define SO_DEBUG 1
  13. #define SO_REUSEADDR 2
  14. #define SO_TYPE 3
  15. #define SO_ERROR 4
  16. #define SO_DONTROUTE 5
  17. #define SO_BROADCAST 6
  18. #define SO_SNDBUF 7
  19. #define SO_RCVBUF 8
  20. #define SO_KEEPALIVE 9
  21. #define SO_OOBINLINE 10
  22. #define SO_NO_CHECK 11
  23. #define SO_PRIORITY 12
  24. #define SO_LINGER 13
  25. #define SO_BSDCOMPAT 14
  26. /* To add :#define SO_REUSEPORT 15 */
  27. #define SO_RCVLOWAT 16
  28. #define SO_SNDLOWAT 17
  29. #define SO_RCVTIMEO 18
  30. #define SO_SNDTIMEO 19
  31. #define SO_PASSCRED 20
  32. #define SO_PEERCRED 21
  33. /* Security levels - as per NRL IPv6 - don't actually do anything */
  34. #define SO_SECURITY_AUTHENTICATION 22
  35. #define SO_SECURITY_ENCRYPTION_TRANSPORT 23
  36. #define SO_SECURITY_ENCRYPTION_NETWORK 24
  37. #define SO_BINDTODEVICE 25
  38. /* Socket filtering */
  39. #define SO_ATTACH_FILTER 26
  40. #define SO_DETACH_FILTER 27
  41. #define SO_PEERNAME 28
  42. #define SO_TIMESTAMP 29
  43. #define SCM_TIMESTAMP SO_TIMESTAMP
  44. #define SO_ACCEPTCONN 30
  45. #define SO_PEERSEC 31
  46. #endif /* _ASM_SOCKET_H */