. "$BST_LIB"
# Each net tool is independent — absent → skip, present-but-broken → not ok.
if command -v ethtool >/dev/null 2>&1; then
  check_out net/ethtool "ethtool" sh -c 'ethtool --version 2>&1'
else bst_skip net/ethtool "ethtool not installed on this image"; fi

if command -v ip >/dev/null 2>&1; then
  check_out net/ip-version "iproute2" sh -c 'ip -V 2>&1'
  check_out net/ip-link-lo "lo"       sh -c 'ip link show lo 2>&1'
else bst_skip net/ip "iproute2 ip not installed on this image"; fi

if command -v ss >/dev/null 2>&1; then
  check_out net/ss "iproute2" sh -c 'ss --version 2>&1'
else bst_skip net/ss "iproute2 ss not installed on this image"; fi

if command -v mtr >/dev/null 2>&1; then
  check_out net/mtr "mtr" sh -c 'mtr --version 2>&1'
else bst_skip net/mtr "mtr not installed on this image"; fi

if command -v tcpdump >/dev/null 2>&1; then
  check_out net/tcpdump "libpcap" sh -c 'tcpdump --version 2>&1'
else bst_skip net/tcpdump "tcpdump not installed on this image"; fi
