class AttachedPort
Defined at line 35 of file ../../src/connectivity/network/drivers/network-device/device/session.h
A device port attached to a session.
This class provides safe access to device ports owned by a DeviceInterface.
Public Methods
void AssertParentControlLockShared (DeviceInterface & parent)
Helper function with TA annotations that bridges the gap between parent's locks and local
locking requirements; TA is not otherwise able to tell that the |parent| and |parent_| are the
same entity.
Defined at line 40 of file ../../src/connectivity/network/drivers/network-device/device/session.h
template <typename F>
auto WithPort (F f)
Calls provided function f with the attached port.
Defined at line 47 of file ../../src/connectivity/network/drivers/network-device/device/session.h
cpp20::span<const netdev::wire::FrameType> frame_types ()
Returns the Rx frame types we're subscribed to on this attached port.
Defined at line 52 of file ../../src/connectivity/network/drivers/network-device/device/session.h
bool SaltMatches (uint8_t salt)
Returns true if the attached port's salt matches the provided |salt|.
Defined at line 57 of file ../../src/connectivity/network/drivers/network-device/device/session.h
void AttachedPort (DeviceInterface * parent, DevicePort * port, cpp20::span<const netdev::wire::FrameType> frame_types)
Defined at line 61 of file ../../src/connectivity/network/drivers/network-device/device/session.h