Module: netlink.route
Provides a limited implementation of rtnetlink.
class RouteController
Implements rtnetlink functions.
async with connect() -> RouteController
Creates a netlink socket for rtnetlink.
RouteController
async def update_link(family: int, type: int, index: int, flags: int, change: int,
attrs: dict[int, Any]) -> None
Updates the link layer attributes of the given interface (RTM_NEWLINK).
async def add_address(family: int, prefix: int, flags: int, scope: int, index: int, attrs: dict[int, Any]) -> None
Associates an IP address with the given interface (RTM_NEWADDR).
async def add_neighbor(family: int, index: int, state: int, flags: int, type: int, attrs: dict[int, Any]) -> None
Adds a neighbor table entry (RTM_NEWNEIGH).
async def remove_neighbor(family: int, index: int, state: int, flags: int, type: int, attrs: dict[int, Any]) -> None
Removes a neighbor table entry (RTM_DELNEIGH).