Route broadcast packets directly.

Closes #120.
v0.7.x
whitequark 2018-01-15 11:56:14 +00:00
parent 4a78b02fcf
commit 0ddd4c9001
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}