mirror of
https://github.com/smoltcp-rs/smoltcp.git
synced 2025-10-02 15:15:05 +00:00
parent
6e877f8501
commit
cb5be48868
@ -933,7 +933,7 @@ impl<'b, 'c> InterfaceInner<'b, 'c> {
|
|||||||
|
|
||||||
fn route(&self, addr: &IpAddress) -> Result<IpAddress> {
|
fn route(&self, addr: &IpAddress) -> Result<IpAddress> {
|
||||||
// Send directly.
|
// Send directly.
|
||||||
if self.in_same_network(addr) {
|
if self.in_same_network(addr) || addr.is_broadcast() {
|
||||||
return Ok(addr.clone())
|
return Ok(addr.clone())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user