Skip to content

Commit f25c66d

Browse files
committed
change(neigh): flush_cache to flush_neighbor_cache
Signed-off-by: Thibaut Vandervelden <[email protected]>
1 parent df94104 commit f25c66d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iface/interface/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ impl Interface {
338338
/// This function panics if any of the addresses are not unicast.
339339
pub fn update_ip_addrs<F: FnOnce(&mut Vec<IpCidr, IFACE_MAX_ADDR_COUNT>)>(&mut self, f: F) {
340340
f(&mut self.inner.ip_addrs);
341-
InterfaceInner::flush_cache(&mut self.inner);
341+
InterfaceInner::flush_neighbor_cache(&mut self.inner);
342342
InterfaceInner::check_ip_addrs(&self.inner.ip_addrs)
343343
}
344344

@@ -1047,7 +1047,7 @@ impl InterfaceInner {
10471047
Err(DispatchError::NeighborPending)
10481048
}
10491049

1050-
fn flush_cache(&mut self) {
1050+
fn flush_neighbor_cache(&mut self) {
10511051
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
10521052
self.neighbor_cache.flush()
10531053
}

0 commit comments

Comments
 (0)