zsys_zos_s390x.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 ipv6
  7. const (
  8. sizeofSockaddrStorage = 128
  9. sizeofICMPv6Filter = 32
  10. sizeofInet6Pktinfo = 20
  11. sizeofIPv6Mtuinfo = 32
  12. sizeofSockaddrInet6 = 28
  13. sizeofGroupReq = 136
  14. sizeofGroupSourceReq = 264
  15. )
  16. type sockaddrStorage struct {
  17. Len uint8
  18. Family byte
  19. ss_pad1 [6]byte
  20. ss_align int64
  21. ss_pad2 [112]byte
  22. }
  23. type sockaddrInet6 struct {
  24. Len uint8
  25. Family uint8
  26. Port uint16
  27. Flowinfo uint32
  28. Addr [16]byte
  29. Scope_id uint32
  30. }
  31. type inet6Pktinfo struct {
  32. Addr [16]byte
  33. Ifindex uint32
  34. }
  35. type ipv6Mtuinfo struct {
  36. Addr sockaddrInet6
  37. Mtu uint32
  38. }
  39. type groupReq struct {
  40. Interface uint32
  41. reserved uint32
  42. Group sockaddrStorage
  43. }
  44. type groupSourceReq struct {
  45. Interface uint32
  46. reserved uint32
  47. Group sockaddrStorage
  48. Source sockaddrStorage
  49. }
  50. type icmpv6Filter struct {
  51. Filt [8]uint32
  52. }