Skip to content

Commit

Permalink
Add debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
josephrhobbs committed Aug 1, 2024
1 parent faad21e commit 71dd766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proton_arp/src/arp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl ArpManager {
/// None.
///
/// # Returns
/// None.
/// A `ProtonResult<()>` indicating the status of the result.
pub async fn scan(&mut self) -> ProtonResult<()> {
let mut addresses = Vec::new();

Expand Down Expand Up @@ -90,6 +90,7 @@ impl ArpManager {
/// An `Option<Ipv4Addr>` containing to the provided MAC address, if available.
pub fn lookup_mac(&self, mac: MacAddr) -> Option<Ipv4Addr> {
for entry in self.cache() {
println!("{} == {} ?", entry.mac, mac);
if entry.mac == mac {
return Some (entry.ipv4);
}
Expand Down

0 comments on commit 71dd766

Please sign in to comment.