aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-12-21 18:22:22 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-22 09:39:02 +0100
commit3e3b15df7ecb36b232f8d1a33ec92999691e8511 (patch)
tree1be0a21db8299f7e0cd952ca24385af05634e00a /sys/linux/gen/amd64.go
parent603b512405c78d0143dc44bed638f70f01f9f95c (diff)
sys/linux: add RTM_NEWNSID/RTM_GETNSID
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go69
1 files changed, 57 insertions, 12 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 42caffcec..96ec0ae55 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -810,7 +810,7 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 1}}, Val: 133},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "regs", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "off", TypeSize: 2}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "func", TypeSize: 4}}, Kind: 2, RangeEnd: 91},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "func", TypeSize: 4}}, Kind: 2, RangeEnd: 93},
}}},
{Key: StructKey{Name: "bpf_insn_exit"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn_exit", TypeSize: 8}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 1}}, Val: 149},
@@ -3240,7 +3240,7 @@ var structDescs_amd64 = []*KeyedStruct{
}}},
{Key: StructKey{Name: "evm_ima_xattr_digest_ng"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "evm_ima_xattr_digest_ng", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 1}}, Val: 4},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "algo", TypeSize: 1}}, Kind: 2, RangeEnd: 18},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "algo", TypeSize: 1}}, Kind: 2, RangeEnd: 20},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digest", IsVarlen: true}, Kind: 1, RangeEnd: 20},
}}},
{Key: StructKey{Name: "evm_ima_xattr_digest_sha1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "evm_ima_xattr_digest_sha1", TypeSize: 21}, Fields: []Type{
@@ -6204,12 +6204,12 @@ var structDescs_amd64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_PHYS_PORT_ID, int16], array[int8, 0:MAX_PHYS_ITEM_ID_LEN]]"}, FldName: "IFLA_PHYS_PORT_ID"},
&StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_CARRIER_CHANGES, int16], int32]"}, FldName: "IFLA_CARRIER_CHANGES"},
&StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_PHYS_SWITCH_ID, int16], array[int8, 0:MAX_PHYS_ITEM_ID_LEN]]"}, FldName: "IFLA_PHYS_SWITCH_ID"},
- &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINK_NETNSID, int16], int32]"}, FldName: "IFLA_LINK_NETNSID"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_LINK_NETNSID, int16], netns_id]"}, FldName: "IFLA_LINK_NETNSID"},
&StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_PROTO_DOWN, int16], int8]"}, FldName: "IFLA_PROTO_DOWN"},
&StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_XDP, int16], array[ifla_xdp_policy]]"}, FldName: "IFLA_XDP"},
&StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_EVENT, int16], int32]"}, FldName: "IFLA_EVENT"},
&StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_GROUP, int16], int32]"}, FldName: "IFLA_GROUP"},
- &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IF_NETNSID, int16], int32]"}, FldName: "IFLA_IF_NETNSID"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_IF_NETNSID, int16], netns_id]"}, FldName: "IFLA_IF_NETNSID"},
}}},
{Key: StructKey{Name: "ifmap", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ifmap", TypeSize: 24, ArgDir: 2}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "mem_start", TypeSize: 8, ArgDir: 2}}},
@@ -10541,6 +10541,8 @@ var structDescs_amd64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, FldName: "bridge_getlink"},
&StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_SETLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, FldName: "bridge_setlink"},
&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"},
}}},
{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"},
@@ -10877,6 +10879,15 @@ var structDescs_amd64 = []*KeyedStruct{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs"}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "void"}, Kind: 1}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true},
}, AlignAttr: 4}},
+ {Key: StructKey{Name: "netlink_msg_t[const[RTM_GETNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_GETNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_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: 90},
+ &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: "rtgenmsg[AF_UNSPEC]"}, FldName: "payload"},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "rtnl_net_policy"}}},
+ }, AlignAttr: 4}},
{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETQDISC, int16], tcmsg[AF_UNSPEC], nlattr[TCA_DUMP_INVISIBLE, void]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_GETQDISC, int16], tcmsg[AF_UNSPEC], nlattr[TCA_DUMP_INVISIBLE, void]]", 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: 38},
@@ -11032,6 +11043,15 @@ var structDescs_amd64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "ndmsg"}, FldName: "payload"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "nd_policy"}}},
}, AlignAttr: 4}},
+ {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWNSID, int16], rtgenmsg[AF_UNSPEC], rtnl_net_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: 88},
+ &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: "rtgenmsg[AF_UNSPEC]"}, FldName: "payload"},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "rtnl_net_policy"}}},
+ }, AlignAttr: 4}},
{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWQDISC, int16], tcmsg[AF_UNSPEC], qdisc_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWQDISC, int16], tcmsg[AF_UNSPEC], qdisc_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: 36},
@@ -12866,10 +12886,10 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 3},
&BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "payload", TypeSize: 16}, Kind: 2, SubKind: "devnames", Values: []string{"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "lo\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "tunl0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "gre0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "gretap0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip_vti0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6_vti0\x00\x00\x00\x00\x00\x00\x00\x00", "sit0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6tnl0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6gre0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6gretap0\x00\x00\x00\x00\x00\x00", "bond0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "dummy0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "eql\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ifb0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ipddp0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "yam0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "bcsf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "bcsh0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "teql0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "nr0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "rose0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "irlan0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "erspan0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "bpq0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "vlan0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "vcan0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "team0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz_tun\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth0_to_bridge\x00", "veth1_to_bridge\x00", "veth0_to_bond\x00\x00\x00", "veth1_to_bond\x00\x00\x00", "veth0_to_team\x00\x00\x00", "veth1_to_team\x00\x00\x00", "bridge_slave_0\x00\x00", "bridge_slave_1\x00\x00", "bond_slave_0\x00\x00\x00\x00", "bond_slave_1\x00\x00\x00\x00", "team_slave_0\x00\x00\x00\x00", "team_slave_1\x00\x00\x00\x00", "syzkaller0\x00\x00\x00\x00\x00\x00", "syzkaller1\x00\x00\x00\x00\x00\x00"}},
}, AlignAttr: 4}},
- {Key: StructKey{Name: "nlattr_t[const[IFLA_IF_NETNSID, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_IF_NETNSID, int16], int32]", TypeSize: 8}, Fields: []Type{
+ {Key: StructKey{Name: "nlattr_t[const[IFLA_IF_NETNSID, int16], netns_id]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_IF_NETNSID, int16], netns_id]", 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: 46},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
}, AlignAttr: 4}},
{Key: StructKey{Name: "nlattr_t[const[IFLA_INFO_DATA, int16], array[bond_policy]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_INFO_DATA, int16], array[bond_policy]]", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"},
@@ -13150,10 +13170,10 @@ var structDescs_amd64 = []*KeyedStruct{
&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[IFLA_LINK_NETNSID, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_LINK_NETNSID, int16], int32]", TypeSize: 8}, Fields: []Type{
+ {Key: StructKey{Name: "nlattr_t[const[IFLA_LINK_NETNSID, int16], netns_id]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_LINK_NETNSID, int16], netns_id]", 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: 37},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
}, AlignAttr: 4}},
{Key: StructKey{Name: "nlattr_t[const[IFLA_MAP, int16], int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[IFLA_MAP, int16], int32]", TypeSize: 8}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nla_len", TypeSize: 2}}, Buf: "parent"},
@@ -13725,6 +13745,21 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nla_type", TypeSize: 2}}, Val: 1},
&StructType{Key: StructKey{Name: "tc_netem_gimodel"}, FldName: "payload"},
}, AlignAttr: 4}},
+ {Key: StructKey{Name: "nlattr_t[const[NETNSA_FD, int16], fd_namespace]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[NETNSA_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: 3},
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "payload", TypeSize: 4}},
+ }, AlignAttr: 4}},
+ {Key: StructKey{Name: "nlattr_t[const[NETNSA_NSID, int16], netns_id]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[NETNSA_NSID, int16], netns_id]", 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},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "payload", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }, AlignAttr: 4}},
+ {Key: StructKey{Name: "nlattr_t[const[NETNSA_PID, int16], pid]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[NETNSA_PID, int16], pid]", 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: 2},
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "payload", TypeSize: 4}},
+ }, AlignAttr: 4}},
{Key: StructKey{Name: "nlattr_t[const[RTA_DST, int16], array[mpls_label]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[RTA_DST, int16], array[mpls_label]]", IsVarlen: true}, 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},
@@ -17817,6 +17852,11 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "port", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}}},
+ {Key: StructKey{Name: "rtnl_net_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtnl_net_policy", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "nlattr_t[const[NETNSA_NSID, int16], netns_id]"}, FldName: "NETNSA_NSID"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[NETNSA_PID, int16], pid]"}, FldName: "NETNSA_PID"},
+ &StructType{Key: StructKey{Name: "nlattr_t[const[NETNSA_FD, int16], fd_namespace]"}, FldName: "NETNSA_FD"},
+ }}},
{Key: StructKey{Name: "rusage", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rusage", TypeSize: 144, ArgDir: 1}, Fields: []Type{
&StructType{Key: StructKey{Name: "timeval", Dir: 1}, FldName: "utime"},
&StructType{Key: StructKey{Name: "timeval", Dir: 1}, FldName: "stime"},
@@ -18526,7 +18566,7 @@ var structDescs_amd64 = []*KeyedStruct{
{Key: StructKey{Name: "signature_v2_hdr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "signature_v2_hdr", IsVarlen: true}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "evm_xattr_type", FldName: "type", TypeSize: 1}}, Vals: []uint64{3, 5}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "version", TypeSize: 1}}, Kind: 2, RangeEnd: 3},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hash_algo", TypeSize: 1}}, Kind: 2, RangeEnd: 18},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hash_algo", TypeSize: 1}}, Kind: 2, RangeEnd: 20},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1}}, IsPad: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32be", FldName: "keyid", TypeSize: 4}, ArgFormat: 1}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "sig_size", TypeSize: 2}, ArgFormat: 1}, BitSize: 8, Buf: "sig"},
@@ -39538,7 +39578,7 @@ var consts_amd64 = []ConstValue{
{Name: "GRND_RANDOM", Value: 2},
{Name: "GUE_FLAG_PRIV", Value: 256},
{Name: "GUE_PFLAG_REMCSUM", Value: 128},
- {Name: "HASH_ALGO__LAST", Value: 18},
+ {Name: "HASH_ALGO__LAST", Value: 20},
{Name: "HCIBLOCKADDR", Value: 1074022630},
{Name: "HCIDEVDOWN", Value: 1074022602},
{Name: "HCIDEVRESET", Value: 1074022603},
@@ -41130,6 +41170,9 @@ var consts_amd64 = []ConstValue{
{Name: "NETLINK_UNUSED", Value: 1},
{Name: "NETLINK_USERSOCK", Value: 2},
{Name: "NETLINK_XFRM", Value: 6},
+ {Name: "NETNSA_FD", Value: 3},
+ {Name: "NETNSA_NSID", Value: 1},
+ {Name: "NETNSA_PID", Value: 2},
{Name: "NETROM_IDLE", Value: 7},
{Name: "NETROM_N2", Value: 3},
{Name: "NETROM_T1", Value: 1},
@@ -41911,6 +41954,7 @@ var consts_amd64 = []ConstValue{
{Name: "RTM_GETNEIGH", Value: 30},
{Name: "RTM_GETNEIGHTBL", Value: 66},
{Name: "RTM_GETNETCONF", Value: 82},
+ {Name: "RTM_GETNSID", Value: 90},
{Name: "RTM_GETQDISC", Value: 38},
{Name: "RTM_GETROUTE", Value: 26},
{Name: "RTM_GETRULE", Value: 34},
@@ -41921,6 +41965,7 @@ var consts_amd64 = []ConstValue{
{Name: "RTM_NEWADDR", Value: 20},
{Name: "RTM_NEWLINK", Value: 16},
{Name: "RTM_NEWNEIGH", Value: 28},
+ {Name: "RTM_NEWNSID", Value: 88},
{Name: "RTM_NEWQDISC", Value: 36},
{Name: "RTM_NEWROUTE", Value: 24},
{Name: "RTM_NEWRULE", Value: 32},
@@ -44766,7 +44811,7 @@ var consts_amd64 = []ConstValue{
{Name: "_LINUX_CAPABILITY_VERSION_1", Value: 429392688},
{Name: "_LINUX_CAPABILITY_VERSION_2", Value: 537333798},
{Name: "_LINUX_CAPABILITY_VERSION_3", Value: 537396514},
- {Name: "__BPF_FUNC_MAX_ID", Value: 91},
+ {Name: "__BPF_FUNC_MAX_ID", Value: 93},
{Name: "__MAX_BPF_REG", Value: 11},
{Name: "__NR_accept", Value: 43},
{Name: "__NR_accept4", Value: 288},
@@ -45073,4 +45118,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "b7e39f3128ea124913623c5b44f8f4cf11321d3b"
+const revision_amd64 = "9afaea55cb050515a60438b6736ef28a5389c6e4"