From b1f951e1e461d1a9f8eeec14170a89ffb4addd53 Mon Sep 17 00:00:00 2001 From: Hangbin Liu Date: Thu, 24 Oct 2019 00:00:41 -0400 Subject: sys/linux/socket_netlink_route_sched: fix tcm_info structure Update #533 Don't know why I didn't add tcm__pad in tcm_info structure at the begining. But let's fix it now. Signed-off-by: Hangbin Liu --- sys/linux/gen/amd64.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sys/linux/gen/amd64.go') diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 1ec0cb5b7..7fb61bee7 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -13429,7 +13429,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "if_stats_msg[AF_UNSPEC]"}, FldName: "payload"}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs"}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "void"}, Kind: 1}}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "netlink_msg_t[const[RTM_GETTCLASS, int16], tcmsg[AF_UNSPEC], void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_GETTCLASS, int16], tcmsg[AF_UNSPEC], void]", TypeSize: 36}, Fields: []Type{ + {Key: StructKey{Name: "netlink_msg_t[const[RTM_GETTCLASS, int16], tcmsg[AF_UNSPEC], void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_GETTCLASS, int16], tcmsg[AF_UNSPEC], void]", TypeSize: 40}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"parent"}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 42}, &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}}, @@ -23996,9 +23996,12 @@ var structDescs_amd64 = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "tcm_handle_offsets", FldName: "minor", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 65504, 65521, 65522, 65523, 65535}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "tcm_handle_offsets", FldName: "major", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 65504, 65521, 65522, 65523, 65535}}, }}}, - {Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tcmsg[AF_UNSPEC]", TypeSize: 20}, Fields: []Type{ + {Key: StructKey{Name: "tcmsg[AF_UNSPEC]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tcmsg[AF_UNSPEC]", TypeSize: 24}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 1}}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1}}, IsPad: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tcm__pad1", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tcm__pad2", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifindex", TypeSize: 4}}, &StructType{Key: StructKey{Name: "tcm_handle"}, FldName: "tcm_handle"}, &StructType{Key: StructKey{Name: "tcm_handle"}, FldName: "tcm_parent"}, @@ -54106,4 +54109,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "7330120bdee27717f8e19d43096cee7ef68f4086" +const revision_amd64 = "401a20489783d971999befbe116fd7cdd089d99b" -- cgit mrf-deployment