zsys_linux_arm.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_linux.go
  3. package ipv4
  4. const (
  5. sysIP_TOS = 0x1
  6. sysIP_TTL = 0x2
  7. sysIP_HDRINCL = 0x3
  8. sysIP_OPTIONS = 0x4
  9. sysIP_ROUTER_ALERT = 0x5
  10. sysIP_RECVOPTS = 0x6
  11. sysIP_RETOPTS = 0x7
  12. sysIP_PKTINFO = 0x8
  13. sysIP_PKTOPTIONS = 0x9
  14. sysIP_MTU_DISCOVER = 0xa
  15. sysIP_RECVERR = 0xb
  16. sysIP_RECVTTL = 0xc
  17. sysIP_RECVTOS = 0xd
  18. sysIP_MTU = 0xe
  19. sysIP_FREEBIND = 0xf
  20. sysIP_TRANSPARENT = 0x13
  21. sysIP_RECVRETOPTS = 0x7
  22. sysIP_ORIGDSTADDR = 0x14
  23. sysIP_RECVORIGDSTADDR = 0x14
  24. sysIP_MINTTL = 0x15
  25. sysIP_NODEFRAG = 0x16
  26. sysIP_UNICAST_IF = 0x32
  27. sysIP_MULTICAST_IF = 0x20
  28. sysIP_MULTICAST_TTL = 0x21
  29. sysIP_MULTICAST_LOOP = 0x22
  30. sysIP_ADD_MEMBERSHIP = 0x23
  31. sysIP_DROP_MEMBERSHIP = 0x24
  32. sysIP_UNBLOCK_SOURCE = 0x25
  33. sysIP_BLOCK_SOURCE = 0x26
  34. sysIP_ADD_SOURCE_MEMBERSHIP = 0x27
  35. sysIP_DROP_SOURCE_MEMBERSHIP = 0x28
  36. sysIP_MSFILTER = 0x29
  37. sysMCAST_JOIN_GROUP = 0x2a
  38. sysMCAST_LEAVE_GROUP = 0x2d
  39. sysMCAST_JOIN_SOURCE_GROUP = 0x2e
  40. sysMCAST_LEAVE_SOURCE_GROUP = 0x2f
  41. sysMCAST_BLOCK_SOURCE = 0x2b
  42. sysMCAST_UNBLOCK_SOURCE = 0x2c
  43. sysMCAST_MSFILTER = 0x30
  44. sysIP_MULTICAST_ALL = 0x31
  45. sysSO_EE_ORIGIN_NONE = 0x0
  46. sysSO_EE_ORIGIN_LOCAL = 0x1
  47. sysSO_EE_ORIGIN_ICMP = 0x2
  48. sysSO_EE_ORIGIN_ICMP6 = 0x3
  49. sysSO_EE_ORIGIN_TXSTATUS = 0x4
  50. sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
  51. sysSizeofKernelSockaddrStorage = 0x80
  52. sysSizeofSockaddrInet = 0x10
  53. sysSizeofInetPktinfo = 0xc
  54. sysSizeofSockExtendedErr = 0x10
  55. sysSizeofIPMreq = 0x8
  56. sysSizeofIPMreqn = 0xc
  57. sysSizeofIPMreqSource = 0xc
  58. sysSizeofGroupReq = 0x84
  59. sysSizeofGroupSourceReq = 0x104
  60. )
  61. type sysKernelSockaddrStorage struct {
  62. Family uint16
  63. X__data [126]int8
  64. }
  65. type sysSockaddrInet struct {
  66. Family uint16
  67. Port uint16
  68. Addr [4]byte /* in_addr */
  69. X__pad [8]uint8
  70. }
  71. type sysInetPktinfo struct {
  72. Ifindex int32
  73. Spec_dst [4]byte /* in_addr */
  74. Addr [4]byte /* in_addr */
  75. }
  76. type sysSockExtendedErr struct {
  77. Errno uint32
  78. Origin uint8
  79. Type uint8
  80. Code uint8
  81. Pad uint8
  82. Info uint32
  83. Data uint32
  84. }
  85. type sysIPMreq struct {
  86. Multiaddr [4]byte /* in_addr */
  87. Interface [4]byte /* in_addr */
  88. }
  89. type sysIPMreqn struct {
  90. Multiaddr [4]byte /* in_addr */
  91. Address [4]byte /* in_addr */
  92. Ifindex int32
  93. }
  94. type sysIPMreqSource struct {
  95. Multiaddr uint32
  96. Interface uint32
  97. Sourceaddr uint32
  98. }
  99. type sysGroupReq struct {
  100. Interface uint32
  101. Group sysKernelSockaddrStorage
  102. }
  103. type sysGroupSourceReq struct {
  104. Interface uint32
  105. Group sysKernelSockaddrStorage
  106. Source sysKernelSockaddrStorage
  107. }