diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/linux/gen/386.go | 143 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 143 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 143 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 143 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 143 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_route.txt | 53 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_route_386.const | 23 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_route_amd64.const | 23 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_route_arm.const | 23 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_route_arm64.const | 23 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_route_ppc64le.const | 23 |
11 files changed, 878 insertions, 5 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index aaa238fa5..ce96f01bc 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -1573,6 +1573,39 @@ var structDescs_386 = []*KeyedStruct{ {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, + {Key: StructKey{Name: "cgw_csum_crc8"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8", TypeSize: 282}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_crc_val", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "final_xor_val", TypeSize: 1}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "crctab", TypeSize: 256}, Kind: 1, RangeBegin: 256, RangeEnd: 256}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8_profile", FldName: "profile", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "profile_data", TypeSize: 20}, Kind: 1, RangeBegin: 20, RangeEnd: 20}, + }}}, + {Key: StructKey{Name: "cgw_csum_xor"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_xor", TypeSize: 4}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_xor_val", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "cgw_frame_mod"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_frame_mod", TypeSize: 17}, Fields: []Type{ + &StructType{Key: StructKey{Name: "can_frame_t[CAN_MAX_DLEN]"}, FldName: "cf"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_frame_modtype", FldName: "modtype", TypeSize: 1}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, + {Key: StructKey{Name: "cgw_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_AND"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_OR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_SET"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, FldName: "CGW_CS_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, FldName: "CGW_CS_CRC8"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, FldName: "CGW_SRC_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, FldName: "CGW_DST_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, FldName: "CGW_FILTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, FldName: "CGW_LIM_HOPS"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, FldName: "CGW_MOD_UID"}, + }}}, {Key: StructKey{Name: "cisco_proto"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cisco_proto", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, @@ -10563,6 +10596,8 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, FldName: "bridge_dellink"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_NEWNSID"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_GETNSID"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_newroute"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_delroute"}, }}}, {Key: StructKey{Name: "netlink_msg_route_sched"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_route_sched", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWQDISC, int16], tcmsg[AF_UNSPEC], qdisc_policy]"}, FldName: "newqdisc"}, @@ -10695,6 +10730,15 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, @@ -11090,6 +11134,15 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, @@ -12145,6 +12198,67 @@ var structDescs_386 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "selector", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, }}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]", TypeSize: 288}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 6}, + &StructType{Key: StructKey{Name: "cgw_csum_crc8"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 5}, + &StructType{Key: StructKey{Name: "cgw_csum_xor"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 10}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_FILTER, int16], can_filter]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 11}, + &StructType{Key: StructKey{Name: "can_filter"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 13}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 2}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 4}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_UID, int16], uid]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 3}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 9}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, @@ -17845,6 +17959,11 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"}, }}}, + {Key: StructKey{Name: "rtcanmsg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtcanmsg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "can_family", TypeSize: 1}}, Val: 29}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "gwtype", TypeSize: 1}}, Val: 1}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtcanmsg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, {Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 112}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "rt_pad1", TypeSize: 8}}}, &StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"}, @@ -39345,6 +39464,28 @@ var consts_386 = []ConstValue{ {Name: "CGC_DATA_UNKNOWN"}, {Name: "CGC_DATA_WRITE", Value: 1}, {Name: "CGROUP_OPEN_FLAGS", Value: 2097154}, + {Name: "CGW_CRC8PRF_16U8", Value: 2}, + {Name: "CGW_CRC8PRF_1U8", Value: 1}, + {Name: "CGW_CRC8PRF_SFFID_XOR", Value: 3}, + {Name: "CGW_CRC8PRF_UNSPEC"}, + {Name: "CGW_CS_CRC8", Value: 6}, + {Name: "CGW_CS_XOR", Value: 5}, + {Name: "CGW_DST_IF", Value: 10}, + {Name: "CGW_FILTER", Value: 11}, + {Name: "CGW_FLAGS_CAN_ECHO", Value: 1}, + {Name: "CGW_FLAGS_CAN_IIF_TX_OK", Value: 4}, + {Name: "CGW_FLAGS_CAN_SRC_TSTAMP", Value: 2}, + {Name: "CGW_LIM_HOPS", Value: 13}, + {Name: "CGW_MOD_AND", Value: 1}, + {Name: "CGW_MOD_DATA", Value: 4}, + {Name: "CGW_MOD_DLC", Value: 2}, + {Name: "CGW_MOD_ID", Value: 1}, + {Name: "CGW_MOD_OR", Value: 2}, + {Name: "CGW_MOD_SET", Value: 4}, + {Name: "CGW_MOD_UID", Value: 14}, + {Name: "CGW_MOD_XOR", Value: 3}, + {Name: "CGW_SRC_IF", Value: 9}, + {Name: "CGW_TYPE_CAN_CAN", Value: 1}, {Name: "CIPSO_V4_TAG_ENUM", Value: 2}, {Name: "CIPSO_V4_TAG_FREEFORM", Value: 7}, {Name: "CIPSO_V4_TAG_INVALID"}, @@ -45821,4 +45962,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "55bd9aba1ecdb2cb20b8f03d2f730a9289d356a1" +const revision_386 = "cad6f0c31499a04dde8618426d5eac7fcf75229e" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index d5899567b..b04f30393 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -1584,6 +1584,39 @@ var structDescs_amd64 = []*KeyedStruct{ {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, + {Key: StructKey{Name: "cgw_csum_crc8"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8", TypeSize: 282}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_crc_val", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "final_xor_val", TypeSize: 1}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "crctab", TypeSize: 256}, Kind: 1, RangeBegin: 256, RangeEnd: 256}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8_profile", FldName: "profile", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "profile_data", TypeSize: 20}, Kind: 1, RangeBegin: 20, RangeEnd: 20}, + }}}, + {Key: StructKey{Name: "cgw_csum_xor"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_xor", TypeSize: 4}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_xor_val", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "cgw_frame_mod"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_frame_mod", TypeSize: 17}, Fields: []Type{ + &StructType{Key: StructKey{Name: "can_frame_t[CAN_MAX_DLEN]"}, FldName: "cf"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_frame_modtype", FldName: "modtype", TypeSize: 1}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, + {Key: StructKey{Name: "cgw_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_AND"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_OR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_SET"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, FldName: "CGW_CS_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, FldName: "CGW_CS_CRC8"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, FldName: "CGW_SRC_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, FldName: "CGW_DST_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, FldName: "CGW_FILTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, FldName: "CGW_LIM_HOPS"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, FldName: "CGW_MOD_UID"}, + }}}, {Key: StructKey{Name: "cisco_proto"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cisco_proto", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, @@ -10880,6 +10913,8 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, FldName: "bridge_dellink"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_NEWNSID"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_GETNSID"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_newroute"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_delroute"}, }}}, {Key: StructKey{Name: "netlink_msg_route_sched"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_route_sched", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWQDISC, int16], tcmsg[AF_UNSPEC], qdisc_policy]"}, FldName: "newqdisc"}, @@ -11012,6 +11047,15 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, @@ -11407,6 +11451,15 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, @@ -12464,6 +12517,67 @@ var structDescs_amd64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "selector", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, }}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]", TypeSize: 288}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 6}, + &StructType{Key: StructKey{Name: "cgw_csum_crc8"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 5}, + &StructType{Key: StructKey{Name: "cgw_csum_xor"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 10}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_FILTER, int16], can_filter]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 11}, + &StructType{Key: StructKey{Name: "can_filter"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 13}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 2}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 4}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_UID, int16], uid]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 3}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 9}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, @@ -18166,6 +18280,11 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"}, }}}, + {Key: StructKey{Name: "rtcanmsg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtcanmsg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "can_family", TypeSize: 1}}, Val: 29}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "gwtype", TypeSize: 1}}, Val: 1}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtcanmsg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, {Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 120}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "rt_pad1", TypeSize: 8}}}, &StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"}, @@ -40110,6 +40229,28 @@ var consts_amd64 = []ConstValue{ {Name: "CGC_DATA_UNKNOWN"}, {Name: "CGC_DATA_WRITE", Value: 1}, {Name: "CGROUP_OPEN_FLAGS", Value: 2097154}, + {Name: "CGW_CRC8PRF_16U8", Value: 2}, + {Name: "CGW_CRC8PRF_1U8", Value: 1}, + {Name: "CGW_CRC8PRF_SFFID_XOR", Value: 3}, + {Name: "CGW_CRC8PRF_UNSPEC"}, + {Name: "CGW_CS_CRC8", Value: 6}, + {Name: "CGW_CS_XOR", Value: 5}, + {Name: "CGW_DST_IF", Value: 10}, + {Name: "CGW_FILTER", Value: 11}, + {Name: "CGW_FLAGS_CAN_ECHO", Value: 1}, + {Name: "CGW_FLAGS_CAN_IIF_TX_OK", Value: 4}, + {Name: "CGW_FLAGS_CAN_SRC_TSTAMP", Value: 2}, + {Name: "CGW_LIM_HOPS", Value: 13}, + {Name: "CGW_MOD_AND", Value: 1}, + {Name: "CGW_MOD_DATA", Value: 4}, + {Name: "CGW_MOD_DLC", Value: 2}, + {Name: "CGW_MOD_ID", Value: 1}, + {Name: "CGW_MOD_OR", Value: 2}, + {Name: "CGW_MOD_SET", Value: 4}, + {Name: "CGW_MOD_UID", Value: 14}, + {Name: "CGW_MOD_XOR", Value: 3}, + {Name: "CGW_SRC_IF", Value: 9}, + {Name: "CGW_TYPE_CAN_CAN", Value: 1}, {Name: "CIPSO_V4_TAG_ENUM", Value: 2}, {Name: "CIPSO_V4_TAG_FREEFORM", Value: 7}, {Name: "CIPSO_V4_TAG_INVALID"}, @@ -46611,4 +46752,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "b1188eeeecbb0ace93ad6569604304d6e0459ca2" +const revision_amd64 = "b400283a2f6ddcb1972ebd5dc803010598363005" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index c894313bf..3e2e7c64f 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -1578,6 +1578,39 @@ var structDescs_arm = []*KeyedStruct{ {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, + {Key: StructKey{Name: "cgw_csum_crc8"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8", TypeSize: 282}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_crc_val", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "final_xor_val", TypeSize: 1}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "crctab", TypeSize: 256}, Kind: 1, RangeBegin: 256, RangeEnd: 256}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8_profile", FldName: "profile", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "profile_data", TypeSize: 20}, Kind: 1, RangeBegin: 20, RangeEnd: 20}, + }}}, + {Key: StructKey{Name: "cgw_csum_xor"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_xor", TypeSize: 4}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_xor_val", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "cgw_frame_mod"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_frame_mod", TypeSize: 17}, Fields: []Type{ + &StructType{Key: StructKey{Name: "can_frame_t[CAN_MAX_DLEN]"}, FldName: "cf"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_frame_modtype", FldName: "modtype", TypeSize: 1}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, + {Key: StructKey{Name: "cgw_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_AND"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_OR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_SET"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, FldName: "CGW_CS_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, FldName: "CGW_CS_CRC8"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, FldName: "CGW_SRC_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, FldName: "CGW_DST_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, FldName: "CGW_FILTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, FldName: "CGW_LIM_HOPS"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, FldName: "CGW_MOD_UID"}, + }}}, {Key: StructKey{Name: "cisco_proto"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cisco_proto", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, @@ -10418,6 +10451,8 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, FldName: "bridge_dellink"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_NEWNSID"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_GETNSID"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_newroute"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_delroute"}, }}}, {Key: StructKey{Name: "netlink_msg_route_sched"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_route_sched", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWQDISC, int16], tcmsg[AF_UNSPEC], qdisc_policy]"}, FldName: "newqdisc"}, @@ -10550,6 +10585,15 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, @@ -10945,6 +10989,15 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, @@ -12000,6 +12053,67 @@ var structDescs_arm = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "selector", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, }}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]", TypeSize: 288}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 6}, + &StructType{Key: StructKey{Name: "cgw_csum_crc8"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 5}, + &StructType{Key: StructKey{Name: "cgw_csum_xor"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 10}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_FILTER, int16], can_filter]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 11}, + &StructType{Key: StructKey{Name: "can_filter"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 13}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 2}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 4}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_UID, int16], uid]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 3}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 9}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, @@ -17700,6 +17814,11 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"}, }}}, + {Key: StructKey{Name: "rtcanmsg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtcanmsg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "can_family", TypeSize: 1}}, Val: 29}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "gwtype", TypeSize: 1}}, Val: 1}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtcanmsg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, {Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 112}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "rt_pad1", TypeSize: 8}}}, &StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"}, @@ -39237,6 +39356,28 @@ var consts_arm = []ConstValue{ {Name: "CGC_DATA_UNKNOWN"}, {Name: "CGC_DATA_WRITE", Value: 1}, {Name: "CGROUP_OPEN_FLAGS", Value: 2097154}, + {Name: "CGW_CRC8PRF_16U8", Value: 2}, + {Name: "CGW_CRC8PRF_1U8", Value: 1}, + {Name: "CGW_CRC8PRF_SFFID_XOR", Value: 3}, + {Name: "CGW_CRC8PRF_UNSPEC"}, + {Name: "CGW_CS_CRC8", Value: 6}, + {Name: "CGW_CS_XOR", Value: 5}, + {Name: "CGW_DST_IF", Value: 10}, + {Name: "CGW_FILTER", Value: 11}, + {Name: "CGW_FLAGS_CAN_ECHO", Value: 1}, + {Name: "CGW_FLAGS_CAN_IIF_TX_OK", Value: 4}, + {Name: "CGW_FLAGS_CAN_SRC_TSTAMP", Value: 2}, + {Name: "CGW_LIM_HOPS", Value: 13}, + {Name: "CGW_MOD_AND", Value: 1}, + {Name: "CGW_MOD_DATA", Value: 4}, + {Name: "CGW_MOD_DLC", Value: 2}, + {Name: "CGW_MOD_ID", Value: 1}, + {Name: "CGW_MOD_OR", Value: 2}, + {Name: "CGW_MOD_SET", Value: 4}, + {Name: "CGW_MOD_UID", Value: 14}, + {Name: "CGW_MOD_XOR", Value: 3}, + {Name: "CGW_SRC_IF", Value: 9}, + {Name: "CGW_TYPE_CAN_CAN", Value: 1}, {Name: "CIPSO_V4_TAG_ENUM", Value: 2}, {Name: "CIPSO_V4_TAG_FREEFORM", Value: 7}, {Name: "CIPSO_V4_TAG_INVALID"}, @@ -45660,4 +45801,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "59c2d75c2e04453099a8da9a80b796b8827a6231" +const revision_arm = "fd2173579c7700b77e302e544be08ca549a4a03b" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 552ab5236..e74f7d115 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -1584,6 +1584,39 @@ var structDescs_arm64 = []*KeyedStruct{ {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, + {Key: StructKey{Name: "cgw_csum_crc8"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8", TypeSize: 282}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_crc_val", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "final_xor_val", TypeSize: 1}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "crctab", TypeSize: 256}, Kind: 1, RangeBegin: 256, RangeEnd: 256}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8_profile", FldName: "profile", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "profile_data", TypeSize: 20}, Kind: 1, RangeBegin: 20, RangeEnd: 20}, + }}}, + {Key: StructKey{Name: "cgw_csum_xor"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_xor", TypeSize: 4}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_xor_val", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "cgw_frame_mod"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_frame_mod", TypeSize: 17}, Fields: []Type{ + &StructType{Key: StructKey{Name: "can_frame_t[CAN_MAX_DLEN]"}, FldName: "cf"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_frame_modtype", FldName: "modtype", TypeSize: 1}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, + {Key: StructKey{Name: "cgw_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_AND"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_OR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_SET"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, FldName: "CGW_CS_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, FldName: "CGW_CS_CRC8"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, FldName: "CGW_SRC_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, FldName: "CGW_DST_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, FldName: "CGW_FILTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, FldName: "CGW_LIM_HOPS"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, FldName: "CGW_MOD_UID"}, + }}}, {Key: StructKey{Name: "cisco_proto"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cisco_proto", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, @@ -10697,6 +10730,8 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, FldName: "bridge_dellink"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_NEWNSID"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_GETNSID"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_newroute"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_delroute"}, }}}, {Key: StructKey{Name: "netlink_msg_route_sched"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_route_sched", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWQDISC, int16], tcmsg[AF_UNSPEC], qdisc_policy]"}, FldName: "newqdisc"}, @@ -10829,6 +10864,15 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, @@ -11224,6 +11268,15 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, @@ -12281,6 +12334,67 @@ var structDescs_arm64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "selector", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, }}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]", TypeSize: 288}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 6}, + &StructType{Key: StructKey{Name: "cgw_csum_crc8"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 5}, + &StructType{Key: StructKey{Name: "cgw_csum_xor"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 10}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_FILTER, int16], can_filter]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 11}, + &StructType{Key: StructKey{Name: "can_filter"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 13}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 2}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 4}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_UID, int16], uid]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 3}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 9}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, @@ -17983,6 +18097,11 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"}, }}}, + {Key: StructKey{Name: "rtcanmsg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtcanmsg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "can_family", TypeSize: 1}}, Val: 29}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "gwtype", TypeSize: 1}}, Val: 1}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtcanmsg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, {Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 120}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "rt_pad1", TypeSize: 8}}}, &StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"}, @@ -39556,6 +39675,28 @@ var consts_arm64 = []ConstValue{ {Name: "CGC_DATA_UNKNOWN"}, {Name: "CGC_DATA_WRITE", Value: 1}, {Name: "CGROUP_OPEN_FLAGS", Value: 2097154}, + {Name: "CGW_CRC8PRF_16U8", Value: 2}, + {Name: "CGW_CRC8PRF_1U8", Value: 1}, + {Name: "CGW_CRC8PRF_SFFID_XOR", Value: 3}, + {Name: "CGW_CRC8PRF_UNSPEC"}, + {Name: "CGW_CS_CRC8", Value: 6}, + {Name: "CGW_CS_XOR", Value: 5}, + {Name: "CGW_DST_IF", Value: 10}, + {Name: "CGW_FILTER", Value: 11}, + {Name: "CGW_FLAGS_CAN_ECHO", Value: 1}, + {Name: "CGW_FLAGS_CAN_IIF_TX_OK", Value: 4}, + {Name: "CGW_FLAGS_CAN_SRC_TSTAMP", Value: 2}, + {Name: "CGW_LIM_HOPS", Value: 13}, + {Name: "CGW_MOD_AND", Value: 1}, + {Name: "CGW_MOD_DATA", Value: 4}, + {Name: "CGW_MOD_DLC", Value: 2}, + {Name: "CGW_MOD_ID", Value: 1}, + {Name: "CGW_MOD_OR", Value: 2}, + {Name: "CGW_MOD_SET", Value: 4}, + {Name: "CGW_MOD_UID", Value: 14}, + {Name: "CGW_MOD_XOR", Value: 3}, + {Name: "CGW_SRC_IF", Value: 9}, + {Name: "CGW_TYPE_CAN_CAN", Value: 1}, {Name: "CIPSO_V4_TAG_ENUM", Value: 2}, {Name: "CIPSO_V4_TAG_FREEFORM", Value: 7}, {Name: "CIPSO_V4_TAG_INVALID"}, @@ -45969,4 +46110,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "8fd466372ca36abc5a0ea5fbaaf1299c4dfa3891" +const revision_arm64 = "cb2e1c43fa806c561dabc8e7885a6636bc4bbe0d" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 11efedfb3..5c6394794 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -1575,6 +1575,39 @@ var structDescs_ppc64le = []*KeyedStruct{ {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, + {Key: StructKey{Name: "cgw_csum_crc8"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8", TypeSize: 282}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeEnd: 127}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_crc_val", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "final_xor_val", TypeSize: 1}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "crctab", TypeSize: 256}, Kind: 1, RangeBegin: 256, RangeEnd: 256}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_csum_crc8_profile", FldName: "profile", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "profile_data", TypeSize: 20}, Kind: 1, RangeBegin: 20, RangeEnd: 20}, + }}}, + {Key: StructKey{Name: "cgw_csum_xor"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_csum_xor", TypeSize: 4}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "from_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "to_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "result_idx", TypeSize: 1}}, Kind: 2, RangeBegin: 18446744073709551607, RangeEnd: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "init_xor_val", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "cgw_frame_mod"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_frame_mod", TypeSize: 17}, Fields: []Type{ + &StructType{Key: StructKey{Name: "can_frame_t[CAN_MAX_DLEN]"}, FldName: "cf"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgw_frame_modtype", FldName: "modtype", TypeSize: 1}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, + {Key: StructKey{Name: "cgw_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgw_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_AND"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_OR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, FldName: "CGW_MOD_SET"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, FldName: "CGW_CS_XOR"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, FldName: "CGW_CS_CRC8"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, FldName: "CGW_SRC_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, FldName: "CGW_DST_IF"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, FldName: "CGW_FILTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, FldName: "CGW_LIM_HOPS"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, FldName: "CGW_MOD_UID"}, + }}}, {Key: StructKey{Name: "cisco_proto"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cisco_proto", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, @@ -10607,6 +10640,8 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, FldName: "bridge_dellink"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_NEWNSID"}, &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, FldName: "RTM_GETNSID"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_newroute"}, + &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, FldName: "can_delroute"}, }}}, {Key: StructKey{Name: "netlink_msg_route_sched"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_route_sched", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWQDISC, int16], tcmsg[AF_UNSPEC], qdisc_policy]"}, FldName: "newqdisc"}, @@ -10739,6 +10774,15 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 25}, @@ -11134,6 +11178,15 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "qdisc_policy"}}}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtcanmsg, cgw_policy]", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "netlink_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 256, 512, 1024, 768, 256, 512, 1024, 2048}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "seq", TypeSize: 4}}, Kind: 2, RangeBegin: 7388453, RangeEnd: 7388461}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pid", TypeSize: 4}}, Kind: 2, RangeBegin: 635427835, RangeEnd: 635427839}, + &StructType{Key: StructKey{Name: "rtcanmsg"}, FldName: "payload"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "cgw_policy"}}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWROUTE, int16], rtmsg[AF_INET6], rtm_ipv6_policy]", IsVarlen: true}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 24}, @@ -12191,6 +12244,67 @@ var structDescs_ppc64le = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "selector", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, }}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_CRC8, int16], cgw_csum_crc8]", TypeSize: 288}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 6}, + &StructType{Key: StructKey{Name: "cgw_csum_crc8"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_CS_XOR, int16], cgw_csum_xor]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 5}, + &StructType{Key: StructKey{Name: "cgw_csum_xor"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_DST_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 10}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_FILTER, int16], can_filter]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_FILTER, int16], can_filter]", TypeSize: 12}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 11}, + &StructType{Key: StructKey{Name: "can_filter"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_LIM_HOPS, int16], int8]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 13}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_AND, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_OR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 2}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_SET, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 4}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_UID, int16], uid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_UID, int16], uid]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_MOD_XOR, int16], cgw_frame_mod]", TypeSize: 24}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 3}, + &StructType{Key: StructKey{Name: "cgw_frame_mod"}, FldName: "payload"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CGW_SRC_IF, int16], ifindex_vcan]", TypeSize: 8}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 9}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex_vcan", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[CRYPTOCFGA_PRIORITY_VAL, int16], int32]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1}, @@ -17893,6 +18007,11 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"}, }}}, + {Key: StructKey{Name: "rtcanmsg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtcanmsg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "can_family", TypeSize: 1}}, Val: 29}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "gwtype", TypeSize: 1}}, Val: 1}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtcanmsg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4}, BitMask: true}, + }}}, {Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 120}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "rt_pad1", TypeSize: 8}}}, &StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"}, @@ -37951,6 +38070,28 @@ var consts_ppc64le = []ConstValue{ {Name: "CGC_DATA_UNKNOWN"}, {Name: "CGC_DATA_WRITE", Value: 1}, {Name: "CGROUP_OPEN_FLAGS", Value: 2097154}, + {Name: "CGW_CRC8PRF_16U8", Value: 2}, + {Name: "CGW_CRC8PRF_1U8", Value: 1}, + {Name: "CGW_CRC8PRF_SFFID_XOR", Value: 3}, + {Name: "CGW_CRC8PRF_UNSPEC"}, + {Name: "CGW_CS_CRC8", Value: 6}, + {Name: "CGW_CS_XOR", Value: 5}, + {Name: "CGW_DST_IF", Value: 10}, + {Name: "CGW_FILTER", Value: 11}, + {Name: "CGW_FLAGS_CAN_ECHO", Value: 1}, + {Name: "CGW_FLAGS_CAN_IIF_TX_OK", Value: 4}, + {Name: "CGW_FLAGS_CAN_SRC_TSTAMP", Value: 2}, + {Name: "CGW_LIM_HOPS", Value: 13}, + {Name: "CGW_MOD_AND", Value: 1}, + {Name: "CGW_MOD_DATA", Value: 4}, + {Name: "CGW_MOD_DLC", Value: 2}, + {Name: "CGW_MOD_ID", Value: 1}, + {Name: "CGW_MOD_OR", Value: 2}, + {Name: "CGW_MOD_SET", Value: 4}, + {Name: "CGW_MOD_UID", Value: 14}, + {Name: "CGW_MOD_XOR", Value: 3}, + {Name: "CGW_SRC_IF", Value: 9}, + {Name: "CGW_TYPE_CAN_CAN", Value: 1}, {Name: "CIPSO_V4_TAG_ENUM", Value: 2}, {Name: "CIPSO_V4_TAG_FREEFORM", Value: 7}, {Name: "CIPSO_V4_TAG_INVALID"}, @@ -43327,4 +43468,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "27b47e943e19cd2dacbb57c93b9cde0f9539f69f" +const revision_ppc64le = "7614bd98ea9f0e4ecfcaf79aed0e0f617d39155e" diff --git a/sys/linux/socket_netlink_route.txt b/sys/linux/socket_netlink_route.txt index 651d90f5f..02b099785 100644 --- a/sys/linux/socket_netlink_route.txt +++ b/sys/linux/socket_netlink_route.txt @@ -17,6 +17,7 @@ include <uapi/linux/fib_rules.h> include <uapi/linux/if_tunnel.h> include <uapi/linux/net_namespace.h> include <uapi/linux/veth.h> +include <uapi/linux/can/gw.h> resource sock_nl_route[sock_netlink] type netns_id int32[0:4] @@ -83,6 +84,9 @@ netlink_msg_route [ RTM_NEWNSID netlink_msg[RTM_NEWNSID, rtgenmsg[AF_UNSPEC], rtnl_net_policy] RTM_GETNSID netlink_msg[RTM_GETNSID, rtgenmsg[AF_UNSPEC], rtnl_net_policy] + + can_newroute netlink_msg[RTM_NEWROUTE, rtcanmsg, cgw_policy] + can_delroute netlink_msg[RTM_DELROUTE, rtcanmsg, cgw_policy] ] [varlen] type rtgenmsg[FAMILY] { @@ -615,6 +619,55 @@ rtnl_net_policy [ NETNSA_FD nlattr[NETNSA_FD, fd_namespace] ] [varlen] +rtcanmsg { + can_family const[AF_CAN, int8] + gwtype const[CGW_TYPE_CAN_CAN, int8] + flags flags[rtcanmsg_flags, int16] +} + +rtcanmsg_flags = CGW_FLAGS_CAN_ECHO, CGW_FLAGS_CAN_SRC_TSTAMP, CGW_FLAGS_CAN_IIF_TX_OK + +cgw_policy [ + CGW_MOD_AND nlattr[CGW_MOD_AND, cgw_frame_mod] + CGW_MOD_OR nlattr[CGW_MOD_OR, cgw_frame_mod] + CGW_MOD_XOR nlattr[CGW_MOD_XOR, cgw_frame_mod] + CGW_MOD_SET nlattr[CGW_MOD_SET, cgw_frame_mod] + CGW_CS_XOR nlattr[CGW_CS_XOR, cgw_csum_xor] + CGW_CS_CRC8 nlattr[CGW_CS_CRC8, cgw_csum_crc8] + CGW_SRC_IF nlattr[CGW_SRC_IF, ifindex_vcan] + CGW_DST_IF nlattr[CGW_DST_IF, ifindex_vcan] + CGW_FILTER nlattr[CGW_FILTER, can_filter] + CGW_LIM_HOPS nlattr[CGW_LIM_HOPS, int8] + CGW_MOD_UID nlattr[CGW_MOD_UID, uid] +] [varlen] + +cgw_frame_mod { + cf can_frame + modtype flags[cgw_frame_modtype, int8] +} [packed] + +cgw_frame_modtype = CGW_MOD_ID, CGW_MOD_DLC, CGW_MOD_DATA + +cgw_csum_xor { + from_idx int8[-9:8] + to_idx int8[-9:8] + result_idx int8[-9:8] + init_xor_val int8 +} [packed] + +cgw_csum_crc8 { + from_idx int8[0:127] + to_idx int8[0:127] + result_idx int8[0:127] + init_crc_val int8 + final_xor_val int8 + crctab array[int8, 256] + profile flags[cgw_csum_crc8_profile, int8] + profile_data array[int8, 20] +} [packed] + +cgw_csum_crc8_profile = CGW_CRC8PRF_UNSPEC, CGW_CRC8PRF_1U8, CGW_CRC8PRF_16U8, CGW_CRC8PRF_SFFID_XOR + rtnl_af = AF_INET, AF_INET6, AF_BRIDGE, AF_MPLS net_device_flags = IFF_UP, IFF_BROADCAST, IFF_DEBUG, IFF_LOOPBACK, IFF_POINTOPOINT, IFF_NOTRAILERS, IFF_RUNNING, IFF_NOARP, IFF_PROMISC, IFF_ALLMULTI, IFF_MASTER, IFF_SLAVE, IFF_MULTICAST, IFF_PORTSEL, IFF_AUTOMEDIA, IFF_DYNAMIC, IFF_LOWER_UP, IFF_DORMANT, IFF_ECHO ifa_flags = IFA_F_SECONDARY, IFA_F_NODAD, IFA_F_OPTIMISTIC, IFA_F_DADFAILED, IFA_F_HOMEADDRESS, IFA_F_DEPRECATED, IFA_F_TENTATIVE, IFA_F_PERMANENT, IFA_F_MANAGETEMPADDR, IFA_F_NOPREFIXROUTE, IFA_F_MCAUTOJOIN diff --git a/sys/linux/socket_netlink_route_386.const b/sys/linux/socket_netlink_route_386.const index 5a357aa89..ba45fcd63 100644 --- a/sys/linux/socket_netlink_route_386.const +++ b/sys/linux/socket_netlink_route_386.const @@ -1,10 +1,33 @@ # AUTOGENERATED FILE AF_BRIDGE = 7 +AF_CAN = 29 AF_INET = 2 AF_INET6 = 10 AF_MPLS = 28 AF_NETLINK = 16 AF_UNSPEC = 0 +CGW_CRC8PRF_16U8 = 2 +CGW_CRC8PRF_1U8 = 1 +CGW_CRC8PRF_SFFID_XOR = 3 +CGW_CRC8PRF_UNSPEC = 0 +CGW_CS_CRC8 = 6 +CGW_CS_XOR = 5 +CGW_DST_IF = 10 +CGW_FILTER = 11 +CGW_FLAGS_CAN_ECHO = 1 +CGW_FLAGS_CAN_IIF_TX_OK = 4 +CGW_FLAGS_CAN_SRC_TSTAMP = 2 +CGW_LIM_HOPS = 13 +CGW_MOD_AND = 1 +CGW_MOD_DATA = 4 +CGW_MOD_DLC = 2 +CGW_MOD_ID = 1 +CGW_MOD_OR = 2 +CGW_MOD_SET = 4 +CGW_MOD_UID = 14 +CGW_MOD_XOR = 3 +CGW_SRC_IF = 9 +CGW_TYPE_CAN_CAN = 1 FIB_RULE_FIND_SADDR = 65536 FIB_RULE_IIF_DETACHED = 8 FIB_RULE_INVERT = 2 diff --git a/sys/linux/socket_netlink_route_amd64.const b/sys/linux/socket_netlink_route_amd64.const index 85a9e086b..ff1e012ed 100644 --- a/sys/linux/socket_netlink_route_amd64.const +++ b/sys/linux/socket_netlink_route_amd64.const @@ -1,10 +1,33 @@ # AUTOGENERATED FILE AF_BRIDGE = 7 +AF_CAN = 29 AF_INET = 2 AF_INET6 = 10 AF_MPLS = 28 AF_NETLINK = 16 AF_UNSPEC = 0 +CGW_CRC8PRF_16U8 = 2 +CGW_CRC8PRF_1U8 = 1 +CGW_CRC8PRF_SFFID_XOR = 3 +CGW_CRC8PRF_UNSPEC = 0 +CGW_CS_CRC8 = 6 +CGW_CS_XOR = 5 +CGW_DST_IF = 10 +CGW_FILTER = 11 +CGW_FLAGS_CAN_ECHO = 1 +CGW_FLAGS_CAN_IIF_TX_OK = 4 +CGW_FLAGS_CAN_SRC_TSTAMP = 2 +CGW_LIM_HOPS = 13 +CGW_MOD_AND = 1 +CGW_MOD_DATA = 4 +CGW_MOD_DLC = 2 +CGW_MOD_ID = 1 +CGW_MOD_OR = 2 +CGW_MOD_SET = 4 +CGW_MOD_UID = 14 +CGW_MOD_XOR = 3 +CGW_SRC_IF = 9 +CGW_TYPE_CAN_CAN = 1 FIB_RULE_FIND_SADDR = 65536 FIB_RULE_IIF_DETACHED = 8 FIB_RULE_INVERT = 2 diff --git a/sys/linux/socket_netlink_route_arm.const b/sys/linux/socket_netlink_route_arm.const index 4cbe15077..e02ee7214 100644 --- a/sys/linux/socket_netlink_route_arm.const +++ b/sys/linux/socket_netlink_route_arm.const @@ -1,10 +1,33 @@ # AUTOGENERATED FILE AF_BRIDGE = 7 +AF_CAN = 29 AF_INET = 2 AF_INET6 = 10 AF_MPLS = 28 AF_NETLINK = 16 AF_UNSPEC = 0 +CGW_CRC8PRF_16U8 = 2 +CGW_CRC8PRF_1U8 = 1 +CGW_CRC8PRF_SFFID_XOR = 3 +CGW_CRC8PRF_UNSPEC = 0 +CGW_CS_CRC8 = 6 +CGW_CS_XOR = 5 +CGW_DST_IF = 10 +CGW_FILTER = 11 +CGW_FLAGS_CAN_ECHO = 1 +CGW_FLAGS_CAN_IIF_TX_OK = 4 +CGW_FLAGS_CAN_SRC_TSTAMP = 2 +CGW_LIM_HOPS = 13 +CGW_MOD_AND = 1 +CGW_MOD_DATA = 4 +CGW_MOD_DLC = 2 +CGW_MOD_ID = 1 +CGW_MOD_OR = 2 +CGW_MOD_SET = 4 +CGW_MOD_UID = 14 +CGW_MOD_XOR = 3 +CGW_SRC_IF = 9 +CGW_TYPE_CAN_CAN = 1 FIB_RULE_FIND_SADDR = 65536 FIB_RULE_IIF_DETACHED = 8 FIB_RULE_INVERT = 2 diff --git a/sys/linux/socket_netlink_route_arm64.const b/sys/linux/socket_netlink_route_arm64.const index 03991c1c0..809661f9a 100644 --- a/sys/linux/socket_netlink_route_arm64.const +++ b/sys/linux/socket_netlink_route_arm64.const @@ -1,10 +1,33 @@ # AUTOGENERATED FILE AF_BRIDGE = 7 +AF_CAN = 29 AF_INET = 2 AF_INET6 = 10 AF_MPLS = 28 AF_NETLINK = 16 AF_UNSPEC = 0 +CGW_CRC8PRF_16U8 = 2 +CGW_CRC8PRF_1U8 = 1 +CGW_CRC8PRF_SFFID_XOR = 3 +CGW_CRC8PRF_UNSPEC = 0 +CGW_CS_CRC8 = 6 +CGW_CS_XOR = 5 +CGW_DST_IF = 10 +CGW_FILTER = 11 +CGW_FLAGS_CAN_ECHO = 1 +CGW_FLAGS_CAN_IIF_TX_OK = 4 +CGW_FLAGS_CAN_SRC_TSTAMP = 2 +CGW_LIM_HOPS = 13 +CGW_MOD_AND = 1 +CGW_MOD_DATA = 4 +CGW_MOD_DLC = 2 +CGW_MOD_ID = 1 +CGW_MOD_OR = 2 +CGW_MOD_SET = 4 +CGW_MOD_UID = 14 +CGW_MOD_XOR = 3 +CGW_SRC_IF = 9 +CGW_TYPE_CAN_CAN = 1 FIB_RULE_FIND_SADDR = 65536 FIB_RULE_IIF_DETACHED = 8 FIB_RULE_INVERT = 2 diff --git a/sys/linux/socket_netlink_route_ppc64le.const b/sys/linux/socket_netlink_route_ppc64le.const index 3b3328f73..47d3bb722 100644 --- a/sys/linux/socket_netlink_route_ppc64le.const +++ b/sys/linux/socket_netlink_route_ppc64le.const @@ -1,10 +1,33 @@ # AUTOGENERATED FILE AF_BRIDGE = 7 +AF_CAN = 29 AF_INET = 2 AF_INET6 = 10 AF_MPLS = 28 AF_NETLINK = 16 AF_UNSPEC = 0 +CGW_CRC8PRF_16U8 = 2 +CGW_CRC8PRF_1U8 = 1 +CGW_CRC8PRF_SFFID_XOR = 3 +CGW_CRC8PRF_UNSPEC = 0 +CGW_CS_CRC8 = 6 +CGW_CS_XOR = 5 +CGW_DST_IF = 10 +CGW_FILTER = 11 +CGW_FLAGS_CAN_ECHO = 1 +CGW_FLAGS_CAN_IIF_TX_OK = 4 +CGW_FLAGS_CAN_SRC_TSTAMP = 2 +CGW_LIM_HOPS = 13 +CGW_MOD_AND = 1 +CGW_MOD_DATA = 4 +CGW_MOD_DLC = 2 +CGW_MOD_ID = 1 +CGW_MOD_OR = 2 +CGW_MOD_SET = 4 +CGW_MOD_UID = 14 +CGW_MOD_XOR = 3 +CGW_SRC_IF = 9 +CGW_TYPE_CAN_CAN = 1 FIB_RULE_FIND_SADDR = 65536 FIB_RULE_IIF_DETACHED = 8 FIB_RULE_INVERT = 2 |
