OpenWrt reasoning on the number of client lines

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.