Struct rtnetlink::NeighbourHandle
source · pub struct NeighbourHandle(_);
Implementations§
source§impl NeighbourHandle
impl NeighbourHandle
pub fn new(handle: Handle) -> Self
sourcepub fn get(&self) -> NeighbourGetRequest
pub fn get(&self) -> NeighbourGetRequest
List neighbour entries (equivalent to ip neighbour show
)
sourcepub fn add(&self, index: u32, destination: IpAddr) -> NeighbourAddRequest
pub fn add(&self, index: u32, destination: IpAddr) -> NeighbourAddRequest
Add a new neighbour entry (equivalent to ip neighbour add
)
sourcepub fn add_bridge(&self, index: u32, lla: &[u8]) -> NeighbourAddRequest
pub fn add_bridge(&self, index: u32, lla: &[u8]) -> NeighbourAddRequest
Add a new fdb entry (equivalent to bridge fdb add
)
sourcepub fn del(&self, message: NeighbourMessage) -> NeighbourDelRequest
pub fn del(&self, message: NeighbourMessage) -> NeighbourDelRequest
Delete a neighbour entry (equivalent to ip neighbour delete
)