#[derive(Default, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[derive(Deserialize, Serialize)]
#[serde(default, deny_unknown_fields)]
pub struct DestinationMediaAccessControlAddressExtendedFlow
{
#[allow(missing_docs)]
#[serde(flatten)] pub destination_address: MaskedData<MediaAccessControlAddress>,
}
impl DestinationMediaAccessControlAddressExtendedFlow
{
fn parse_extended_media_access_control_flow_type(ethtool_flow_specification: ðtool_rx_flow_spec) -> Option<Self>
{
if ethtool_flow_specification.has_extended_media_access_control_flow_type()
{
Some
(
Self
{
destination_address: MaskedData::from_underlying_data_and_mask(ethtool_flow_specification.h_ext.h_dest, ethtool_flow_specification.m_ext.h_dest),
}
)
}
else
{
None
}
}
#[inline(always)]
fn data_and_masks(&self, h_ext: &mut ethtool_flow_ext, m_ext: &mut ethtool_flow_ext)
{
h_ext.h_dest = self.destination_address.underlying_data();
m_ext.h_dest = self.destination_address.underlying_mask();
}
}