Fix assert with any_ip + broadcast dst_addr. Fixes #533

This commit is contained in:
Dario Nieuwenhuis 2021-09-26 21:45:46 +02:00
parent f058a94b85
commit 7e4180b503
1 changed files with 1 additions and 0 deletions

View File

@ -1239,6 +1239,7 @@ impl<'a> InterfaceInner<'a> {
// Ignore IP packets not directed at us, or broadcast, or any of the multicast groups.
// If AnyIP is enabled, also check if the packet is routed locally.
if !self.any_ip
|| !ipv4_repr.dst_addr.is_unicast()
|| self
.routes
.lookup(&IpAddress::Ipv4(ipv4_repr.dst_addr), cx.now)