1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

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.
This commit is contained in:
Idan Horowitz 2021-12-05 01:36:04 +02:00 committed by Brian Gianforcaro
parent 3080cc16ec
commit 3a1ff175e8
2 changed files with 9 additions and 1 deletions

View file

@ -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