Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.network.mac

PROTOCOLS

MacAddr

Defined in fuchsia.hardware.network.mac/network-mac.fidl

GetAddress

Gets this device's MAC address.

Request

NameType

Response

NameType
mac uint8[6]

GetFeatures

Gets this device's features.

Request

NameType

Response

NameType
features Features

SetMode

Sets this device's operating mode. mode is one of the variants in Mode, it's guaranteed to be one of the reported modes in this device's reported features. multicast_macs is only provided (though it can still be empty) when mode is MULTICAST_FILTER. multicast_macs is always guaranteed to be at most multicast_filter_count entries.

Request

NameType
mode Mode
multicast_macs vector<array>[64]

Response

NameType

STRUCTS

Features

Defined in fuchsia.hardware.network.mac/network-mac.fidl

Device features reported by MacAddr.GetFeatures.

NameTypeDescriptionDefault
multicast_filter_count uint32

The maximum number of multicast filtering entries available on this device. Implementations must set 0 if multicast filtering is not supported. Values will always be saturated to MAX_MAC_FILTER.

No default
supported_modes uint32

The filtering operating modes supported by this device. Bitfield of possible Mode values that can be passed to MacAddr.SetMode.

No default

ENUMS

Mode

Type: uint32

Defined in fuchsia.hardware.network.mac/network-mac.fidl

Device MAC filtering modes supported.

NameValueDescription
MULTICAST_FILTER 1

Device accepts only unicast frames addressed to its own unicast address, or multicast frames that are part of the multicast address filter list.

MULTICAST_PROMISCUOUS 2

Device accepts unicast frames addressed to its own unicast address, or any multicast frames.

PROMISCUOUS 4

Device accepts all frames.

CONSTANTS

NameValueTypeDescription
MAC_SIZE 6 uint64

The length of an IEEE 802 MAC Address, in bytes.

MAX_MAC_FILTER 64 uint64

The maximum number of multicast MAC addresses set to filter.