Skip to content

Commit fe16172

Browse files
ianlancetaylorgopherbot
authored andcommitted
unix: define IfMsghdr2, IfData64, and RtMsghdr2 on darwin
Change-Id: I6943f6b5bd9f7d0ef5bad24ed638b8cf5dd0353d Reviewed-on: https://go-review.googlesource.com/c/sys/+/633077 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
1 parent 0a57dbc commit fe16172

File tree

3 files changed

+129
-0
lines changed

3 files changed

+129
-0
lines changed

unix/types_darwin.go

+9
Original file line numberDiff line numberDiff line change
@@ -256,18 +256,25 @@ type FdSet C.fd_set
256256

257257
const (
258258
SizeofIfMsghdr = C.sizeof_struct_if_msghdr
259+
SizeofIfMsghdr2 = C.sizeof_struct_if_msghdr2
259260
SizeofIfData = C.sizeof_struct_if_data
261+
SizeofIfData64 = C.sizeof_struct_if_data64
260262
SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr
261263
SizeofIfmaMsghdr = C.sizeof_struct_ifma_msghdr
262264
SizeofIfmaMsghdr2 = C.sizeof_struct_ifma_msghdr2
263265
SizeofRtMsghdr = C.sizeof_struct_rt_msghdr
266+
SizeofRtMsghdr2 = C.sizeof_struct_rt_msghdr2
264267
SizeofRtMetrics = C.sizeof_struct_rt_metrics
265268
)
266269

267270
type IfMsghdr C.struct_if_msghdr
268271

272+
type IfMsghdr2 C.struct_if_msghdr2
273+
269274
type IfData C.struct_if_data
270275

276+
type IfData64 C.struct_if_data64
277+
271278
type IfaMsghdr C.struct_ifa_msghdr
272279

273280
type IfmaMsghdr C.struct_ifma_msghdr
@@ -276,6 +283,8 @@ type IfmaMsghdr2 C.struct_ifma_msghdr2
276283

277284
type RtMsghdr C.struct_rt_msghdr
278285

286+
type RtMsghdr2 C.struct_rt_msghdr2
287+
279288
type RtMetrics C.struct_rt_metrics
280289

281290
// Berkeley packet filter

unix/ztypes_darwin_amd64.go

+60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/ztypes_darwin_arm64.go

+60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)