Skip to content

Commit

Permalink
change(neigh): flush_cache to flush_neighbor_cache
Browse files Browse the repository at this point in the history
Signed-off-by: Thibaut Vandervelden <thvdveld@vub.be>
  • Loading branch information
thvdveld committed Jan 5, 2024
1 parent bd8917a commit 22f102c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iface/interface/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl Interface {
/// This function panics if any of the addresses are not unicast.
pub fn update_ip_addrs<F: FnOnce(&mut Vec<IpCidr, IFACE_MAX_ADDR_COUNT>)>(&mut self, f: F) {
f(&mut self.inner.ip_addrs);
InterfaceInner::flush_cache(&mut self.inner);
InterfaceInner::flush_neighbor_cache(&mut self.inner);
InterfaceInner::check_ip_addrs(&self.inner.ip_addrs)
}

Expand Down Expand Up @@ -1047,7 +1047,7 @@ impl InterfaceInner {
Err(DispatchError::NeighborPending)
}

fn flush_cache(&mut self) {
fn flush_neighbor_cache(&mut self) {
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
self.neighbor_cache.flush()
}
Expand Down

0 comments on commit 22f102c

Please sign in to comment.