Эх сурвалжийг харах

make fill method public #273

Closes: #274
Approved by: dlrobertson
Derk Bell 6 жил өмнө
parent
commit
08026a829e
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/iface/neighbor.rs

+ 1 - 1
src/iface/neighbor.rs

@@ -86,7 +86,7 @@ impl<'a> Cache<'a> {
         Cache { storage, gc_threshold, silent_until: Instant::from_millis(0) }
     }
 
-    pub(crate) fn fill(&mut self, protocol_addr: IpAddress, hardware_addr: EthernetAddress,
+    pub fn fill(&mut self, protocol_addr: IpAddress, hardware_addr: EthernetAddress,
                        timestamp: Instant) {
         debug_assert!(protocol_addr.is_unicast());
         debug_assert!(hardware_addr.is_unicast());