mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
Kernel/Net: Get the correct interface type in SIOCGIFHWADDR ioctl
When calling ioctl on a socket with SIOCGIFHWADDR, return the correct physical interface type. This value was previously hardcoded to ARPHRD_ETHER (Ethernet), and now can also return ARPHRD_LOOPBACK for the loopback adapter.
This commit is contained in:
parent
6f9b84a64a
commit
037744e62a
Notes:
sideshowbarker
2024-07-17 01:45:49 +09:00
Author: https://github.com/kuzux
Commit: 037744e62a
Pull-request: https://github.com/SerenityOS/serenity/pull/16990
Reviewed-by: https://github.com/supercomputer7 ✅
5 changed files with 19 additions and 1 deletions
|
@ -33,6 +33,7 @@ public:
|
|||
|
||||
virtual StringView purpose() const override { return class_name(); }
|
||||
virtual StringView device_name() const override { return "E1000"sv; }
|
||||
virtual Type adapter_type() const override { return Type::Ethernet; }
|
||||
|
||||
protected:
|
||||
static constexpr size_t rx_buffer_size = 8192;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue