浏览代码

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());