diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-05 01:36:04 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-22 00:02:36 -0800 |
commit | 3a1ff175e8ec737bd945bed6574052916693b5f6 (patch) | |
tree | bf055b26cd40ad0bfae5ad1f67e769113021f933 /Kernel/API | |
parent | 3080cc16ec954040e98b5c7a3f78cee50b9e5385 (diff) | |
download | serenity-3a1ff175e8ec737bd945bed6574052916693b5f6.zip |
Kernel: Define and return the ARPHRD_* device type in SIOCGIFHWADDR
The sa_family field in SIOCGIFHWADDR specifies the underlying network
interface's device type, this is hardcoded to generic "Ethernet" right
now, as we don't have a nice way to query it.
Diffstat (limited to 'Kernel/API')
-rw-r--r-- | Kernel/API/POSIX/net/if_arp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Kernel/API/POSIX/net/if_arp.h b/Kernel/API/POSIX/net/if_arp.h index ff5d08af73..5ac1555b17 100644 --- a/Kernel/API/POSIX/net/if_arp.h +++ b/Kernel/API/POSIX/net/if_arp.h @@ -21,6 +21,14 @@ struct arpreq { char arp_dev[16]; }; +#define ARPHRD_ETHER 1 +#define ARPHRD_IEEE802 6 +#define ARPHRD_SLIP 256 +#define ARPHRD_PPP 512 +#define ARPHRD_LOOPBACK 772 +#define ARPHRD_FDDI 774 +#define ARPHRD_IEEE802_TR 800 + #ifdef __cplusplus } #endif |