Skip to content

Commit

Permalink
Fix a typo in 5c3fc49.
Browse files Browse the repository at this point in the history
whitequark committed Jun 27, 2017
1 parent 5c3fc49 commit 5f16fc0
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
@@ -193,7 +193,7 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
let ipv4_packet = Ipv4Packet::new_checked(eth_frame.payload())?;
let ipv4_repr = Ipv4Repr::parse(&ipv4_packet)?;

if ipv4_repr.src_addr.is_unicast() {
if !ipv4_repr.src_addr.is_unicast() {
// Discard packets with non-unicast source addresses.
return Err(Error::Malformed)
}

0 comments on commit 5f16fc0

Please sign in to comment.