Fix loopback
This commit is contained in:
parent
5bdcb832c0
commit
6b02a20028
1 changed files with 11 additions and 4 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue