Skip to content

Commit 7e6e379

Browse files
committedAug 22, 2017
Fix a typo that broke ARP replies.
1 parent 56ee8e5 commit 7e6e379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/iface/ethernet.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
160160
return Err(Error::Malformed)
161161
}
162162

163-
if operation == ArpOperation::Reply &&
163+
if operation == ArpOperation::Request &&
164164
self.has_protocol_addr(target_protocol_addr) {
165165
Ok(Response::Arp(ArpRepr::EthernetIpv4 {
166166
operation: ArpOperation::Reply,

0 commit comments

Comments
 (0)
Please sign in to comment.