Kernel: Ignore IPv6 packets; log unknown Ethernet payload types

This commit is contained in:
Conrad Pankoff 2019-08-28 10:53:12 +10:00 committed by Andreas Kling
parent 4a4e66b2d0
commit 5f86a979ea
Notes: sideshowbarker 2024-07-19 12:28:24 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -126,6 +126,11 @@ void NetworkTask_main()
case EtherType::IPv4:
handle_ipv4(eth, packet.size());
break;
case EtherType::IPv6:
// ignore
break;
default:
kprintf("NetworkTask: Unknown ethernet type %#04x\n", eth.ether_type());
}
}
}