View Source VintageNet.Route.Properties (vintage_net v0.13.6)

This module contains helpers for updating the global routing properties.

These include:

  • ["available_interfaces"]
  • ["connection"]

Summary

Functions

Update the available_interfaces property based on the low level routes

Update the overall connection status

Update every interface's connection status

Functions

update_available_interfaces(routes)

@spec update_available_interfaces(VintageNet.Route.entries()) :: :ok

Update the available_interfaces property based on the low level routes

This function orders interfaces based on metric just like Linux does

update_best_connection(infos)

@spec update_best_connection(VintageNet.Route.Calculator.interface_infos()) :: :ok

Update the overall connection status

:disconnected < :lan < :internet

update_connection_status(infos)

@spec update_connection_status(VintageNet.Route.Calculator.interface_infos()) :: :ok

Update every interface's connection status