aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-12-28 20:45:25 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-29 07:45:20 +0100
commita40793d7a5ec79bb550bc8599221880e6aba071b (patch)
treed8d2af2321dff9173a386f7cd8d4e869c55fb0f1 /sys/linux/gen/amd64.go
parent8ca2b643659dc8b3af374356ea1d81c7d1ee1ef7 (diff)
sys/linux: refine few types in NETLINK_ROUTE
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go34
1 files changed, 17 insertions, 17 deletions
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"