diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-05-10 13:18:51 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-05-10 13:18:51 +0200 |
| commit | f5cecf2e325a277733347308687fd39e7253ef66 (patch) | |
| tree | 5d909bfbee2a8e6273bad175711bc9cd9b072258 /sys/linux/gen/amd64.go | |
| parent | 0a05e35530c788ed648f72b24f2291e5ad33d53e (diff) | |
sys/linux: add new fou attributes
Diffstat (limited to 'sys/linux/gen/amd64.go')
| -rw-r--r-- | sys/linux/gen/amd64.go | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 8d5da3bd2..5be5d4ace 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -4603,6 +4603,12 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_IPPROTO, int16], flags[ipv6_types, int8]]"}, FldName: "FOU_ATTR_IPPROTO"}, &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_TYPE, int16], flags[fou_types, int8]]"}, FldName: "FOU_ATTR_TYPE"}, &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_REMCSUM_NOPARTIAL, int16], void]"}, FldName: "FOU_ATTR_REMCSUM_NOPARTIAL"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_LOCAL_V4, int16], ipv4_addr]"}, FldName: "FOU_ATTR_LOCAL_V4"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_LOCAL_V6, int16], ipv6_addr]"}, FldName: "FOU_ATTR_LOCAL_V6"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_PEER_V4, int16], ipv4_addr]"}, FldName: "FOU_ATTR_PEER_V4"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_PEER_V6, int16], ipv6_addr]"}, FldName: "FOU_ATTR_PEER_V6"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_PEER_PORT, int16], sock_port]"}, FldName: "FOU_ATTR_PEER_PORT"}, + &StructType{Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_IFINDEX, int16], ifindex]"}, FldName: "FOU_ATTR_IFINDEX"}, }}}, {Key: StructKey{Name: "fr_proto"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fr_proto", TypeSize: 24}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "t391", TypeSize: 4}}}, @@ -13965,12 +13971,43 @@ var structDescs_amd64 = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fou_families", FldName: "payload", TypeSize: 1}}, Vals: []uint64{2, 10}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_IFINDEX, int16], ifindex]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[FOU_ATTR_IFINDEX, 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: 11}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "payload", TypeSize: 4}}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_IPPROTO, int16], flags[ipv6_types, int8]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[FOU_ATTR_IPPROTO, int16], flags[ipv6_types, int8]]", 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}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv6_types", FldName: "payload", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 17, 22, 29, 33, 41, 46, 47, 50, 51, 92, 94, 98, 103, 108, 132, 136, 137, 255, 0, 43, 44, 58, 59, 60, 135, 0, 43, 44, 47, 50, 51, 58, 59, 60, 135, 115}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_LOCAL_V4, int16], ipv4_addr]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[FOU_ATTR_LOCAL_V4, int16], ipv4_addr]", 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: 6}, + &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_LOCAL_V6, int16], ipv6_addr]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[FOU_ATTR_LOCAL_V6, int16], ipv6_addr]", TypeSize: 20}, 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: 7}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_PEER_PORT, int16], sock_port]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[FOU_ATTR_PEER_PORT, int16], sock_port]", 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: "int16be", FldName: "payload", TypeSize: 2}, ArgFormat: 1}, Kind: 2, RangeBegin: 20000, RangeEnd: 20004}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_PEER_V4, int16], ipv4_addr]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[FOU_ATTR_PEER_V4, int16], ipv4_addr]", 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: 8}, + &UnionType{Key: StructKey{Name: "ipv4_addr"}, FldName: "payload"}, + }, AlignAttr: 4}}, + {Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_PEER_V6, int16], ipv6_addr]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[FOU_ATTR_PEER_V6, int16], ipv6_addr]", TypeSize: 20}, 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: 9}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "payload"}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "nlattr_t[const[FOU_ATTR_PORT, int16], sock_port]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nlattr_t[const[FOU_ATTR_PORT, int16], sock_port]", 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}, @@ -44731,7 +44768,13 @@ var consts_amd64 = []ConstValue{ {Name: "FOPEN_KEEP_CACHE", Value: 2}, {Name: "FOPEN_NONSEEKABLE", Value: 4}, {Name: "FOU_ATTR_AF", Value: 2}, + {Name: "FOU_ATTR_IFINDEX", Value: 11}, {Name: "FOU_ATTR_IPPROTO", Value: 3}, + {Name: "FOU_ATTR_LOCAL_V4", Value: 6}, + {Name: "FOU_ATTR_LOCAL_V6", Value: 7}, + {Name: "FOU_ATTR_PEER_PORT", Value: 10}, + {Name: "FOU_ATTR_PEER_V4", Value: 8}, + {Name: "FOU_ATTR_PEER_V6", Value: 9}, {Name: "FOU_ATTR_PORT", Value: 1}, {Name: "FOU_ATTR_REMCSUM_NOPARTIAL", Value: 5}, {Name: "FOU_ATTR_TYPE", Value: 4}, @@ -51096,4 +51139,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "e41f453fb26afca010d939493df4d33eade9c188" +const revision_amd64 = "2deae7c161e774516e4b3b7bb4aaa68282e856bc" |
