1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

Kernel: Add SIOCGIFHWADDR ioctl to get the MAC address of an adapter

This commit is contained in:
Andreas Kling 2019-10-02 18:20:11 +02:00
parent 345086ab72
commit 3f2c1a2e3d
4 changed files with 15 additions and 0 deletions

View file

@ -414,6 +414,7 @@ struct ifreq {
struct sockaddr ifru_addr;
struct sockaddr ifru_dstaddr;
struct sockaddr ifru_broadaddr;
struct sockaddr ifru_hwaddr;
short ifru_flags;
int ifru_metric;
int64_t ifru_vnetid;
@ -435,4 +436,5 @@ struct ifreq {
#define ifr_data ifr_ifru.ifru_data // for use by interface
#define ifr_index ifr_ifru.ifru_index // interface index
#define ifr_llprio ifr_ifru.ifru_metric // link layer priority
#define ifr_hwaddr ifr_ifru.ifru_hwaddr // MAC address
};