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