Skip to content

Commit 3fff475

Browse files
committedSep 1, 2017
An unaddressable egress packet should not be a reportable error.
1 parent dc94c35 commit 3fff475

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/iface/ethernet.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
184184
&mut Socket::__Nonexhaustive => unreachable!()
185185
};
186186
match (device_result, socket_result) {
187-
(Err(Error::Exhausted), Ok(())) => break, // nowhere to transmit
188-
(Ok(()), Err(Error::Exhausted)) => (), // nothing to transmit
187+
(Err(Error::Unaddressable), _) => break, // no one to transmit to
188+
(Err(Error::Exhausted), _) => break, // nowhere to transmit
189+
(Ok(()), Err(Error::Exhausted)) => (), // nothing to transmit
189190
(Err(err), _) | (_, Err(err)) => {
190191
net_debug!("cannot dispatch egress packet: {}", err);
191192
return Err(err)

0 commit comments

Comments
 (0)
Please sign in to comment.