vintage_net v0.2.1 VintageNet.Route.Properties
This module contains helpers for updating the global routing properties.
These include:
["available_interfaces"]
["connection"]
Link to this section Summary
Functions
Update the available_interfaces property based on the low level routes
Update the overall connection status
Link to this section Functions
Link to this function
update_available_interfaces(routes)
update_available_interfaces(routes)
update_available_interfaces(VintageNet.Route.Calculator.entries()) :: :ok
update_available_interfaces(VintageNet.Route.Calculator.entries()) :: :ok
Update the available_interfaces property based on the low level routes
This function orders interfaces based on metric just like Linux does
Link to this function
update_best_connection(infos)
update_best_connection(infos)
update_best_connection(VintageNet.Route.Calculator.interface_infos()) :: :ok
update_best_connection(VintageNet.Route.Calculator.interface_infos()) :: :ok
Update the overall connection status
:disconnected
< :lan
< :internet