Re: Retrieving MAC address from struct ifnet

2025-06-08 Thread Mouse
> I am trying to read MAC address of network interface in kernel from > member of struct ifnet: [...] > When I try to cycle through interfaces and I read first member of > if_hwdl (struct sockaddr *ifa_addr) the result for ethernet is: > sa_family: 18, sa_len: 17, > sa_data: 01 00 06 03 06 00 77

Re: Retrieving MAC address from struct ifnet

2025-06-08 Thread Martin Husemann
On Sun, Jun 08, 2025 at 04:00:22PM +0200, Beesdeckar wrote: > When I try to cycle through interfaces and I read first member of if_hwdl > (struct sockaddr *ifa_addr) the result for ethernet is: > > sa_family: 18, sa_len: 17, > sa_data: 01 00 06 03 06 00 77 6D 30 F0 DE F1 8F AD EB 00 00 If y