Fix loopback

This commit is contained in:
Jeremy Soller 2016-11-28 14:45:30 -07:00
commit 6b02a20028

View file

@ -37,6 +37,10 @@ impl Interface for EthernetInterface {
self.ip
}
fn routable(&self, dst: Ipv4Addr) -> bool {
dst != Ipv4Addr::LOOPBACK
}
fn arp_event(&mut self) -> Result<()> {
loop {
let mut bytes = [0; 65536];