From 36e37bdf6ce1243e86e31d5cc17d6468aa3847d0 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 13 Jan 2018 17:53:41 +0100 Subject: sys/linux: add broadcast/multicast mac addresses --- sys/linux/ppc64le.go | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'sys/linux/ppc64le.go') diff --git a/sys/linux/ppc64le.go b/sys/linux/ppc64le.go index 223012223..171b24d1b 100644 --- a/sys/linux/ppc64le.go +++ b/sys/linux/ppc64le.go @@ -3621,6 +3621,8 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xaa, int8]]"}, FldName: "local"}, &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]"}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[int8[10:23]]"}, FldName: "dev"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 255}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, + &StructType{Key: StructKey{Name: "mac_addr_link_local"}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, {Key: StructKey{Name: "mac_addr", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "mac_addr", TypeSize: 6, ArgDir: 1}, Fields: []Type{ @@ -3628,6 +3630,8 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xaa, int8]]", Dir: 1}, FldName: "local"}, &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]", Dir: 1}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[int8[10:23]]", Dir: 1}, FldName: "dev"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 1}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 255}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, + &StructType{Key: StructKey{Name: "mac_addr_link_local", Dir: 1}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 1}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, {Key: StructKey{Name: "mac_addr", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "mac_addr", TypeSize: 6, ArgDir: 2}, Fields: []Type{ @@ -3635,8 +3639,34 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xaa, int8]]", Dir: 2}, FldName: "local"}, &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]", Dir: 2}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[int8[10:23]]", Dir: 2}, FldName: "dev"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 2}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 255}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, + &StructType{Key: StructKey{Name: "mac_addr_link_local", Dir: 2}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 2}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, + {Key: StructKey{Name: "mac_addr_link_local"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "mac_addr_link_local", TypeSize: 6}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a0", TypeSize: 1}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a1", TypeSize: 1}}, Val: 128}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a2", TypeSize: 1}}, Val: 194}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a3", TypeSize: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a4", TypeSize: 1}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mac_addr_link_local_values", FldName: "a5", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 3, 14}}, + }}}, + {Key: StructKey{Name: "mac_addr_link_local", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "mac_addr_link_local", TypeSize: 6, ArgDir: 1}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a0", TypeSize: 1, ArgDir: 1}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a1", TypeSize: 1, ArgDir: 1}}, Val: 128}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a2", TypeSize: 1, ArgDir: 1}}, Val: 194}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a3", TypeSize: 1, ArgDir: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a4", TypeSize: 1, ArgDir: 1}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mac_addr_link_local_values", FldName: "a5", TypeSize: 1, ArgDir: 1}}, Vals: []uint64{0, 1, 2, 3, 14}}, + }}}, + {Key: StructKey{Name: "mac_addr_link_local", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "mac_addr_link_local", TypeSize: 6, ArgDir: 2}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a0", TypeSize: 1, ArgDir: 2}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a1", TypeSize: 1, ArgDir: 2}}, Val: 128}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a2", TypeSize: 1, ArgDir: 2}}, Val: 194}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a3", TypeSize: 1, ArgDir: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a4", TypeSize: 1, ArgDir: 2}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mac_addr_link_local_values", FldName: "a5", TypeSize: 1, ArgDir: 2}}, Vals: []uint64{0, 1, 2, 3, 14}}, + }}}, {Key: StructKey{Name: "mac_addr_t[const[0xaa, int8]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "mac_addr_t[const[0xaa, int8]]", TypeSize: 6}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "a0", TypeSize: 4}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 170}, Kind: 1, RangeBegin: 4, RangeEnd: 4}, &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a1", TypeSize: 1}}, ValuesPerProc: 1}, @@ -18612,4 +18642,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "80bcee09a665cc405fbeadcf099d99070b7093c9" +const revision_ppc64le = "02c3e8bba654fccfdbd358279fb2cc7a03fb4118" -- cgit mrf-deployment