Skip to content

Commit

Permalink
unix: define IfMsghdr2, IfData64, and RtMsghdr2 on darwin
Browse files Browse the repository at this point in the history
Change-Id: I6943f6b5bd9f7d0ef5bad24ed638b8cf5dd0353d
Reviewed-on: https://go-review.googlesource.com/c/sys/+/633077
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
Reviewed-by: Michael Knyszek <[email protected]>
  • Loading branch information
ianlancetaylor authored and gopherbot committed Dec 3, 2024
1 parent 0a57dbc commit fe16172
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unix/types_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,18 +256,25 @@ type FdSet C.fd_set

const (
SizeofIfMsghdr = C.sizeof_struct_if_msghdr
SizeofIfMsghdr2 = C.sizeof_struct_if_msghdr2
SizeofIfData = C.sizeof_struct_if_data
SizeofIfData64 = C.sizeof_struct_if_data64
SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr
SizeofIfmaMsghdr = C.sizeof_struct_ifma_msghdr
SizeofIfmaMsghdr2 = C.sizeof_struct_ifma_msghdr2
SizeofRtMsghdr = C.sizeof_struct_rt_msghdr
SizeofRtMsghdr2 = C.sizeof_struct_rt_msghdr2
SizeofRtMetrics = C.sizeof_struct_rt_metrics
)

type IfMsghdr C.struct_if_msghdr

type IfMsghdr2 C.struct_if_msghdr2

type IfData C.struct_if_data

type IfData64 C.struct_if_data64

type IfaMsghdr C.struct_ifa_msghdr

type IfmaMsghdr C.struct_ifma_msghdr
Expand All @@ -276,6 +283,8 @@ type IfmaMsghdr2 C.struct_ifma_msghdr2

type RtMsghdr C.struct_rt_msghdr

type RtMsghdr2 C.struct_rt_msghdr2

type RtMetrics C.struct_rt_metrics

// Berkeley packet filter
Expand Down
60 changes: 60 additions & 0 deletions unix/ztypes_darwin_amd64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions unix/ztypes_darwin_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe16172

Please sign in to comment.