You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think there's anything we need to change in x/sys. type RtMsg and all the other types in ztypes_*.go are auto-generated from kernel headers. These types need to correspond to the respective type expected by the kernel.
As a side-note (unrelated to x/sys): RTA_TABLE rtnetlink attributes are probably what you are looking for, see https://man7.org/linux/man-pages/man7/rtnetlink.7.html. If such an attribute is present its value is used as the table ID and the the table field in struct rt_msg is ignored.
What version of Go are you using (
go version
)?At present, the maximum number of routing tables is 32K.However, only 255 routing tables are supported in the code.
https://github.com/golang/sys/blob/4b90ce9b60b31bd0d0cbceb17532b5c810912f88/unix/ztypes_linux.go#L614
Should the code be modified to support a larger number of routing tables?
The text was updated successfully, but these errors were encountered: