Skip to content

Fix self_device.interface.link.media

  • Add a new wrapper for if_getmediatype that uses the parent ifname in addition to the ifname to find the media type. This is required to correctly determine the media type of wds0.4.1 interface. The function if_getmediatype relies on /sys/class/net/$ifname/phy80211 symlink being present, but it is not present for wds0.4.1, causing it to be reported as ETH.
  • Update the self_device.iface.link.media from link metrics message.
  • Update build-link-metric to use the media type from i1905_interface rather than the neighbor link. The media type of neighbor link would be wrong if that link was added from a topology discovery message or a topology response message (media is left as zero in these cases)

Merge request reports