Skip to content

Commit b2bc796

Browse files
committed
fix(ipv6): allow loopback destination address
1 parent cc1b038 commit b2bc796

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/iface/interface/ipv6.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ impl InterfaceInner {
5353
(ipv6_repr.next_header, ipv6_packet.payload())
5454
};
5555

56-
if !self.has_ip_addr(ipv6_repr.dst_addr) && !self.has_multicast_group(ipv6_repr.dst_addr) {
56+
if !self.has_ip_addr(ipv6_repr.dst_addr)
57+
&& !self.has_multicast_group(ipv6_repr.dst_addr)
58+
&& !ipv6_repr.dst_addr.is_loopback()
59+
{
5760
net_trace!("packet IP address not for this interface");
5861
return None;
5962
}

0 commit comments

Comments
 (0)