I am working on openwrt and is configured as a router. My application has to get the connected device's name and MAC ID. I referred to this link : To get MAC ID
Can anyone suggest me how to get device's name in C?
One of the requested information source is DHCP leases. You could for instance parse the /tmp/dhcp.leases file.
Use airodump-ng with your OpenWRT router. Here is some documentation on how to use it: Airodump OpenWRT