mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
Kernel: Ignore IPv6 packets; log unknown Ethernet payload types
This commit is contained in:
parent
4a4e66b2d0
commit
5f86a979ea
Notes:
sideshowbarker
2024-07-19 12:28:24 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/5f86a979eac Pull-request: https://github.com/SerenityOS/serenity/pull/499 Reviewed-by: https://github.com/awesomekling
@ -6,5 +6,6 @@ struct EtherType {
|
|||||||
enum : u16 {
|
enum : u16 {
|
||||||
ARP = 0x0806,
|
ARP = 0x0806,
|
||||||
IPv4 = 0x0800,
|
IPv4 = 0x0800,
|
||||||
|
IPv6 = 0x86DD,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -126,6 +126,11 @@ void NetworkTask_main()
|
|||||||
case EtherType::IPv4:
|
case EtherType::IPv4:
|
||||||
handle_ipv4(eth, packet.size());
|
handle_ipv4(eth, packet.size());
|
||||||
break;
|
break;
|
||||||
|
case EtherType::IPv6:
|
||||||
|
// ignore
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
kprintf("NetworkTask: Unknown ethernet type %#04x\n", eth.ether_type());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user