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
  • 349
  • 2
  • 3
  • 10

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,649
  • 1
  • 19
  • 29
0

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

Paktwis Homayun
  • 190
  • 1
  • 17