Skip to content

Commit

Permalink
Revert "route: remove unused sizeof* consts on freebsd"
Browse files Browse the repository at this point in the history
This reverts CL 633155.

Reason for revert: This is part of a short chain of CLs that causes
x/net to depend on x/sys. We have a policy that prevents us from
vendoring x/sys into std, but x/net needs to be vendored.

Change-Id: Ib773f21dee59fe6f4afb7ba1d7ae01d8859110c6
Reviewed-on: https://go-review.googlesource.com/c/net/+/634255
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
mknyszek authored and gopherbot committed Dec 6, 2024
1 parent 285e1cf commit 13a7c01
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 0 deletions.
16 changes: 16 additions & 0 deletions route/defs_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ const (
sizeofIfMsghdrFreeBSD10 = C.sizeof_struct_if_msghdr_freebsd10
sizeofIfMsghdrFreeBSD11 = C.sizeof_struct_if_msghdr_freebsd11

sizeofIfDataFreeBSD7 = C.sizeof_struct_if_data_freebsd7
sizeofIfDataFreeBSD8 = C.sizeof_struct_if_data_freebsd8
sizeofIfDataFreeBSD9 = C.sizeof_struct_if_data_freebsd9
sizeofIfDataFreeBSD10 = C.sizeof_struct_if_data_freebsd10
sizeofIfDataFreeBSD11 = C.sizeof_struct_if_data_freebsd11

sizeofRtMsghdrFreeBSD10Emu = C.sizeof_struct_rt_msghdr
sizeofRtMetricsFreeBSD10Emu = C.sizeof_struct_rt_metrics

Expand All @@ -235,4 +241,14 @@ const (
sizeofIfMsghdrFreeBSD9Emu = C.sizeof_struct_if_msghdr_freebsd9
sizeofIfMsghdrFreeBSD10Emu = C.sizeof_struct_if_msghdr_freebsd10
sizeofIfMsghdrFreeBSD11Emu = C.sizeof_struct_if_msghdr_freebsd11

sizeofIfDataFreeBSD7Emu = C.sizeof_struct_if_data_freebsd7
sizeofIfDataFreeBSD8Emu = C.sizeof_struct_if_data_freebsd8
sizeofIfDataFreeBSD9Emu = C.sizeof_struct_if_data_freebsd9
sizeofIfDataFreeBSD10Emu = C.sizeof_struct_if_data_freebsd10
sizeofIfDataFreeBSD11Emu = C.sizeof_struct_if_data_freebsd11

sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage
sizeofSockaddrInet = C.sizeof_struct_sockaddr_in
sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
)
16 changes: 16 additions & 0 deletions route/zsys_freebsd_386.go

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

16 changes: 16 additions & 0 deletions route/zsys_freebsd_amd64.go

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

16 changes: 16 additions & 0 deletions route/zsys_freebsd_arm.go

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

16 changes: 16 additions & 0 deletions route/zsys_freebsd_arm64.go

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

16 changes: 16 additions & 0 deletions route/zsys_freebsd_riscv64.go

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

0 comments on commit 13a7c01

Please sign in to comment.