aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2019-10-24 00:02:01 -0400
committerDmitry Vyukov <dvyukov@google.com>2019-10-24 09:30:50 +0200
commit910e03ca15ea4b364c3cfb1b5af4c1f5f54ec7aa (patch)
tree4aba2582d968f7777cd3926549d30925c667161b /sys/linux/gen/amd64.go
parentb602d64b5991c147af88f1e0f8d961c8b4b4a748 (diff)
sys/linux/socket_netlink_route_sched: add chain actions
Update #533 Chain actions also use filter policies, so we can add them easily. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go39
1 files changed, 36 insertions, 3 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index e2424e44a..1ec0cb5b7 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -1130,7 +1130,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: 111},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "func", TypeSize: 4}}, Kind: 2, RangeEnd: 112},
}}},
{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},
@@ -12964,6 +12964,9 @@ var structDescs_amd64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWTFILTER, int16], tcmsg[AF_UNSPEC], filter_policy]"}, FldName: "newtfilter"},
&StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELTFILTER, int16], tcmsg[AF_UNSPEC], filter_policy]"}, FldName: "deltfilter"},
&StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETTFILTER, int16], tcmsg[AF_UNSPEC], nlattr[TCA_CHAIN, int32]]"}, FldName: "gettfilter"},
+ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWCHAIN, int16], tcmsg[AF_UNSPEC], filter_policy]"}, FldName: "newchain"},
+ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELCHAIN, int16], tcmsg[AF_UNSPEC], filter_policy]"}, FldName: "delchain"},
+ &StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETCHAIN, int16], tcmsg[AF_UNSPEC], nlattr[TCA_CHAIN, int32]]"}, FldName: "getchain"},
&StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWACTION, int16], tcamsg[AF_UNSPEC], nlattr[TCA_ACT_TAB, tca_actions]]"}, FldName: "newtaction"},
&StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELACTION, int16], tcamsg[AF_UNSPEC], action_gd_policy]"}, FldName: "deltaction"},
&StructType{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETACTION, int16], tcamsg[AF_UNSPEC], action_dump_policy]"}, FldName: "gettaction"},
@@ -13049,6 +13052,15 @@ var structDescs_amd64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "ifaddrmsg[AF_INET]"}, FldName: "payload"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "ifa_ipv4_policy"}}},
}, AlignAttr: 4}},
+ {Key: StructKey{Name: "netlink_msg_t[const[RTM_DELCHAIN, int16], tcmsg[AF_UNSPEC], filter_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELCHAIN, int16], tcmsg[AF_UNSPEC], filter_policy]", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"parent"}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 101},
+ &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: "tcmsg[AF_UNSPEC]"}, FldName: "payload"},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "filter_policy"}}},
+ }, AlignAttr: 4}},
{Key: StructKey{Name: "netlink_msg_t[const[RTM_DELLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_DELLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"parent"}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 17},
@@ -13213,6 +13225,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_GETCHAIN, int16], tcmsg[AF_UNSPEC], nlattr[TCA_CHAIN, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_GETCHAIN, int16], tcmsg[AF_UNSPEC], nlattr[TCA_CHAIN, int32]]", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"parent"}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 102},
+ &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: "tcmsg[AF_UNSPEC]"}, FldName: "payload"},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CHAIN, int16], int32]"}}},
+ }, AlignAttr: 4}},
{Key: StructKey{Name: "netlink_msg_t[const[RTM_GETLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_GETLINK, int16], ifinfomsg[AF_BRIDGE], ifla_policy]", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"parent"}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 18},
@@ -13453,6 +13474,15 @@ var structDescs_amd64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "ifaddrmsg[AF_INET]"}, FldName: "payload"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "ifa_ipv4_policy"}}},
}, AlignAttr: 4}},
+ {Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWCHAIN, int16], tcmsg[AF_UNSPEC], filter_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWCHAIN, int16], tcmsg[AF_UNSPEC], filter_policy]", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"parent"}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 100},
+ &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: "tcmsg[AF_UNSPEC]"}, FldName: "payload"},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "attrs", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "filter_policy"}}},
+ }, AlignAttr: 4}},
{Key: StructKey{Name: "netlink_msg_t[const[RTM_NEWLINK, int16], ifinfomsg[AF_UNSPEC], ifla_policy]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_t[const[RTM_NEWLINK, int16], ifinfomsg[AF_UNSPEC], ifla_policy]", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"parent"}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 2}}, Val: 16},
@@ -50326,6 +50356,7 @@ var consts_amd64 = []ConstValue{
{Name: "RTF_WINDOW", Value: 128},
{Name: "RTM_DELACTION", Value: 49},
{Name: "RTM_DELADDR", Value: 21},
+ {Name: "RTM_DELCHAIN", Value: 101},
{Name: "RTM_DELLINK", Value: 17},
{Name: "RTM_DELNEIGH", Value: 29},
{Name: "RTM_DELQDISC", Value: 37},
@@ -50342,6 +50373,7 @@ var consts_amd64 = []ConstValue{
{Name: "RTM_GETACTION", Value: 50},
{Name: "RTM_GETADDR", Value: 22},
{Name: "RTM_GETANYCAST", Value: 62},
+ {Name: "RTM_GETCHAIN", Value: 102},
{Name: "RTM_GETLINK", Value: 18},
{Name: "RTM_GETMULTICAST", Value: 58},
{Name: "RTM_GETNEIGH", Value: 30},
@@ -50356,6 +50388,7 @@ var consts_amd64 = []ConstValue{
{Name: "RTM_GETTFILTER", Value: 46},
{Name: "RTM_NEWACTION", Value: 48},
{Name: "RTM_NEWADDR", Value: 20},
+ {Name: "RTM_NEWCHAIN", Value: 100},
{Name: "RTM_NEWLINK", Value: 16},
{Name: "RTM_NEWNEIGH", Value: 28},
{Name: "RTM_NEWNSID", Value: 88},
@@ -53753,7 +53786,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: 111},
+ {Name: "__BPF_FUNC_MAX_ID", Value: 112},
{Name: "__MAX_BPF_REG", Value: 11},
{Name: "__NR_accept", Value: 43},
{Name: "__NR_accept4", Value: 288},
@@ -54073,4 +54106,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "e68df44a75ffa2dbdc6ce78af81469d616c4deb6"
+const revision_amd64 = "7330120bdee27717f8e19d43096cee7ef68f4086"