zsys_linux_loong64.go 1.3 KB

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