class Callbacks

Defined at line 33 of file ../../src/connectivity/wlan/drivers/lib/components/cpp/include/wlan/drivers/components/network_port.h

Public Methods

void ~Callbacks ()

Defined at line 12 of file ../../src/connectivity/wlan/drivers/lib/components/cpp/network_port.cc

uint32_t PortGetMtu ()

Called when the network device needs to know the MTU of the port.

void MacGetAddress (fuchsia_net::MacAddress * out_mac)

Called when the network device needs to know the MAC address of the port.

void MacGetFeatures (fuchsia_hardware_network_driver::Features * out_features)

Called when the network device needs to know about the features supported by the port. See

the Features type for the various options.

void MacSetMode (fuchsia_hardware_network::wire::MacFilterMode mode, cpp20::span<const ::fuchsia_net::wire::MacAddress> multicast_macs)

Called when the network device needs to set one of the supported MAC filtering modes from the

features call. See features_t for the different modes. When multicast filtering is enabled

then the driver should only accept unicast frames and multicast frames from the MAC addresses

specified in multicast_macs.

void PortGetStatus (fuchsia_hardware_network::PortStatus * out_status)

Called when the device needs to retrieve the port status. This information is already filled

out by NetworkPort so implementing this method is optional but could be useful if the driver

wants to provide more specific or customized information.

Defined at line 40 of file ../../src/connectivity/wlan/drivers/lib/components/cpp/include/wlan/drivers/components/network_port.h

void PortRemoved ()

Called when a port is being removed from the network device. This is an optional method for

drivers that want to take extra action when this happens. This will NOT be called when

calling NetworkPort::RemovePort. It will only be called on unexpected port removals.

Defined at line 45 of file ../../src/connectivity/wlan/drivers/lib/components/cpp/include/wlan/drivers/components/network_port.h