diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-01-10 15:54:07 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-01-11 11:45:22 +0100 |
| commit | a46637766bbcad3ccb5b18ef9db77bd9244b2341 (patch) | |
| tree | b42cfe12a3e014190b32d8143ba41fd4ae415145 /sys/linux | |
| parent | 02a19b646c19a4a75c3efc00a32c564eeabb4bdf (diff) | |
sys/linux: regenerate arm consts + small netlink fixed
Arm was broken on upstream kernel for some time
due to some assembler error. Now it seems to be fixed,
so regenerate consts.
Also fix small issues in new netlink descriptions.
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/386.go | 8 | ||||
| -rw-r--r-- | sys/linux/amd64.go | 8 | ||||
| -rw-r--r-- | sys/linux/arm.go | 34 | ||||
| -rw-r--r-- | sys/linux/arm64.go | 8 | ||||
| -rw-r--r-- | sys/linux/bpf_386.const | 2 | ||||
| -rw-r--r-- | sys/linux/bpf_amd64.const | 2 | ||||
| -rw-r--r-- | sys/linux/bpf_arm64.const | 2 | ||||
| -rw-r--r-- | sys/linux/bpf_ppc64le.const | 2 | ||||
| -rw-r--r-- | sys/linux/ppc64le.go | 8 | ||||
| -rw-r--r-- | sys/linux/socket_alg_arm.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_netlink.txt | 12 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_arm.const | 2 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_generic.txt | 4 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_generic_386.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_generic_amd64.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_generic_arm.const | 3 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_generic_arm64.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_generic_ppc64le.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_netlink_netfilter_arm.const | 26 | ||||
| -rw-r--r-- | sys/linux/socket_netrom_arm.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_nfc_arm.const | 1 |
21 files changed, 97 insertions, 31 deletions
diff --git a/sys/linux/386.go b/sys/linux/386.go index 2aaf2decb..dd643520d 100644 --- a/sys/linux/386.go +++ b/sys/linux/386.go @@ -443,7 +443,7 @@ var structDescs_386 = []*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: 59}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "func", TypeSize: 4}}, Kind: 2, RangeEnd: 58}, }}}, {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}, @@ -3891,6 +3891,8 @@ var structDescs_386 = []*KeyedStruct{ {Key: StructKey{Name: "nl_generic_attr_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nl_generic_attr_data"}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "u32", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "u64", TypeSize: 8}}}, + &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "ipv4"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "ipv6"}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4}}, @@ -17953,7 +17955,7 @@ var consts_386 = []ConstValue{ {Name: "_DRM_VBLANK_SECONDARY", Value: 536870912}, {Name: "_DRM_VBLANK_SIGNAL", Value: 1073741824}, {Name: "_DRM_WRITE_COMBINING", Value: 16}, - {Name: "__BPF_FUNC_MAX_ID", Value: 59}, + {Name: "__BPF_FUNC_MAX_ID", Value: 58}, {Name: "__NR_accept4", Value: 364}, {Name: "__NR_acct", Value: 51}, {Name: "__NR_add_key", Value: 286}, @@ -18246,4 +18248,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "2365a25658105f294372ca34639e82cf3961cb68" +const revision_386 = "b9acfde8e0449d57e5bdec8e7513898c574c70b8" diff --git a/sys/linux/amd64.go b/sys/linux/amd64.go index 155315508..2e851ccac 100644 --- a/sys/linux/amd64.go +++ b/sys/linux/amd64.go @@ -450,7 +450,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: 59}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "func", TypeSize: 4}}, Kind: 2, RangeEnd: 58}, }}}, {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}, @@ -3972,6 +3972,8 @@ var structDescs_amd64 = []*KeyedStruct{ {Key: StructKey{Name: "nl_generic_attr_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nl_generic_attr_data"}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "u32", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "u64", TypeSize: 8}}}, + &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "ipv4"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "ipv6"}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4}}, @@ -18413,7 +18415,7 @@ var consts_amd64 = []ConstValue{ {Name: "_DRM_VBLANK_SECONDARY", Value: 536870912}, {Name: "_DRM_VBLANK_SIGNAL", Value: 1073741824}, {Name: "_DRM_WRITE_COMBINING", Value: 16}, - {Name: "__BPF_FUNC_MAX_ID", Value: 59}, + {Name: "__BPF_FUNC_MAX_ID", Value: 58}, {Name: "__NR_accept", Value: 43}, {Name: "__NR_accept4", Value: 288}, {Name: "__NR_acct", Value: 163}, @@ -18717,4 +18719,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "2fede332c16db02b822218bf77715e694646e014" +const revision_amd64 = "866427a838b559ed309745d2209281ae1ff6cccb" diff --git a/sys/linux/arm.go b/sys/linux/arm.go index dfb7cd25a..bb44280be 100644 --- a/sys/linux/arm.go +++ b/sys/linux/arm.go @@ -3645,7 +3645,7 @@ var structDescs_arm = []*KeyedStruct{ }}}, {Key: StructKey{Name: "netlink_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg"}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}, Kind: 2}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}, Kind: 2, RangeBegin: 16, RangeEnd: 66}, &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}}, &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "seq", TypeSize: 4}}, ValuesStart: 7388453, ValuesPerProc: 8}, &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "pid", TypeSize: 4}}, ValuesStart: 635427835, ValuesPerProc: 4}, @@ -3657,7 +3657,7 @@ var structDescs_arm = []*KeyedStruct{ }}}, {Key: StructKey{Name: "netlink_msg_generic"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_generic"}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}, Kind: 2}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}, Kind: 2, RangeBegin: 16, RangeEnd: 66}, &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}}, &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "seq", TypeSize: 4}}, ValuesStart: 7388453, ValuesPerProc: 8}, &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "pid", TypeSize: 4}}, ValuesStart: 635427835, ValuesPerProc: 4}, @@ -3667,7 +3667,7 @@ var structDescs_arm = []*KeyedStruct{ {Key: StructKey{Name: "netlink_msg_netfilter"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "netlink_msg_netfilter"}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "parent"}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "type", TypeSize: 1}}, Kind: 2, RangeEnd: 20}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "nfnl_subsys", FldName: "subsys", TypeSize: 1}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "nfnl_subsys", FldName: "subsys", TypeSize: 1}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &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}}, &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "seq", TypeSize: 4}}, ValuesStart: 7388453, ValuesPerProc: 8}, &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "pid", TypeSize: 4}}, ValuesStart: 635427835, ValuesPerProc: 4}, @@ -3700,7 +3700,7 @@ var structDescs_arm = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "send_flags", FldName: "f", TypeSize: 4}}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912, 67108864}}, }}}, {Key: StructKey{Name: "nfgenmsg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nfgenmsg", TypeSize: 4}, Fields: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "nfproto", FldName: "nfgen_family", TypeSize: 1}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "nfproto", FldName: "nfgen_family", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 3, 5, 7, 10, 12}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16be", FldName: "res_id", TypeSize: 2}, BigEndian: true}, Kind: 2, RangeEnd: 10}, }, AlignAttr: 4}}, @@ -3734,6 +3734,8 @@ var structDescs_arm = []*KeyedStruct{ {Key: StructKey{Name: "nl_generic_attr_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nl_generic_attr_data"}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "u32", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "u64", TypeSize: 8}}}, + &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "ipv4"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "ipv6"}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4}}, @@ -16560,6 +16562,28 @@ var consts_arm = []ConstValue{ {Name: "NFC_PROTO_NFC_DEP", Value: 5}, {Name: "NFC_SOCKPROTO_LLCP", Value: 1}, {Name: "NFC_SOCKPROTO_RAW"}, + {Name: "NFNETLINK_V0"}, + {Name: "NFNL_SUBSYS_ACCT", Value: 7}, + {Name: "NFNL_SUBSYS_CTHELPER", Value: 9}, + {Name: "NFNL_SUBSYS_CTNETLINK", Value: 1}, + {Name: "NFNL_SUBSYS_CTNETLINK_EXP", Value: 2}, + {Name: "NFNL_SUBSYS_CTNETLINK_TIMEOUT", Value: 8}, + {Name: "NFNL_SUBSYS_IPSET", Value: 6}, + {Name: "NFNL_SUBSYS_NFTABLES", Value: 10}, + {Name: "NFNL_SUBSYS_NFT_COMPAT", Value: 11}, + {Name: "NFNL_SUBSYS_OSF", Value: 5}, + {Name: "NFNL_SUBSYS_QUEUE", Value: 3}, + {Name: "NFNL_SUBSYS_ULOG", Value: 4}, + {Name: "NFPROTO_ARP", Value: 3}, + {Name: "NFPROTO_BRIDGE", Value: 7}, + {Name: "NFPROTO_DECNET", Value: 12}, + {Name: "NFPROTO_INET", Value: 1}, + {Name: "NFPROTO_IPV4", Value: 2}, + {Name: "NFPROTO_IPV6", Value: 10}, + {Name: "NFPROTO_NETDEV", Value: 5}, + {Name: "NFPROTO_UNSPEC"}, + {Name: "NLMSG_MAX_TYPE", Value: 66}, + {Name: "NLMSG_MIN_TYPE", Value: 16}, {Name: "NLM_F_ACK", Value: 4}, {Name: "NLM_F_APPEND", Value: 2048}, {Name: "NLM_F_ATOMIC", Value: 1024}, @@ -18092,4 +18116,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "14aadba81e2d07b13396f757e6e103b98bf07b7b" +const revision_arm = "115a5c85a37a9346e4092d1166801e475b538e72" diff --git a/sys/linux/arm64.go b/sys/linux/arm64.go index acc160d88..0b889e0e5 100644 --- a/sys/linux/arm64.go +++ b/sys/linux/arm64.go @@ -450,7 +450,7 @@ var structDescs_arm64 = []*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: 59}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "func", TypeSize: 4}}, Kind: 2, RangeEnd: 58}, }}}, {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}, @@ -3777,6 +3777,8 @@ var structDescs_arm64 = []*KeyedStruct{ {Key: StructKey{Name: "nl_generic_attr_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nl_generic_attr_data"}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "u32", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "u64", TypeSize: 8}}}, + &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "ipv4"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "ipv6"}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4}}, @@ -17836,7 +17838,7 @@ var consts_arm64 = []ConstValue{ {Name: "_DRM_VBLANK_SECONDARY", Value: 536870912}, {Name: "_DRM_VBLANK_SIGNAL", Value: 1073741824}, {Name: "_DRM_WRITE_COMBINING", Value: 16}, - {Name: "__BPF_FUNC_MAX_ID", Value: 59}, + {Name: "__BPF_FUNC_MAX_ID", Value: 58}, {Name: "__NR_accept", Value: 202}, {Name: "__NR_accept4", Value: 242}, {Name: "__NR_acct", Value: 89}, @@ -18099,4 +18101,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "d5a19825301b5d9017a7f36ee57beddefd8a2f1f" +const revision_arm64 = "e3a3988e99078c14e4409f29b1b1f374765af70b" diff --git a/sys/linux/bpf_386.const b/sys/linux/bpf_386.const index 06539b09b..aafbc74b5 100644 --- a/sys/linux/bpf_386.const +++ b/sys/linux/bpf_386.const @@ -123,7 +123,7 @@ BPF_SUB0 = 1 BPF_W0 = 0 BPF_XADD0 = 6 BPF_XOR0 = 10 -__BPF_FUNC_MAX_ID = 59 +__BPF_FUNC_MAX_ID = 58 __NR_bpf = 357 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/bpf_amd64.const b/sys/linux/bpf_amd64.const index 06d71efc9..2e0426766 100644 --- a/sys/linux/bpf_amd64.const +++ b/sys/linux/bpf_amd64.const @@ -123,7 +123,7 @@ BPF_SUB0 = 1 BPF_W0 = 0 BPF_XADD0 = 6 BPF_XOR0 = 10 -__BPF_FUNC_MAX_ID = 59 +__BPF_FUNC_MAX_ID = 58 __NR_bpf = 321 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/bpf_arm64.const b/sys/linux/bpf_arm64.const index 00e8bbecc..94b712f84 100644 --- a/sys/linux/bpf_arm64.const +++ b/sys/linux/bpf_arm64.const @@ -123,7 +123,7 @@ BPF_SUB0 = 1 BPF_W0 = 0 BPF_XADD0 = 6 BPF_XOR0 = 10 -__BPF_FUNC_MAX_ID = 59 +__BPF_FUNC_MAX_ID = 58 __NR_bpf = 280 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/bpf_ppc64le.const b/sys/linux/bpf_ppc64le.const index 25de06c98..2ecddfe10 100644 --- a/sys/linux/bpf_ppc64le.const +++ b/sys/linux/bpf_ppc64le.const @@ -123,7 +123,7 @@ BPF_SUB0 = 1 BPF_W0 = 0 BPF_XADD0 = 6 BPF_XOR0 = 10 -__BPF_FUNC_MAX_ID = 59 +__BPF_FUNC_MAX_ID = 58 __NR_bpf = 361 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/ppc64le.go b/sys/linux/ppc64le.go index c4e09b1fa..35f850742 100644 --- a/sys/linux/ppc64le.go +++ b/sys/linux/ppc64le.go @@ -443,7 +443,7 @@ var structDescs_ppc64le = []*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: 59}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "func", TypeSize: 4}}, Kind: 2, RangeEnd: 58}, }}}, {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}, @@ -3731,6 +3731,8 @@ var structDescs_ppc64le = []*KeyedStruct{ {Key: StructKey{Name: "nl_generic_attr_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nl_generic_attr_data"}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "u32", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "u64", TypeSize: 8}}}, + &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "ipv4"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "ipv6"}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4}}, @@ -17559,7 +17561,7 @@ var consts_ppc64le = []ConstValue{ {Name: "_DRM_VBLANK_SECONDARY", Value: 536870912}, {Name: "_DRM_VBLANK_SIGNAL", Value: 1073741824}, {Name: "_DRM_WRITE_COMBINING", Value: 16}, - {Name: "__BPF_FUNC_MAX_ID", Value: 59}, + {Name: "__BPF_FUNC_MAX_ID", Value: 58}, {Name: "__NR_accept", Value: 330}, {Name: "__NR_accept4", Value: 344}, {Name: "__NR_acct", Value: 51}, @@ -17844,4 +17846,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "1ca464b73d637d0cee9d84996563c0e0b7b49ea1" +const revision_ppc64le = "c38028f2fa7c5479ca428b758905a1595b3228e2" diff --git a/sys/linux/socket_alg_arm.const b/sys/linux/socket_alg_arm.const index 85de90a49..a1f66ab65 100644 --- a/sys/linux/socket_alg_arm.const +++ b/sys/linux/socket_alg_arm.const @@ -34,6 +34,7 @@ CRYPTO_ALG_TYPE_SHASH = 14 SOCK_SEQPACKET = 5 SOL_ALG = 279 __NR_accept = 285 +__NR_accept4 = 366 __NR_bind = 282 __NR_sendmmsg = 374 __NR_sendmsg = 296 diff --git a/sys/linux/socket_netlink.txt b/sys/linux/socket_netlink.txt index 195b45936..9583a540a 100644 --- a/sys/linux/socket_netlink.txt +++ b/sys/linux/socket_netlink.txt @@ -83,7 +83,7 @@ iovec_nl { netlink_msg { len len[parent, int32] - type int16[NLMSG_MIN_TYPE:NLMSG_MAX_TYPE] + type netlink_random_msg_type flags flags[netlink_msg_flags, int16] seq netlink_seq pid netlink_port_id @@ -113,6 +113,8 @@ nl_generic_attr_typed { nl_generic_attr_data [ u32 int32 u64 int64 + ipv4 ipv4_addr + ipv6 ipv6_addr fd fd pid pid uid uid @@ -139,9 +141,11 @@ nl_mmap_req { fnumber int32 } -# Some approximation for protocols for which we don't have precise descriptions. -define NLMSG_MAX_TYPE NLMSG_MIN_TYPE + 50 - # Removed (if __KERNEL__ defined) in next-20160229 (commit d1b4c689) define NETLINK_RX_RING 6 define NETLINK_TX_RING 7 + +# Some approximation for protocols for which we don't have precise descriptions. +define NLMSG_MAX_TYPE NLMSG_MIN_TYPE + 50 + +type netlink_random_msg_type int16[NLMSG_MIN_TYPE:NLMSG_MAX_TYPE] diff --git a/sys/linux/socket_netlink_arm.const b/sys/linux/socket_netlink_arm.const index a9cfb4da8..bc7ac102e 100644 --- a/sys/linux/socket_netlink_arm.const +++ b/sys/linux/socket_netlink_arm.const @@ -40,6 +40,8 @@ NETLINK_TX_RING = 7 NETLINK_UNUSED = 1 NETLINK_USERSOCK = 2 NETLINK_XFRM = 6 +NLMSG_MAX_TYPE = 66 +NLMSG_MIN_TYPE = 16 NLM_F_ACK = 4 NLM_F_APPEND = 2048 NLM_F_ATOMIC = 1024 diff --git a/sys/linux/socket_netlink_generic.txt b/sys/linux/socket_netlink_generic.txt index ceeecd1e3..22b52f245 100644 --- a/sys/linux/socket_netlink_generic.txt +++ b/sys/linux/socket_netlink_generic.txt @@ -32,7 +32,7 @@ iovec_nl_generic { netlink_msg_generic { len len[parent, int32] - type int16[NLMSG_MIN_TYPE:NLMSG_MAX_TYPE] + type netlink_random_msg_type flags flags[netlink_msg_flags, int16] seq netlink_seq pid netlink_port_id @@ -43,6 +43,6 @@ netlink_msg_generic { genlmsghdr { cmd int8[0:32] - version const[NFNETLINK_V0, int8] + version const[0, int8] reserved const[0, int16] } [align_4] diff --git a/sys/linux/socket_netlink_generic_386.const b/sys/linux/socket_netlink_generic_386.const index 834c6dcdc..7e76ce15c 100644 --- a/sys/linux/socket_netlink_generic_386.const +++ b/sys/linux/socket_netlink_generic_386.const @@ -1,7 +1,6 @@ # AUTOGENERATED FILE AF_NETLINK = 16 NETLINK_GENERIC = 16 -NLMSG_MIN_TYPE = 16 SOCK_RAW = 3 __NR_sendmsg = 370 __NR_socket = 359 diff --git a/sys/linux/socket_netlink_generic_amd64.const b/sys/linux/socket_netlink_generic_amd64.const index 5dcf310bf..1645f96cb 100644 --- a/sys/linux/socket_netlink_generic_amd64.const +++ b/sys/linux/socket_netlink_generic_amd64.const @@ -1,7 +1,6 @@ # AUTOGENERATED FILE AF_NETLINK = 16 NETLINK_GENERIC = 16 -NLMSG_MIN_TYPE = 16 SOCK_RAW = 3 __NR_sendmsg = 46 __NR_socket = 41 diff --git a/sys/linux/socket_netlink_generic_arm.const b/sys/linux/socket_netlink_generic_arm.const index a9d3245b4..2620abf17 100644 --- a/sys/linux/socket_netlink_generic_arm.const +++ b/sys/linux/socket_netlink_generic_arm.const @@ -1,3 +1,6 @@ # AUTOGENERATED FILE +AF_NETLINK = 16 +NETLINK_GENERIC = 16 +SOCK_RAW = 3 __NR_sendmsg = 296 __NR_socket = 281 diff --git a/sys/linux/socket_netlink_generic_arm64.const b/sys/linux/socket_netlink_generic_arm64.const index 36468de5a..4d26f7e14 100644 --- a/sys/linux/socket_netlink_generic_arm64.const +++ b/sys/linux/socket_netlink_generic_arm64.const @@ -1,7 +1,6 @@ # AUTOGENERATED FILE AF_NETLINK = 16 NETLINK_GENERIC = 16 -NLMSG_MIN_TYPE = 16 SOCK_RAW = 3 __NR_sendmsg = 211 __NR_socket = 198 diff --git a/sys/linux/socket_netlink_generic_ppc64le.const b/sys/linux/socket_netlink_generic_ppc64le.const index 19edffd71..ed0427014 100644 --- a/sys/linux/socket_netlink_generic_ppc64le.const +++ b/sys/linux/socket_netlink_generic_ppc64le.const @@ -1,7 +1,6 @@ # AUTOGENERATED FILE AF_NETLINK = 16 NETLINK_GENERIC = 16 -NLMSG_MIN_TYPE = 16 SOCK_RAW = 3 __NR_sendmsg = 341 __NR_socket = 326 diff --git a/sys/linux/socket_netlink_netfilter_arm.const b/sys/linux/socket_netlink_netfilter_arm.const new file mode 100644 index 000000000..220b6cd57 --- /dev/null +++ b/sys/linux/socket_netlink_netfilter_arm.const @@ -0,0 +1,26 @@ +# AUTOGENERATED FILE +AF_NETLINK = 16 +NETLINK_NETFILTER = 12 +NFNETLINK_V0 = 0 +NFNL_SUBSYS_ACCT = 7 +NFNL_SUBSYS_CTHELPER = 9 +NFNL_SUBSYS_CTNETLINK = 1 +NFNL_SUBSYS_CTNETLINK_EXP = 2 +NFNL_SUBSYS_CTNETLINK_TIMEOUT = 8 +NFNL_SUBSYS_IPSET = 6 +NFNL_SUBSYS_NFTABLES = 10 +NFNL_SUBSYS_NFT_COMPAT = 11 +NFNL_SUBSYS_OSF = 5 +NFNL_SUBSYS_QUEUE = 3 +NFNL_SUBSYS_ULOG = 4 +NFPROTO_ARP = 3 +NFPROTO_BRIDGE = 7 +NFPROTO_DECNET = 12 +NFPROTO_INET = 1 +NFPROTO_IPV4 = 2 +NFPROTO_IPV6 = 10 +NFPROTO_NETDEV = 5 +NFPROTO_UNSPEC = 0 +SOCK_RAW = 3 +__NR_sendmsg = 296 +__NR_socket = 281 diff --git a/sys/linux/socket_netrom_arm.const b/sys/linux/socket_netrom_arm.const index 4b39fba12..337ee9685 100644 --- a/sys/linux/socket_netrom_arm.const +++ b/sys/linux/socket_netrom_arm.const @@ -13,6 +13,7 @@ SOL_NETROM = 259 TIOCINQ = 21531 TIOCOUTQ = 21521 __NR_accept = 285 +__NR_accept4 = 366 __NR_bind = 282 __NR_connect = 283 __NR_getpeername = 287 diff --git a/sys/linux/socket_nfc_arm.const b/sys/linux/socket_nfc_arm.const index 1a2580026..7185bec8a 100644 --- a/sys/linux/socket_nfc_arm.const +++ b/sys/linux/socket_nfc_arm.const @@ -19,6 +19,7 @@ SOCK_RAW = 3 SOCK_STREAM = 1 SOL_NFC = 280 __NR_accept = 285 +__NR_accept4 = 366 __NR_bind = 282 __NR_connect = 283 __NR_getsockopt = 295 |
