sockbits.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 ALPHA_SOCKBITS_H
  8. #define ALPHA_SOCKBITS_H
  9. /* For setsockopt(2) */
  10. #define TARGET_SOL_SOCKET 0xffff
  11. #define TARGET_SO_DEBUG 0x0001
  12. #define TARGET_SO_REUSEADDR 0x0004
  13. #define TARGET_SO_KEEPALIVE 0x0008
  14. #define TARGET_SO_DONTROUTE 0x0010
  15. #define TARGET_SO_BROADCAST 0x0020
  16. #define TARGET_SO_LINGER 0x0080
  17. #define TARGET_SO_OOBINLINE 0x0100
  18. #define TARGET_SO_REUSEPORT 0x0200
  19. #define TARGET_SO_TYPE 0x1008
  20. #define TARGET_SO_ERROR 0x1007
  21. #define TARGET_SO_SNDBUF 0x1001
  22. #define TARGET_SO_RCVBUF 0x1002
  23. #define TARGET_SO_SNDBUFFORCE 0x100a
  24. #define TARGET_SO_RCVBUFFORCE 0x100b
  25. #define TARGET_SO_RCVLOWAT 0x1010
  26. #define TARGET_SO_SNDLOWAT 0x1011
  27. #define TARGET_SO_RCVTIMEO 0x1012
  28. #define TARGET_SO_SNDTIMEO 0x1013
  29. #define TARGET_SO_ACCEPTCONN 0x1014
  30. #define TARGET_SO_PROTOCOL 0x1028
  31. #define TARGET_SO_DOMAIN 0x1029
  32. /* linux-specific, might as well be the same as on i386 */
  33. #define TARGET_SO_NO_CHECK 11
  34. #define TARGET_SO_PRIORITY 12
  35. #define TARGET_SO_BSDCOMPAT 14
  36. #define TARGET_SO_PASSCRED 17
  37. #define TARGET_SO_PEERCRED 18
  38. #define TARGET_SO_BINDTODEVICE 25
  39. /* Socket filtering */
  40. #define TARGET_SO_ATTACH_FILTER 26
  41. #define TARGET_SO_DETACH_FILTER 27
  42. #define TARGET_SO_PEERNAME 28
  43. #define TARGET_SO_TIMESTAMP 29
  44. #define TARGET_SCM_TIMESTAMP TARGET_SO_TIMESTAMP
  45. #define TARGET_SO_PEERSEC 30
  46. #define TARGET_SO_PASSSEC 34
  47. #define TARGET_SO_TIMESTAMPNS 35
  48. #define TARGET_SCM_TIMESTAMPNS TARGET_SO_TIMESTAMPNS
  49. /* Security levels - as per NRL IPv6 - don't actually do anything */
  50. #define TARGET_SO_SECURITY_AUTHENTICATION 19
  51. #define TARGET_SO_SECURITY_ENCRYPTION_TRANSPORT 20
  52. #define TARGET_SO_SECURITY_ENCRYPTION_NETWORK 21
  53. #define TARGET_SO_MARK 36
  54. #define TARGET_SO_TIMESTAMPING 37
  55. #define TARGET_SCM_TIMESTAMPING TARGET_SO_TIMESTAMPING
  56. #define TARGET_SO_RXQ_OVFL 40
  57. #define TARGET_SO_WIFI_STATUS 41
  58. #define TARGET_SCM_WIFI_STATUS TARGET_SO_WIFI_STATUS
  59. #define TARGET_SO_PEEK_OFF 42
  60. /* Instruct lower device to use last 4-bytes of skb data as FCS */
  61. #define TARGET_SO_NOFCS 43
  62. /* TARGET_O_NONBLOCK clashes with the bits used for socket types. Therefore we
  63. * have to define SOCK_NONBLOCK to a different value here.
  64. */
  65. #define TARGET_SOCK_NONBLOCK 0x40000000
  66. #endif