Ignore Ethernet frames for which we aren't a destination.
This commit is contained in:
parent
c9a2ac7a40
commit
d25eebc0ef
|
@ -119,6 +119,8 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
|
|||
let rx_buffer = try!(self.device.receive());
|
||||
let eth_frame = try!(EthernetFrame::new(&rx_buffer));
|
||||
|
||||
if eth_frame.dst_addr() != self.hardware_addr { return Ok(()) }
|
||||
|
||||
let mut response = Response::Nop;
|
||||
match eth_frame.ethertype() {
|
||||
// Snoop all ARP traffic, and respond to ARP packets directed at us.
|
||||
|
|
Loading…
Reference in New Issue