Route broadcast packets directly.

Closes #120.
This commit is contained in:
whitequark 2018-01-15 11:56:14 +00:00
parent 6e877f8501
commit cb5be48868

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