zsys_zos_s390x.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright 2020 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Hand edited based on zerrors_zos_s390x.go
  5. // TODO(Bill O'Farrell): auto-generate.
  6. package ipv4
  7. const (
  8. sizeofIPMreq = 8
  9. sizeofSockaddrInet4 = 16
  10. sizeofSockaddrStorage = 128
  11. sizeofGroupReq = 136
  12. sizeofGroupSourceReq = 264
  13. sizeofInetPktinfo = 8
  14. )
  15. type sockaddrInet4 struct {
  16. Len uint8
  17. Family uint8
  18. Port uint16
  19. Addr [4]byte
  20. Zero [8]uint8
  21. }
  22. type inetPktinfo struct {
  23. Addr [4]byte
  24. Ifindex uint32
  25. }
  26. type sockaddrStorage struct {
  27. Len uint8
  28. Family byte
  29. ss_pad1 [6]byte
  30. ss_align int64
  31. ss_pad2 [112]byte
  32. }
  33. type groupReq struct {
  34. Interface uint32
  35. reserved uint32
  36. Group sockaddrStorage
  37. }
  38. type groupSourceReq struct {
  39. Interface uint32
  40. reserved uint32
  41. Group sockaddrStorage
  42. Source sockaddrStorage
  43. }
  44. type ipMreq struct {
  45. Multiaddr [4]byte /* in_addr */
  46. Interface [4]byte /* in_addr */
  47. }