Skip to content

Commit

Permalink
fix(ipv6): allow loopback destination address
Browse files Browse the repository at this point in the history
  • Loading branch information
thvdveld committed Nov 29, 2023
1 parent cc1b038 commit b2bc796
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/iface/interface/ipv6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ impl InterfaceInner {
(ipv6_repr.next_header, ipv6_packet.payload())
};

if !self.has_ip_addr(ipv6_repr.dst_addr) && !self.has_multicast_group(ipv6_repr.dst_addr) {
if !self.has_ip_addr(ipv6_repr.dst_addr)
&& !self.has_multicast_group(ipv6_repr.dst_addr)
&& !ipv6_repr.dst_addr.is_loopback()
{
net_trace!("packet IP address not for this interface");
return None;
}
Expand Down

0 comments on commit b2bc796

Please sign in to comment.