diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-08 20:29:37 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-08 20:29:37 +0200 |
| commit | 09ca59bff75c57b48bfe11a42bddd147f5c52ef8 (patch) | |
| tree | a457e5ff482393ebbbb6856d4d9a0b3264a7588b /sys/linux | |
| parent | 145029013cfe07aea7c3e70276cd169bfee15be2 (diff) | |
sys/linux: add ip6t_srh1 description
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/gen/386.go | 32 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 33 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 32 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 33 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 33 | ||||
| -rw-r--r-- | sys/linux/netfilter_ipv6.txt | 19 | ||||
| -rw-r--r-- | sys/linux/netfilter_ipv6_386.const | 3 | ||||
| -rw-r--r-- | sys/linux/netfilter_ipv6_amd64.const | 3 | ||||
| -rw-r--r-- | sys/linux/netfilter_ipv6_arm.const | 3 | ||||
| -rw-r--r-- | sys/linux/netfilter_ipv6_arm64.const | 3 | ||||
| -rw-r--r-- | sys/linux/netfilter_ipv6_ppc64le.const | 3 |
11 files changed, 181 insertions, 16 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 2ca18e422..843b638a5 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -5525,8 +5525,24 @@ var structDescs_386 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + }}}, + {Key: StructKey{Name: "ip6t_srh1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_srh1", TypeSize: 108}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv6_types", FldName: "next_hdr", 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}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hdr_len", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "psid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "nsid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "lsid_addr"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "psid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "nsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "lsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, }}}, {Key: StructKey{Name: "ip6t_targets"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_targets", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "xt_unspec_targets"}, FldName: "unspec"}, @@ -5672,6 +5688,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "xt_entry_match[\"ipv6header\", ip6t_ipv6header_info, 0]"}, FldName: "ipv6header"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"hl\", ipt_ttl_info, 0]"}, FldName: "hl"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh, 0]"}, FldName: "srh"}, + &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, FldName: "srh1"}, }}}, {Key: StructKey{Name: "ipt_ECN_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipt_ECN_info", TypeSize: 3}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipt_ECN_op", FldName: "operation", TypeSize: 1}}, Vals: []uint64{1, 16, 32}}, @@ -18621,6 +18638,12 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "ip6t_srh"}, FldName: "data"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"srh\", ip6t_srh1, 1]", TypeSize: 140}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"srh\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "revision", TypeSize: 1}}, Val: 1}, + &StructType{Key: StructKey{Name: "ip6t_srh1"}, FldName: "data"}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "xt_entry_match[\"state\", xt_state_info, 0]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"state\", xt_state_info, 0]", TypeSize: 36}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"state\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, @@ -32078,7 +32101,10 @@ var consts_386 = []ConstValue{ {Name: "IP6T_SRH_LEN_EQ", Value: 2}, {Name: "IP6T_SRH_LEN_GT", Value: 4}, {Name: "IP6T_SRH_LEN_LT", Value: 8}, + {Name: "IP6T_SRH_LSID", Value: 8192}, {Name: "IP6T_SRH_NEXTHDR", Value: 1}, + {Name: "IP6T_SRH_NSID", Value: 4096}, + {Name: "IP6T_SRH_PSID", Value: 2048}, {Name: "IP6T_SRH_SEGS_EQ", Value: 16}, {Name: "IP6T_SRH_SEGS_GT", Value: 32}, {Name: "IP6T_SRH_SEGS_LT", Value: 64}, @@ -36598,4 +36624,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "020dc2b867a4cc5746da644d59b17c2cc8358bee" +const revision_386 = "d46aca292f246c1637fff96c494fefa3a5e37013" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index fa7e3fade..1f3c98f24 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -5624,8 +5624,24 @@ var structDescs_amd64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + }}}, + {Key: StructKey{Name: "ip6t_srh1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_srh1", TypeSize: 108}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv6_types", FldName: "next_hdr", 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}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hdr_len", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "psid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "nsid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "lsid_addr"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "psid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "nsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "lsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, }}}, {Key: StructKey{Name: "ip6t_targets"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_targets", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "xt_unspec_targets"}, FldName: "unspec"}, @@ -5784,6 +5800,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "xt_entry_match[\"ipv6header\", ip6t_ipv6header_info, 0]"}, FldName: "ipv6header"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"hl\", ipt_ttl_info, 0]"}, FldName: "hl"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh, 0]"}, FldName: "srh"}, + &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, FldName: "srh1"}, }}}, {Key: StructKey{Name: "ipt_ECN_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipt_ECN_info", TypeSize: 3}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipt_ECN_op", FldName: "operation", TypeSize: 1}}, Vals: []uint64{1, 16, 32}}, @@ -18975,6 +18992,13 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "ip6t_srh"}, FldName: "data"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 6}}, IsPad: true}, }, AlignAttr: 8}}, + {Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"srh\", ip6t_srh1, 1]", TypeSize: 144}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"srh\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "revision", TypeSize: 1}}, Val: 1}, + &StructType{Key: StructKey{Name: "ip6t_srh1"}, FldName: "data"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, + }, AlignAttr: 8}}, {Key: StructKey{Name: "xt_entry_match[\"state\", xt_state_info, 0]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"state\", xt_state_info, 0]", TypeSize: 40}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"state\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, @@ -32738,7 +32762,10 @@ var consts_amd64 = []ConstValue{ {Name: "IP6T_SRH_LEN_EQ", Value: 2}, {Name: "IP6T_SRH_LEN_GT", Value: 4}, {Name: "IP6T_SRH_LEN_LT", Value: 8}, + {Name: "IP6T_SRH_LSID", Value: 8192}, {Name: "IP6T_SRH_NEXTHDR", Value: 1}, + {Name: "IP6T_SRH_NSID", Value: 4096}, + {Name: "IP6T_SRH_PSID", Value: 2048}, {Name: "IP6T_SRH_SEGS_EQ", Value: 16}, {Name: "IP6T_SRH_SEGS_GT", Value: 32}, {Name: "IP6T_SRH_SEGS_LT", Value: 64}, @@ -37283,4 +37310,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "7d7779033df7d7e38b24995d04506aa8e09ceab1" +const revision_amd64 = "f037383b0a19c25306abdb73461ae4854a0b4964" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index d3fe8e05e..b80343c66 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -5530,8 +5530,24 @@ var structDescs_arm = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + }}}, + {Key: StructKey{Name: "ip6t_srh1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_srh1", TypeSize: 108}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv6_types", FldName: "next_hdr", 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}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hdr_len", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "psid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "nsid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "lsid_addr"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "psid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "nsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "lsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, }}}, {Key: StructKey{Name: "ip6t_targets"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_targets", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "xt_unspec_targets"}, FldName: "unspec"}, @@ -5689,6 +5705,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "xt_entry_match[\"ipv6header\", ip6t_ipv6header_info, 0]"}, FldName: "ipv6header"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"hl\", ipt_ttl_info, 0]"}, FldName: "hl"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh, 0]"}, FldName: "srh"}, + &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, FldName: "srh1"}, }}}, {Key: StructKey{Name: "ipt_ECN_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipt_ECN_info", TypeSize: 3}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipt_ECN_op", FldName: "operation", TypeSize: 1}}, Vals: []uint64{1, 16, 32}}, @@ -18474,6 +18491,12 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "ip6t_srh"}, FldName: "data"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, }, AlignAttr: 4}}, + {Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"srh\", ip6t_srh1, 1]", TypeSize: 140}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"srh\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "revision", TypeSize: 1}}, Val: 1}, + &StructType{Key: StructKey{Name: "ip6t_srh1"}, FldName: "data"}, + }, AlignAttr: 4}}, {Key: StructKey{Name: "xt_entry_match[\"state\", xt_state_info, 0]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"state\", xt_state_info, 0]", TypeSize: 36}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"state\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, @@ -31986,7 +32009,10 @@ var consts_arm = []ConstValue{ {Name: "IP6T_SRH_LEN_EQ", Value: 2}, {Name: "IP6T_SRH_LEN_GT", Value: 4}, {Name: "IP6T_SRH_LEN_LT", Value: 8}, + {Name: "IP6T_SRH_LSID", Value: 8192}, {Name: "IP6T_SRH_NEXTHDR", Value: 1}, + {Name: "IP6T_SRH_NSID", Value: 4096}, + {Name: "IP6T_SRH_PSID", Value: 2048}, {Name: "IP6T_SRH_SEGS_EQ", Value: 16}, {Name: "IP6T_SRH_SEGS_GT", Value: 32}, {Name: "IP6T_SRH_SEGS_LT", Value: 64}, @@ -36456,4 +36482,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "02404d4b022e4b9468be627d6b5ce09cf3ecedcf" +const revision_arm = "e9f3fb0ca9c9c5fb1ee8a8cdd20492a1128e200a" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 95120b904..e5d8d0fc7 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -5624,8 +5624,24 @@ var structDescs_arm64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + }}}, + {Key: StructKey{Name: "ip6t_srh1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_srh1", TypeSize: 108}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv6_types", FldName: "next_hdr", 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}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hdr_len", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "psid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "nsid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "lsid_addr"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "psid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "nsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "lsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, }}}, {Key: StructKey{Name: "ip6t_targets"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_targets", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "xt_unspec_targets"}, FldName: "unspec"}, @@ -5784,6 +5800,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "xt_entry_match[\"ipv6header\", ip6t_ipv6header_info, 0]"}, FldName: "ipv6header"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"hl\", ipt_ttl_info, 0]"}, FldName: "hl"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh, 0]"}, FldName: "srh"}, + &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, FldName: "srh1"}, }}}, {Key: StructKey{Name: "ipt_ECN_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipt_ECN_info", TypeSize: 3}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipt_ECN_op", FldName: "operation", TypeSize: 1}}, Vals: []uint64{1, 16, 32}}, @@ -18755,6 +18772,13 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "ip6t_srh"}, FldName: "data"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 6}}, IsPad: true}, }, AlignAttr: 8}}, + {Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"srh\", ip6t_srh1, 1]", TypeSize: 144}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"srh\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "revision", TypeSize: 1}}, Val: 1}, + &StructType{Key: StructKey{Name: "ip6t_srh1"}, FldName: "data"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, + }, AlignAttr: 8}}, {Key: StructKey{Name: "xt_entry_match[\"state\", xt_state_info, 0]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"state\", xt_state_info, 0]", TypeSize: 40}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"state\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, @@ -32208,7 +32232,10 @@ var consts_arm64 = []ConstValue{ {Name: "IP6T_SRH_LEN_EQ", Value: 2}, {Name: "IP6T_SRH_LEN_GT", Value: 4}, {Name: "IP6T_SRH_LEN_LT", Value: 8}, + {Name: "IP6T_SRH_LSID", Value: 8192}, {Name: "IP6T_SRH_NEXTHDR", Value: 1}, + {Name: "IP6T_SRH_NSID", Value: 4096}, + {Name: "IP6T_SRH_PSID", Value: 2048}, {Name: "IP6T_SRH_SEGS_EQ", Value: 16}, {Name: "IP6T_SRH_SEGS_GT", Value: 32}, {Name: "IP6T_SRH_SEGS_LT", Value: 64}, @@ -36669,4 +36696,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "d87e07e3aa11539e86a2c274e8ed54bc7ef66653" +const revision_arm64 = "3998017f34c65afc1232a273299d7e769cc740b4" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 99af759c7..7a887cfe3 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -5615,8 +5615,24 @@ var structDescs_ppc64le = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + }}}, + {Key: StructKey{Name: "ip6t_srh1"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_srh1", TypeSize: 108}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv6_types", FldName: "next_hdr", 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}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hdr_len", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "segs_left", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "last_entry", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "tag", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "psid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "nsid_addr"}, + &UnionType{Key: StructKey{Name: "ipv6_addr"}, FldName: "lsid_addr"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "psid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "nsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "lsid_msk", TypeSize: 16}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipv4_addr_mask_vals", TypeSize: 4}, BigEndian: true}, Vals: []uint64{0, 4278190080, 4294967040, 4294967295, 255}}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ip6t_srh_flags", FldName: "mt_invflags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, }}}, {Key: StructKey{Name: "ip6t_targets"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ip6t_targets", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "xt_unspec_targets"}, FldName: "unspec"}, @@ -5762,6 +5778,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "xt_entry_match[\"ipv6header\", ip6t_ipv6header_info, 0]"}, FldName: "ipv6header"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"hl\", ipt_ttl_info, 0]"}, FldName: "hl"}, &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh, 0]"}, FldName: "srh"}, + &StructType{Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, FldName: "srh1"}, }}}, {Key: StructKey{Name: "ipt_ECN_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipt_ECN_info", TypeSize: 3}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ipt_ECN_op", FldName: "operation", TypeSize: 1}}, Vals: []uint64{1, 16, 32}}, @@ -17808,6 +17825,13 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "ip6t_srh"}, FldName: "data"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 6}}, IsPad: true}, }, AlignAttr: 8}}, + {Key: StructKey{Name: "xt_entry_match[\"srh\", ip6t_srh1, 1]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"srh\", ip6t_srh1, 1]", TypeSize: 144}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"srh\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "revision", TypeSize: 1}}, Val: 1}, + &StructType{Key: StructKey{Name: "ip6t_srh1"}, FldName: "data"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, + }, AlignAttr: 8}}, {Key: StructKey{Name: "xt_entry_match[\"state\", xt_state_info, 0]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "xt_entry_match[\"state\", xt_state_info, 0]", TypeSize: 40}, Fields: []Type{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "match_size", TypeSize: 2}}, Buf: "parent"}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 29}, Kind: 2, Values: []string{"state\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, @@ -30647,7 +30671,10 @@ var consts_ppc64le = []ConstValue{ {Name: "IP6T_SRH_LEN_EQ", Value: 2}, {Name: "IP6T_SRH_LEN_GT", Value: 4}, {Name: "IP6T_SRH_LEN_LT", Value: 8}, + {Name: "IP6T_SRH_LSID", Value: 8192}, {Name: "IP6T_SRH_NEXTHDR", Value: 1}, + {Name: "IP6T_SRH_NSID", Value: 4096}, + {Name: "IP6T_SRH_PSID", Value: 2048}, {Name: "IP6T_SRH_SEGS_EQ", Value: 16}, {Name: "IP6T_SRH_SEGS_GT", Value: 32}, {Name: "IP6T_SRH_SEGS_LT", Value: 64}, @@ -34070,4 +34097,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "bfeabb36851c5973bd345bcf994d13b5791bbcc4" +const revision_ppc64le = "6c0b72a4509a302ee8c10faaff410c64128c3410" diff --git a/sys/linux/netfilter_ipv6.txt b/sys/linux/netfilter_ipv6.txt index 0c042c402..2f357534a 100644 --- a/sys/linux/netfilter_ipv6.txt +++ b/sys/linux/netfilter_ipv6.txt @@ -125,6 +125,7 @@ ipt6_matches [ ipv6header xt_entry_match["ipv6header", ip6t_ipv6header_info, 0] hl xt_entry_match["hl", ipt_ttl_info, 0] srh xt_entry_match["srh", ip6t_srh, 0] + srh1 xt_entry_match["srh", ip6t_srh1, 1] ] [varlen] ip6t_filter_matches [ @@ -226,7 +227,23 @@ ip6t_srh { mt_invflags flags[ip6t_srh_flags, int16] } -ip6t_srh_flags = IP6T_SRH_NEXTHDR, IP6T_SRH_LEN_EQ, IP6T_SRH_LEN_GT, IP6T_SRH_LEN_LT, IP6T_SRH_SEGS_EQ, IP6T_SRH_SEGS_GT, IP6T_SRH_SEGS_LT, IP6T_SRH_LAST_EQ, IP6T_SRH_LAST_GT, IP6T_SRH_LAST_LT, IP6T_SRH_TAG +ip6t_srh1 { + next_hdr flags[ipv6_types, int8] + hdr_len int8 + segs_left int8 + last_entry int8 + tag int16 + psid_addr ipv6_addr + nsid_addr ipv6_addr + lsid_addr ipv6_addr + psid_msk ipv6_addr_mask + nsid_msk ipv6_addr_mask + lsid_msk ipv6_addr_mask + mt_flags flags[ip6t_srh_flags, int16] + mt_invflags flags[ip6t_srh_flags, int16] +} + +ip6t_srh_flags = IP6T_SRH_NEXTHDR, IP6T_SRH_LEN_EQ, IP6T_SRH_LEN_GT, IP6T_SRH_LEN_LT, IP6T_SRH_SEGS_EQ, IP6T_SRH_SEGS_GT, IP6T_SRH_SEGS_LT, IP6T_SRH_LAST_EQ, IP6T_SRH_LAST_GT, IP6T_SRH_LAST_LT, IP6T_SRH_TAG, IP6T_SRH_PSID, IP6T_SRH_NSID, IP6T_SRH_LSID # TARGETS: diff --git a/sys/linux/netfilter_ipv6_386.const b/sys/linux/netfilter_ipv6_386.const index 65f1a3a91..4dffba120 100644 --- a/sys/linux/netfilter_ipv6_386.const +++ b/sys/linux/netfilter_ipv6_386.const @@ -55,7 +55,10 @@ IP6T_SRH_LAST_LT = 512 IP6T_SRH_LEN_EQ = 2 IP6T_SRH_LEN_GT = 4 IP6T_SRH_LEN_LT = 8 +IP6T_SRH_LSID = 8192 IP6T_SRH_NEXTHDR = 1 +IP6T_SRH_NSID = 4096 +IP6T_SRH_PSID = 2048 IP6T_SRH_SEGS_EQ = 16 IP6T_SRH_SEGS_GT = 32 IP6T_SRH_SEGS_LT = 64 diff --git a/sys/linux/netfilter_ipv6_amd64.const b/sys/linux/netfilter_ipv6_amd64.const index 17d38191e..6d70b3021 100644 --- a/sys/linux/netfilter_ipv6_amd64.const +++ b/sys/linux/netfilter_ipv6_amd64.const @@ -55,7 +55,10 @@ IP6T_SRH_LAST_LT = 512 IP6T_SRH_LEN_EQ = 2 IP6T_SRH_LEN_GT = 4 IP6T_SRH_LEN_LT = 8 +IP6T_SRH_LSID = 8192 IP6T_SRH_NEXTHDR = 1 +IP6T_SRH_NSID = 4096 +IP6T_SRH_PSID = 2048 IP6T_SRH_SEGS_EQ = 16 IP6T_SRH_SEGS_GT = 32 IP6T_SRH_SEGS_LT = 64 diff --git a/sys/linux/netfilter_ipv6_arm.const b/sys/linux/netfilter_ipv6_arm.const index 9226395d1..6f38403f3 100644 --- a/sys/linux/netfilter_ipv6_arm.const +++ b/sys/linux/netfilter_ipv6_arm.const @@ -55,7 +55,10 @@ IP6T_SRH_LAST_LT = 512 IP6T_SRH_LEN_EQ = 2 IP6T_SRH_LEN_GT = 4 IP6T_SRH_LEN_LT = 8 +IP6T_SRH_LSID = 8192 IP6T_SRH_NEXTHDR = 1 +IP6T_SRH_NSID = 4096 +IP6T_SRH_PSID = 2048 IP6T_SRH_SEGS_EQ = 16 IP6T_SRH_SEGS_GT = 32 IP6T_SRH_SEGS_LT = 64 diff --git a/sys/linux/netfilter_ipv6_arm64.const b/sys/linux/netfilter_ipv6_arm64.const index 5cb06d067..145e13c47 100644 --- a/sys/linux/netfilter_ipv6_arm64.const +++ b/sys/linux/netfilter_ipv6_arm64.const @@ -55,7 +55,10 @@ IP6T_SRH_LAST_LT = 512 IP6T_SRH_LEN_EQ = 2 IP6T_SRH_LEN_GT = 4 IP6T_SRH_LEN_LT = 8 +IP6T_SRH_LSID = 8192 IP6T_SRH_NEXTHDR = 1 +IP6T_SRH_NSID = 4096 +IP6T_SRH_PSID = 2048 IP6T_SRH_SEGS_EQ = 16 IP6T_SRH_SEGS_GT = 32 IP6T_SRH_SEGS_LT = 64 diff --git a/sys/linux/netfilter_ipv6_ppc64le.const b/sys/linux/netfilter_ipv6_ppc64le.const index a5f22e2ae..419a2a3aa 100644 --- a/sys/linux/netfilter_ipv6_ppc64le.const +++ b/sys/linux/netfilter_ipv6_ppc64le.const @@ -55,7 +55,10 @@ IP6T_SRH_LAST_LT = 512 IP6T_SRH_LEN_EQ = 2 IP6T_SRH_LEN_GT = 4 IP6T_SRH_LEN_LT = 8 +IP6T_SRH_LSID = 8192 IP6T_SRH_NEXTHDR = 1 +IP6T_SRH_NSID = 4096 +IP6T_SRH_PSID = 2048 IP6T_SRH_SEGS_EQ = 16 IP6T_SRH_SEGS_GT = 32 IP6T_SRH_SEGS_LT = 64 |
