sockbits.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 SPARC_SOCKBITS_H
  8. #define SPARC_SOCKBITS_H
  9. /* For setsockopt(2) */
  10. #define TARGET_SOL_SOCKET 0xffff
  11. #define TARGET_SO_DEBUG 0x0001
  12. #define TARGET_SO_PASSCRED 0x0002
  13. #define TARGET_SO_REUSEADDR 0x0004
  14. #define TARGET_SO_KEEPALIVE 0x0008
  15. #define TARGET_SO_DONTROUTE 0x0010
  16. #define TARGET_SO_BROADCAST 0x0020
  17. #define TARGET_SO_PEERCRED 0x0040
  18. #define TARGET_SO_LINGER 0x0080
  19. #define TARGET_SO_OOBINLINE 0x0100
  20. #define TARGET_SO_REUSEPORT 0x0200
  21. #define TARGET_SO_BSDCOMPAT 0x0400
  22. #define TARGET_SO_RCVLOWAT 0x0800
  23. #define TARGET_SO_SNDLOWAT 0x1000
  24. #define TARGET_SO_RCVTIMEO 0x2000
  25. #define TARGET_SO_SNDTIMEO 0x4000
  26. #define TARGET_SO_ACCEPTCONN 0x8000
  27. #define TARGET_SO_SNDBUF 0x1001
  28. #define TARGET_SO_RCVBUF 0x1002
  29. #define TARGET_SO_SNDBUFFORCE 0x100a
  30. #define TARGET_SO_RCVBUFFORCE 0x100b
  31. #define TARGET_SO_ERROR 0x1007
  32. #define TARGET_SO_TYPE 0x1008
  33. #define TARGET_SO_PROTOCOL 0x1028
  34. #define TARGET_SO_DOMAIN 0x1029
  35. /* Linux specific, keep the same. */
  36. #define TARGET_SO_NO_CHECK 0x000b
  37. #define TARGET_SO_PRIORITY 0x000c
  38. #define TARGET_SO_BINDTODEVICE 0x000d
  39. #define TARGET_SO_ATTACH_FILTER 0x001a
  40. #define TARGET_SO_DETACH_FILTER 0x001b
  41. #define TARGET_SO_GET_FILTER TARGET_SO_ATTACH_FILTER
  42. #define TARGET_SO_PEERNAME 0x001c
  43. #define TARGET_SO_TIMESTAMP 0x001d
  44. #define TARGET_SCM_TIMESTAMP TARGET_SO_TIMESTAMP
  45. #define TARGET_SO_PEERSEC 0x001e
  46. #define TARGET_SO_PASSSEC 0x001f
  47. #define TARGET_SO_TIMESTAMPNS 0x0021
  48. #define TARGET_SCM_TIMESTAMPNS TARGET_SO_TIMESTAMPNS
  49. #define TARGET_SO_MARK 0x0022
  50. #define TARGET_SO_TIMESTAMPING 0x0023
  51. #define TARGET_SCM_TIMESTAMPING TARGET_SO_TIMESTAMPING
  52. #define TARGET_SO_RXQ_OVFL 0x0024
  53. #define TARGET_SO_WIFI_STATUS 0x0025
  54. #define TARGET_SCM_WIFI_STATUS TARGET_SO_WIFI_STATUS
  55. #define TARGET_SO_PEEK_OFF 0x0026
  56. /* Instruct lower device to use last 4-bytes of skb data as FCS */
  57. #define TARGET_SO_NOFCS 0x0027
  58. #define TARGET_SO_LOCK_FILTER 0x0028
  59. #define TARGET_SO_SELECT_ERR_QUEUE 0x0029
  60. #define TARGET_SO_BUSY_POLL 0x0030
  61. #define TARGET_SO_MAX_PACING_RATE 0x0031
  62. #define TARGET_SO_BPF_EXTENSIONS 0x0032
  63. #define TARGET_SO_INCOMING_CPU 0x0033
  64. #define TARGET_SO_ATTACH_BPF 0x0034
  65. #define TARGET_SO_DETACH_BPF TARGET_SO_DETACH_FILTER
  66. #define TARGET_SO_ATTACH_REUSEPORT_CBPF 0x0035
  67. #define TARGET_SO_ATTACH_REUSEPORT_EBPF 0x0036
  68. #define TARGET_SO_CNX_ADVICE 0x0037
  69. #define TARGET_SCM_TIMESTAMPING_OPT_STATS 0x0038
  70. #define TARGET_SO_MEMINFO 0x0039
  71. #define TARGET_SO_INCOMING_NAPI_ID 0x003a
  72. #define TARGET_SO_COOKIE 0x003b
  73. #define TARGET_SCM_TIMESTAMPING_PKTINFO 0x003c
  74. #define TARGET_SO_PEERGROUPS 0x003d
  75. #define TARGET_SO_ZEROCOPY 0x003e
  76. /* Security levels - as per NRL IPv6 - don't actually do anything */
  77. #define TARGET_SO_SECURITY_AUTHENTICATION 0x5001
  78. #define TARGET_SO_SECURITY_ENCRYPTION_TRANSPORT 0x5002
  79. #define TARGET_SO_SECURITY_ENCRYPTION_NETWORK 0x5004
  80. #endif