diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-28 20:45:25 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-29 07:45:20 +0100 |
| commit | a40793d7a5ec79bb550bc8599221880e6aba071b (patch) | |
| tree | d8d2af2321dff9173a386f7cd8d4e869c55fb0f1 | |
| parent | 8ca2b643659dc8b3af374356ea1d81c7d1ee1ef7 (diff) | |
sys/linux: refine few types in NETLINK_ROUTE
| -rw-r--r-- | executor/defs.h | 10 | ||||
| -rw-r--r-- | sys/linux/gen/386.go | 34 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 34 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 34 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 34 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 34 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_route.txt | 13 |
7 files changed, 96 insertions, 97 deletions
diff --git a/executor/defs.h b/executor/defs.h index ab9b6f61a..52eb7802e 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -60,7 +60,7 @@ #if GOARCH_386 #define GOARCH "386" -#define SYZ_REVISION "346bd490b20910af02a702b7af394ea46343d141" +#define SYZ_REVISION "3201c43fff24108571ec46dd2fdd43939e9ac47f" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -70,7 +70,7 @@ #if GOARCH_amd64 #define GOARCH "amd64" -#define SYZ_REVISION "555da0c9cf19222200e016e53e6687ee1160cecd" +#define SYZ_REVISION "7cb6121e9c85234cdef34a3bf2deee82af7f5c59" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -80,7 +80,7 @@ #if GOARCH_arm #define GOARCH "arm" -#define SYZ_REVISION "1ed5bc8deb8f143f6e5a011adcd4738e6fe75626" +#define SYZ_REVISION "e0adf643e3f3a0137f408fbaa37d008e09b170a1" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -90,7 +90,7 @@ #if GOARCH_arm64 #define GOARCH "arm64" -#define SYZ_REVISION "a469bc0b9f84b5ca49dedfa07ebe630b76b0582e" +#define SYZ_REVISION "60fd78f5948cc663817ee9a3ecbe1f069a7b9d6a" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -100,7 +100,7 @@ #if GOARCH_ppc64le #define GOARCH "ppc64le" -#define SYZ_REVISION "373d551d95a3b0fe1245a8f9ebd6c469656c6dda" +#define SYZ_REVISION "a01d6ae16722c54663a92914026bf8056a3326f9" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 4b5196c4d..f84a2a55f 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -6170,14 +6170,14 @@ var structDescs_386 = []*KeyedStruct{ }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET6]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET6]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 10}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 2}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, @@ -6304,7 +6304,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], rtnl_link_ifmap]"}, FldName: "IFLA_MAP"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], int32]"}, FldName: "IFLA_MTU"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINK, int16], int32]"}, FldName: "IFLA_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, FldName: "IFLA_MASTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, FldName: "IFLA_MASTER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_CARRIER, int16], int8]"}, FldName: "IFLA_CARRIER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_TXQLEN, int16], int32]"}, FldName: "IFLA_TXQLEN"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_WEIGHT, int16], int32]"}, FldName: "IFLA_WEIGHT"}, @@ -6312,7 +6312,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKMODE, int16], int8]"}, FldName: "IFLA_LINKMODE"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKINFO, int16], ifla_info_policy]"}, FldName: "IFLA_LINKINFO"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, FldName: "IFLA_NET_NS_PID"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, FldName: "IFLA_NET_NS_FD"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, FldName: "IFLA_NET_NS_FD"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], devname]"}, FldName: "IFLA_IFALIAS"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], void]"}, FldName: "IFLA_IFALIASn"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VFINFO_LIST, int16], array[nlattr[IFLA_VF_INFO, array[ifla_vf_policy]]]]"}, FldName: "IFLA_VFINFO_LIST"}, @@ -7293,7 +7293,7 @@ var structDescs_386 = []*KeyedStruct{ {Key: StructKey{Name: "ip6vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv6_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv6_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "ip_mreq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip_mreq", TypeSize: 8}, Fields: []Type{ &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "imr_multiaddr"}, @@ -13177,15 +13177,15 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, &StructType{Key: StructKey{Name: "rtnl_link_ifmap"}, FldName: "payload"}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], int32]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], ifindex]", 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}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]", 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: 28}, - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "payload", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, @@ -22799,12 +22799,6 @@ var structDescs_386 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "start", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}}, }}}, - {Key: StructKey{Name: "vit_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vit_common_policy", IsVarlen: true}, Fields: []Type{ - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, - }}}, {Key: StructKey{Name: "vlan_tag"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vlan_tag", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "tag_ad", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "vlan_tag_ad"}}, Kind: 1, RangeEnd: 1}, &StructType{Key: StructKey{Name: "vlan_tag_q"}, FldName: "tag_q"}, @@ -22883,10 +22877,16 @@ var structDescs_386 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "signal", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "state", TypeSize: 2}}}, }}}, + {Key: StructKey{Name: "vti_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_common_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, + }}}, {Key: StructKey{Name: "vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv4_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv4_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "winsize"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "winsize", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "row", TypeSize: 2}}}, @@ -45300,4 +45300,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "346bd490b20910af02a702b7af394ea46343d141" +const revision_386 = "3201c43fff24108571ec46dd2fdd43939e9ac47f" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index c71bf5777..a232d590d 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -6276,14 +6276,14 @@ var structDescs_amd64 = []*KeyedStruct{ }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET6]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET6]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 10}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 2}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, @@ -6412,7 +6412,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], rtnl_link_ifmap]"}, FldName: "IFLA_MAP"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], int32]"}, FldName: "IFLA_MTU"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINK, int16], int32]"}, FldName: "IFLA_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, FldName: "IFLA_MASTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, FldName: "IFLA_MASTER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_CARRIER, int16], int8]"}, FldName: "IFLA_CARRIER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_TXQLEN, int16], int32]"}, FldName: "IFLA_TXQLEN"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_WEIGHT, int16], int32]"}, FldName: "IFLA_WEIGHT"}, @@ -6420,7 +6420,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKMODE, int16], int8]"}, FldName: "IFLA_LINKMODE"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKINFO, int16], ifla_info_policy]"}, FldName: "IFLA_LINKINFO"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, FldName: "IFLA_NET_NS_PID"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, FldName: "IFLA_NET_NS_FD"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, FldName: "IFLA_NET_NS_FD"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], devname]"}, FldName: "IFLA_IFALIAS"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], void]"}, FldName: "IFLA_IFALIASn"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VFINFO_LIST, int16], array[nlattr[IFLA_VF_INFO, array[ifla_vf_policy]]]]"}, FldName: "IFLA_VFINFO_LIST"}, @@ -7404,7 +7404,7 @@ var structDescs_amd64 = []*KeyedStruct{ {Key: StructKey{Name: "ip6vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv6_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv6_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "ip_mreq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip_mreq", TypeSize: 8}, Fields: []Type{ &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "imr_multiaddr"}, @@ -13496,15 +13496,15 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, &StructType{Key: StructKey{Name: "rtnl_link_ifmap"}, FldName: "payload"}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], int32]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], ifindex]", 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}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]", 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: 28}, - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "payload", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, @@ -23226,12 +23226,6 @@ var structDescs_amd64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "start", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}}, }}}, - {Key: StructKey{Name: "vit_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vit_common_policy", IsVarlen: true}, Fields: []Type{ - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, - }}}, {Key: StructKey{Name: "vlan_tag"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vlan_tag", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "tag_ad", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "vlan_tag_ad"}}, Kind: 1, RangeEnd: 1}, &StructType{Key: StructKey{Name: "vlan_tag_q"}, FldName: "tag_q"}, @@ -23310,10 +23304,16 @@ var structDescs_amd64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "signal", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "state", TypeSize: 2}}}, }}}, + {Key: StructKey{Name: "vti_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_common_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, + }}}, {Key: StructKey{Name: "vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv4_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv4_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "winsize"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "winsize", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "row", TypeSize: 2}}}, @@ -46090,4 +46090,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "555da0c9cf19222200e016e53e6687ee1160cecd" +const revision_amd64 = "7cb6121e9c85234cdef34a3bf2deee82af7f5c59" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 8c9f70cc7..6a6516411 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -6175,14 +6175,14 @@ var structDescs_arm = []*KeyedStruct{ }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET6]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET6]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 10}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 2}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, @@ -6309,7 +6309,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], rtnl_link_ifmap]"}, FldName: "IFLA_MAP"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], int32]"}, FldName: "IFLA_MTU"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINK, int16], int32]"}, FldName: "IFLA_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, FldName: "IFLA_MASTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, FldName: "IFLA_MASTER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_CARRIER, int16], int8]"}, FldName: "IFLA_CARRIER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_TXQLEN, int16], int32]"}, FldName: "IFLA_TXQLEN"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_WEIGHT, int16], int32]"}, FldName: "IFLA_WEIGHT"}, @@ -6317,7 +6317,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKMODE, int16], int8]"}, FldName: "IFLA_LINKMODE"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKINFO, int16], ifla_info_policy]"}, FldName: "IFLA_LINKINFO"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, FldName: "IFLA_NET_NS_PID"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, FldName: "IFLA_NET_NS_FD"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, FldName: "IFLA_NET_NS_FD"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], devname]"}, FldName: "IFLA_IFALIAS"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], void]"}, FldName: "IFLA_IFALIASn"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VFINFO_LIST, int16], array[nlattr[IFLA_VF_INFO, array[ifla_vf_policy]]]]"}, FldName: "IFLA_VFINFO_LIST"}, @@ -7298,7 +7298,7 @@ var structDescs_arm = []*KeyedStruct{ {Key: StructKey{Name: "ip6vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv6_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv6_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "ip_mreq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip_mreq", TypeSize: 8}, Fields: []Type{ &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "imr_multiaddr"}, @@ -13032,15 +13032,15 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, &StructType{Key: StructKey{Name: "rtnl_link_ifmap"}, FldName: "payload"}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], int32]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], ifindex]", 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}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]", 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: 28}, - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "payload", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, @@ -22664,12 +22664,6 @@ var structDescs_arm = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "start", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}}, }}}, - {Key: StructKey{Name: "vit_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vit_common_policy", IsVarlen: true}, Fields: []Type{ - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, - }}}, {Key: StructKey{Name: "vlan_tag"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vlan_tag", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "tag_ad", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "vlan_tag_ad"}}, Kind: 1, RangeEnd: 1}, &StructType{Key: StructKey{Name: "vlan_tag_q"}, FldName: "tag_q"}, @@ -22748,10 +22742,16 @@ var structDescs_arm = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "signal", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "state", TypeSize: 2}}}, }}}, + {Key: StructKey{Name: "vti_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_common_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, + }}}, {Key: StructKey{Name: "vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv4_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv4_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "winsize"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "winsize", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "row", TypeSize: 2}}}, @@ -45139,4 +45139,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "1ed5bc8deb8f143f6e5a011adcd4738e6fe75626" +const revision_arm = "e0adf643e3f3a0137f408fbaa37d008e09b170a1" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index c9a8130c8..f54313caa 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -6276,14 +6276,14 @@ var structDescs_arm64 = []*KeyedStruct{ }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET6]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET6]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 10}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 2}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, @@ -6412,7 +6412,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], rtnl_link_ifmap]"}, FldName: "IFLA_MAP"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], int32]"}, FldName: "IFLA_MTU"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINK, int16], int32]"}, FldName: "IFLA_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, FldName: "IFLA_MASTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, FldName: "IFLA_MASTER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_CARRIER, int16], int8]"}, FldName: "IFLA_CARRIER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_TXQLEN, int16], int32]"}, FldName: "IFLA_TXQLEN"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_WEIGHT, int16], int32]"}, FldName: "IFLA_WEIGHT"}, @@ -6420,7 +6420,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKMODE, int16], int8]"}, FldName: "IFLA_LINKMODE"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKINFO, int16], ifla_info_policy]"}, FldName: "IFLA_LINKINFO"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, FldName: "IFLA_NET_NS_PID"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, FldName: "IFLA_NET_NS_FD"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, FldName: "IFLA_NET_NS_FD"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], devname]"}, FldName: "IFLA_IFALIAS"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], void]"}, FldName: "IFLA_IFALIASn"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VFINFO_LIST, int16], array[nlattr[IFLA_VF_INFO, array[ifla_vf_policy]]]]"}, FldName: "IFLA_VFINFO_LIST"}, @@ -7404,7 +7404,7 @@ var structDescs_arm64 = []*KeyedStruct{ {Key: StructKey{Name: "ip6vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv6_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv6_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "ip_mreq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip_mreq", TypeSize: 8}, Fields: []Type{ &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "imr_multiaddr"}, @@ -13313,15 +13313,15 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, &StructType{Key: StructKey{Name: "rtnl_link_ifmap"}, FldName: "payload"}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], int32]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], ifindex]", 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}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]", 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: 28}, - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "payload", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, @@ -23018,12 +23018,6 @@ var structDescs_arm64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "start", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}}, }}}, - {Key: StructKey{Name: "vit_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vit_common_policy", IsVarlen: true}, Fields: []Type{ - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, - }}}, {Key: StructKey{Name: "vlan_tag"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vlan_tag", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "tag_ad", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "vlan_tag_ad"}}, Kind: 1, RangeEnd: 1}, &StructType{Key: StructKey{Name: "vlan_tag_q"}, FldName: "tag_q"}, @@ -23102,10 +23096,16 @@ var structDescs_arm64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "signal", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "state", TypeSize: 2}}}, }}}, + {Key: StructKey{Name: "vti_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_common_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, + }}}, {Key: StructKey{Name: "vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv4_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv4_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "winsize"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "winsize", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "row", TypeSize: 2}}}, @@ -45448,4 +45448,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "a469bc0b9f84b5ca49dedfa07ebe630b76b0582e" +const revision_arm64 = "60fd78f5948cc663817ee9a3ecbe1f069a7b9d6a" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 4e745c8f8..8b3f7d394 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -6267,14 +6267,14 @@ var structDescs_ppc64le = []*KeyedStruct{ }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET6]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET6]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 10}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, }}}, {Key: StructKey{Name: "ifaddrmsg[AF_INET]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifaddrmsg[AF_INET]", TypeSize: 8}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "ifa_family", TypeSize: 1}}, Val: 2}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_prefixlen", FldName: "ifa_prefixlen", TypeSize: 1}}, Vals: []uint64{0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ifa_flags", FldName: "ifa_flags", TypeSize: 1}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}, BitMask: true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rt_scope_t", FldName: "ifa_scope", TypeSize: 1}}, Vals: []uint64{0, 200, 253, 254, 255}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "ifa_index", TypeSize: 4}}, @@ -6403,7 +6403,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], rtnl_link_ifmap]"}, FldName: "IFLA_MAP"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], int32]"}, FldName: "IFLA_MTU"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINK, int16], int32]"}, FldName: "IFLA_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, FldName: "IFLA_MASTER"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, FldName: "IFLA_MASTER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_CARRIER, int16], int8]"}, FldName: "IFLA_CARRIER"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_TXQLEN, int16], int32]"}, FldName: "IFLA_TXQLEN"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_WEIGHT, int16], int32]"}, FldName: "IFLA_WEIGHT"}, @@ -6411,7 +6411,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKMODE, int16], int8]"}, FldName: "IFLA_LINKMODE"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINKINFO, int16], ifla_info_policy]"}, FldName: "IFLA_LINKINFO"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, FldName: "IFLA_NET_NS_PID"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, FldName: "IFLA_NET_NS_FD"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, FldName: "IFLA_NET_NS_FD"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], devname]"}, FldName: "IFLA_IFALIAS"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IFALIAS, int16], void]"}, FldName: "IFLA_IFALIASn"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VFINFO_LIST, int16], array[nlattr[IFLA_VF_INFO, array[ifla_vf_policy]]]]"}, FldName: "IFLA_VFINFO_LIST"}, @@ -7395,7 +7395,7 @@ var structDescs_ppc64le = []*KeyedStruct{ {Key: StructKey{Name: "ip6vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv6_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv6_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "ip_mreq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip_mreq", TypeSize: 8}, Fields: []Type{ &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "imr_multiaddr"}, @@ -13223,15 +13223,15 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 14}, &StructType{Key: StructKey{Name: "rtnl_link_ifmap"}, FldName: "payload"}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], int32]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_MASTER, int16], ifindex]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MASTER, int16], ifindex]", 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}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, - {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd]", TypeSize: 8}, Fields: []Type{ + {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_FD, int16], fd_namespace]", 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: 28}, - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "payload", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "payload", TypeSize: 4}}, }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_NET_NS_PID, int16], pid]", TypeSize: 8}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"}, @@ -22041,12 +22041,6 @@ var structDescs_ppc64le = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "start", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}}, }}}, - {Key: StructKey{Name: "vit_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vit_common_policy", IsVarlen: true}, Fields: []Type{ - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, - &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, - }}}, {Key: StructKey{Name: "vlan_tag"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vlan_tag", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "tag_ad", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "vlan_tag_ad"}}, Kind: 1, RangeEnd: 1}, &StructType{Key: StructKey{Name: "vlan_tag_q"}, FldName: "tag_q"}, @@ -22125,10 +22119,16 @@ var structDescs_ppc64le = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "signal", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "state", TypeSize: 2}}}, }}}, + {Key: StructKey{Name: "vti_common_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_common_policy", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LINK, int16], ifindex]"}, FldName: "IFLA_VTI_LINK"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_IKEY, int16], int32]"}, FldName: "IFLA_VTI_IKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_OKEY, int16], int32]"}, FldName: "IFLA_VTI_OKEY"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_FWMARK, int16], int32]"}, FldName: "IFLA_VTI_FWMARK"}, + }}}, {Key: StructKey{Name: "vti_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "vti_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_LOCAL, int16], ipv4_addr]"}, FldName: "IFLA_VTI_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_VTI_REMOTE, int16], ipv4_addr]"}, FldName: "IFLA_VTI_REMOTE"}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vit_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vit_common_policy"}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "vti_common_policy", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "vti_common_policy"}}}, }}}, {Key: StructKey{Name: "x25_address"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "x25_address", TypeSize: 16}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "null", TypeSize: 16}, Kind: 2, Values: []string{" \x00"}}, @@ -42806,4 +42806,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "373d551d95a3b0fe1245a8f9ebd6c469656c6dda" +const revision_ppc64le = "a01d6ae16722c54663a92914026bf8056a3326f9" diff --git a/sys/linux/socket_netlink_route.txt b/sys/linux/socket_netlink_route.txt index 8c03227d3..651d90f5f 100644 --- a/sys/linux/socket_netlink_route.txt +++ b/sys/linux/socket_netlink_route.txt @@ -153,7 +153,7 @@ ifla_policy [ IFLA_MAP nlattr[IFLA_MAP, rtnl_link_ifmap] IFLA_MTU nlattr[IFLA_MAP, int32] IFLA_LINK nlattr[IFLA_LINK, int32] - IFLA_MASTER nlattr[IFLA_MASTER, int32] + IFLA_MASTER nlattr[IFLA_MASTER, ifindex] IFLA_CARRIER nlattr[IFLA_CARRIER, int8] IFLA_TXQLEN nlattr[IFLA_TXQLEN, int32] IFLA_WEIGHT nlattr[IFLA_WEIGHT, int32] @@ -161,8 +161,7 @@ ifla_policy [ IFLA_LINKMODE nlattr[IFLA_LINKMODE, int8] IFLA_LINKINFO nlattr[IFLA_LINKINFO, ifla_info_policy] IFLA_NET_NS_PID nlattr[IFLA_NET_NS_PID, pid] -# TODO: this must be some 'nsfd' fd. - IFLA_NET_NS_FD nlattr[IFLA_NET_NS_FD, fd] + IFLA_NET_NS_FD nlattr[IFLA_NET_NS_FD, fd_namespace] IFLA_IFALIAS nlattr[IFLA_IFALIAS, devname] IFLA_IFALIASn nlattr[IFLA_IFALIAS, void] IFLA_VFINFO_LIST nlattr[IFLA_VFINFO_LIST, array[nlattr[IFLA_VF_INFO, array[ifla_vf_policy]]]] @@ -341,7 +340,7 @@ veth_policy [ VETH_INFO_PEER nlattr[VETH_INFO_PEER, ifinfomsg[AF_UNSPEC]] ] [varlen] -vit_common_policy [ +vti_common_policy [ IFLA_VTI_LINK nlattr[IFLA_VTI_LINK, ifindex] IFLA_VTI_IKEY nlattr[IFLA_VTI_IKEY, int32] IFLA_VTI_OKEY nlattr[IFLA_VTI_OKEY, int32] @@ -351,13 +350,13 @@ vit_common_policy [ vti_policy [ IFLA_VTI_LOCAL nlattr[IFLA_VTI_LOCAL, ipv4_addr] IFLA_VTI_REMOTE nlattr[IFLA_VTI_REMOTE, ipv4_addr] - vit_common_policy array[vit_common_policy] + vti_common_policy array[vti_common_policy] ] [varlen] ip6vti_policy [ IFLA_VTI_LOCAL nlattr[IFLA_VTI_LOCAL, ipv6_addr] IFLA_VTI_REMOTE nlattr[IFLA_VTI_REMOTE, ipv6_addr] - vit_common_policy array[vit_common_policy] + vti_common_policy array[vti_common_policy] ] [varlen] tunl_policy [ @@ -629,7 +628,7 @@ lwtunnel_encap_types = LWTUNNEL_ENCAP_NONE, LWTUNNEL_ENCAP_MPLS, LWTUNNEL_ENCAP_ rt_table_types = RT_TABLE_UNSPEC, RT_TABLE_COMPAT, RT_TABLE_DEFAULT, RT_TABLE_MAIN, RT_TABLE_LOCAL ndm_state = NUD_INCOMPLETE, NUD_REACHABLE, NUD_STALE, NUD_DELAY, NUD_PROBE, NUD_FAILED, NUD_NOARP, NUD_PERMANENT, NUD_NONE ndm_flags = NTF_USE, NTF_SELF, NTF_MASTER, NTF_PROXY, NTF_EXT_LEARNED, NTF_OFFLOADED, NTF_ROUTER -ifa_prefixlen = 0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 128 +ifa_prefixlen = 0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128 rtm_addr_len = 0, 16, 20, 32, 128 filter_mask = IFLA_STATS_UNSPEC, IFLA_STATS_LINK_64, IFLA_STATS_LINK_XSTATS, IFLA_STATS_LINK_XSTATS_SLAVE, IFLA_STATS_LINK_OFFLOAD_XSTATS, IFLA_STATS_AF_SPEC tunnel_encap_types = TUNNEL_ENCAP_NONE, TUNNEL_ENCAP_FOU, TUNNEL_ENCAP_GUE, TUNNEL_ENCAP_MPLS |
