Hi All,
I am using arpa/inet.h and sysctl.h to get the ARP routing table. I need to fetch MAC addresses of devices connected to wifi.
Can I use the below code in iOS9 or is this not allowed anymore? Please advise.
int mib[] = {CTL_NET, PF_ROUTE, 0, AF_INET, NET_RT_FLAGS, RTF_LLINFO};
if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), NULL, &needed, NULL, 0) < 0)
{
NSLog(@"error in route-sysctl-estimate");
return nil;
}
Thanks for help.