Skip to content

Commit

Permalink
provide a mac accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev authored and davidv1992 committed Oct 25, 2023
1 parent bbae0ab commit c4f2c12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ impl InterfaceData {
.iter()
.any(|socket_addr| socket_addr.ip() == address)
}

pub fn mac(&self) -> Option<[u8; 6]> {
self.mac
}
}

struct InterfaceIterator {
Expand Down

0 comments on commit c4f2c12

Please sign in to comment.