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
{{ message }}
Repository navigation
x/sys: Increase the number of linux routing tables #40542
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.
Activity
tklauser commentedon Aug 3, 2020
I don't think there's anything we need to change in
x/sys.type RtMsgand all the other types inztypes_*.goare 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_TABLErtnetlink 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 instruct rt_msgis ignored.