There are two ways of doing this:
One.
DHCP client distribution list (disadvantage: The client list will be refreshed based on the time-out period, the general timeout is 12h)
Two.
Through the ARP cache list/proc/net/arp (disadvantage: The ARP refresh time to feel 30s, this time error can be accepted. )
The main explanation is another method:
Flags:0x0 is unable to find this host.
0X2 is the host also online.
IP address HW type Flags HW address Mask Device192.168.235.1 0x1 0x2 00:01:41:80: E3:e9 * eth0.210.1.1.191 0x1 0x0 c4:6a:b7:6f:7a:db * br-lan10.0.2.148 0x1 0x2 c0:3f:d5:31:d8:b2 * br-lan2
So according to this flags it is possible to infer that this host is not on the line. Statistics are not 0 just right.
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
OpenWrt reasoning on the number of client lines