zsys_linux_riscv64.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_linux.go
  3. //go:build riscv64
  4. // +build riscv64
  5. package ipv4
  6. const (
  7. sizeofKernelSockaddrStorage = 0x80
  8. sizeofSockaddrInet = 0x10
  9. sizeofInetPktinfo = 0xc
  10. sizeofSockExtendedErr = 0x10
  11. sizeofIPMreq = 0x8
  12. sizeofIPMreqSource = 0xc
  13. sizeofGroupReq = 0x88
  14. sizeofGroupSourceReq = 0x108
  15. sizeofICMPFilter = 0x4
  16. )
  17. type kernelSockaddrStorage struct {
  18. Family uint16
  19. X__data [126]int8
  20. }
  21. type sockaddrInet struct {
  22. Family uint16
  23. Port uint16
  24. Addr [4]byte /* in_addr */
  25. X__pad [8]uint8
  26. }
  27. type inetPktinfo struct {
  28. Ifindex int32
  29. Spec_dst [4]byte /* in_addr */
  30. Addr [4]byte /* in_addr */
  31. }
  32. type sockExtendedErr struct {
  33. Errno uint32
  34. Origin uint8
  35. Type uint8
  36. Code uint8
  37. Pad uint8
  38. Info uint32
  39. Data uint32
  40. }
  41. type ipMreq struct {
  42. Multiaddr [4]byte /* in_addr */
  43. Interface [4]byte /* in_addr */
  44. }
  45. type ipMreqSource struct {
  46. Multiaddr uint32
  47. Interface uint32
  48. Sourceaddr uint32
  49. }
  50. type groupReq struct {
  51. Interface uint32
  52. Pad_cgo_0 [4]byte
  53. Group kernelSockaddrStorage
  54. }
  55. type groupSourceReq struct {
  56. Interface uint32
  57. Pad_cgo_0 [4]byte
  58. Group kernelSockaddrStorage
  59. Source kernelSockaddrStorage
  60. }
  61. type icmpFilter struct {
  62. Data uint32
  63. }