ソースを参照

make fill method public #273

Closes: #274
Approved by: dlrobertson
Derk Bell 6 年 前
コミット
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());