zsys_linux_mips.go 1.2 KB

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