Fix a typo that broke ARP replies.

This commit is contained in:
whitequark 2017-08-22 07:44:43 +00:00
parent f9c6c0249b
commit 7c9a072dd2
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
return Err(Error::Malformed)
}
if operation == ArpOperation::Reply &&
if operation == ArpOperation::Request &&
self.has_protocol_addr(target_protocol_addr) {
Ok(Response::Arp(ArpRepr::EthernetIpv4 {
operation: ArpOperation::Reply,