Skip to content

Commit

Permalink
Set processed_any when receiving any packet, even if it doesn't gener…
Browse files Browse the repository at this point in the history
…ate a reply.
  • Loading branch information
Dirbaio committed Jun 10, 2020
1 parent e44325b commit 00f7252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iface/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,9 @@ impl<'b, 'c, 'e, DeviceT> Interface<'b, 'c, 'e, DeviceT>
PrettyPrinter::<EthernetFrame<&[u8]>>::new("", &frame));
err
}).and_then(|response| {
processed_any = true;
match response {
Some(packet) => {
processed_any = true;
inner.dispatch(tx_token, timestamp, packet).map_err(|err| {
net_debug!("cannot dispatch response packet: {}", err);
err
Expand All @@ -682,9 +682,9 @@ impl<'b, 'c, 'e, DeviceT> Interface<'b, 'c, 'e, DeviceT>
// PrettyPrinter::<IpFrame<&[u8]>>::new("", &frame));
err
}).and_then(|response| {
processed_any = true;
match response {
Some(packet) => {
processed_any = true;
inner.dispatch_ip(medium, tx_token, timestamp, packet).map_err(|err| {
net_debug!("cannot dispatch response packet: {}", err);
err
Expand Down

0 comments on commit 00f7252

Please sign in to comment.