0

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?

Community
  • 1
  • 1
user12345
  • 357
  • 2
  • 3
  • 11

2 Answers2

0

One of the requested information source is DHCP leases. You could for instance parse the /tmp/dhcp.leases file.

Oleksandr Kravchuk
  • 5,963
  • 1
  • 20
  • 31
0

Use airodump-ng with your OpenWRT router. Here is some documentation on how to use it: Airodump OpenWRT

Paktwis Homayun
  • 300
  • 3
  • 17