From b97f1e694a1c096eac2f48c6e3ca47e8a3c4693c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 18 Feb 2020 08:30:00 +0100 Subject: sys/linux: add broadcast mac address Code in net/ethernet/eth.c does this: __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev) { ... if (unlikely(!ether_addr_equal_64bits(eth->h_dest, dev->dev_addr))) { if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) { if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) skb->pkt_type = PACKET_BROADCAST; else skb->pkt_type = PACKET_MULTICAST; } else { skb->pkt_type = PACKET_OTHERHOST; } } Multicast and broadcast are distinct and dev->broadcast seems to be ffffffffffff by default, so add another multicast mac address that will serve as PACKET_MULTICAST. --- sys/linux/gen/386.go | 5 ++++- sys/linux/gen/amd64.go | 5 ++++- sys/linux/gen/arm.go | 5 ++++- sys/linux/gen/arm64.go | 5 ++++- sys/linux/gen/mips64le.go | 5 ++++- sys/linux/gen/ppc64le.go | 5 ++++- sys/linux/vnet.txt | 1 + 7 files changed, 25 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 93224973a..063ad49c8 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -13762,6 +13762,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]"}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[netdev_addr_id]"}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 187}, 1, 6, 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}, }}}, @@ -13771,6 +13772,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 1}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 1}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 1}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 1}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -13780,6 +13782,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 2}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 2}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 2}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 2}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -75822,4 +75825,4 @@ var consts_386 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_386 = "7e933a8cce847a63d31163d1c6dfa926b9d707ce" +const revision_386 = "048b2c1dd68ff78a679b7678d5dbdacc5091b463" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index c261c2732..804a5cecf 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -13930,6 +13930,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]"}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[netdev_addr_id]"}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 187}, 1, 6, 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}, }}}, @@ -13939,6 +13940,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 1}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 1}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 1}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 1}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -13948,6 +13950,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 2}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 2}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 2}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 2}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -76782,4 +76785,4 @@ var consts_amd64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_amd64 = "05f868b16d6867c0842ba72cf5f4e62b61b93a05" +const revision_amd64 = "5ea6841043a49af538e0ce134b35082621264a9c" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 8a256e13e..ef5b8a61a 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -13618,6 +13618,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]"}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[netdev_addr_id]"}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 187}, 1, 6, 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}, }}}, @@ -13627,6 +13628,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 1}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 1}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 1}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 1}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -13636,6 +13638,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 2}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 2}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 2}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 2}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -75474,4 +75477,4 @@ var consts_arm = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm = "c2ed820e865dcb4c50b91174fcb8be4d26c9b5cb" +const revision_arm = "f8e905665dc2d3eedd34cc314b5564a973328464" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 190400a78..5e426fbfe 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -13739,6 +13739,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]"}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[netdev_addr_id]"}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 187}, 1, 6, 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}, }}}, @@ -13748,6 +13749,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 1}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 1}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 1}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 1}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -13757,6 +13759,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 2}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 2}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 2}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 2}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -76127,4 +76130,4 @@ var consts_arm64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm64 = "e1ea3f956cb5b2b67e3d815b820bb7948c83c955" +const revision_arm64 = "da2bece66ac9f4c9f750327d1aa1554cf008981c" diff --git a/sys/linux/gen/mips64le.go b/sys/linux/gen/mips64le.go index 9499536dc..940157aa5 100644 --- a/sys/linux/gen/mips64le.go +++ b/sys/linux/gen/mips64le.go @@ -13673,6 +13673,7 @@ var structDescs_mips64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]"}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[netdev_addr_id]"}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 187}, 1, 6, 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}, }}}, @@ -13682,6 +13683,7 @@ var structDescs_mips64le = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 1}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 1}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 1}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 1}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -13691,6 +13693,7 @@ var structDescs_mips64le = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 2}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 2}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 2}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 2}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -73750,4 +73753,4 @@ var consts_mips64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_mips64le = "819b0d0076710643840257c4e954ec1603839dd2" +const revision_mips64le = "98b6d5fd582ce33907ae355a9c1a60e481225883" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 8a0207c6b..7e1716603 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -13685,6 +13685,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "mac_addr_t[const[0xbb, int8]]"}, FldName: "remote"}, &StructType{Key: StructKey{Name: "mac_addr_t[netdev_addr_id]"}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 187}, 1, 6, 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}, }}}, @@ -13694,6 +13695,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 1}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 1}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 1}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 1}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -13703,6 +13705,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{"mac_addr_t[const[0xbb, int8]]", 2}, FldName: "remote"}, &StructType{Key: StructKey{"mac_addr_t[netdev_addr_id]", 2}, FldName: "dev"}, &ArrayType{TypeCommon{TypeName: "array", FldName: "broadcast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 255}, 1, 6, 6}, + &ArrayType{TypeCommon{TypeName: "array", FldName: "multicast", TypeSize: 6, ArgDir: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 2}}, Val: 187}, 1, 6, 6}, &StructType{Key: StructKey{"mac_addr_link_local", 2}, FldName: "link_local"}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "random", TypeSize: 6, ArgDir: 2}, Kind: 1, RangeBegin: 6, RangeEnd: 6}, }}}, @@ -76124,4 +76127,4 @@ var consts_ppc64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_ppc64le = "983c33d3c33e7722f2cf2de15b12fe03e0f7d9ba" +const revision_ppc64le = "5f553fa23fa841dc9d0a7913b85e843d870c7919" diff --git a/sys/linux/vnet.txt b/sys/linux/vnet.txt index edc38fdc5..7ad9421e7 100644 --- a/sys/linux/vnet.txt +++ b/sys/linux/vnet.txt @@ -62,6 +62,7 @@ mac_addr [ remote mac_addr_t[const[0xbb, int8]] dev mac_addr_t[netdev_addr_id] broadcast array[const[0xff, int8], 6] + multicast array[const[0xbb, int8], 6] link_local mac_addr_link_local random array[int8, 6] ] -- cgit mrf-deployment