Skip to content

Commit

Permalink
Fix a typo that broke ARP replies.
Browse files Browse the repository at this point in the history
whitequark committed Aug 22, 2017
1 parent 56ee8e5 commit 7e6e379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iface/ethernet.rs
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 7e6e379

Please sign in to comment.