zsys_linux_mips.go 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_linux.go
  3. package socket
  4. const (
  5. sysAF_UNSPEC = 0x0
  6. sysAF_INET = 0x2
  7. sysAF_INET6 = 0xa
  8. sysSOCK_RAW = 0x3
  9. )
  10. type iovec struct {
  11. Base *byte
  12. Len uint32
  13. }
  14. type msghdr struct {
  15. Name *byte
  16. Namelen uint32
  17. Iov *iovec
  18. Iovlen uint32
  19. Control *byte
  20. Controllen uint32
  21. Flags int32
  22. }
  23. type mmsghdr struct {
  24. Hdr msghdr
  25. Len uint32
  26. }
  27. type cmsghdr struct {
  28. Len uint32
  29. Level int32
  30. Type int32
  31. }
  32. type sockaddrInet struct {
  33. Family uint16
  34. Port uint16
  35. Addr [4]byte /* in_addr */
  36. X__pad [8]uint8
  37. }
  38. type sockaddrInet6 struct {
  39. Family uint16
  40. Port uint16
  41. Flowinfo uint32
  42. Addr [16]byte /* in6_addr */
  43. Scope_id uint32
  44. }
  45. const (
  46. sizeofIovec = 0x8
  47. sizeofMsghdr = 0x1c
  48. sizeofMmsghdr = 0x20
  49. sizeofCmsghdr = 0xc
  50. sizeofSockaddrInet = 0x10
  51. sizeofSockaddrInet6 = 0x1c
  52. )