]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ifconfig: ifieee80211: print bssid name
authorBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 21 Mar 2023 21:25:28 +0000 (21:25 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 23 Mar 2023 00:15:15 +0000 (00:15 +0000)
commite091be417add7e9130653462012a9ab2f4fb5269
tree0a8587f2b6b5a29a46ce078941fa2e7aacbe2070
parentb5d43972e3941d6c03d935dc423385f3c2178d68
ifconfig: ifieee80211: print bssid name

In certain setups (e.g., autonomous APs) it is extremly helpful to have
a way to map the BSSIDs to names for both normal status output as well
as the scan list.  This often allows a quicker overview than remembering
(or manually looking up) BSSIDs.
Call ether_ntohost() on the bssid and consult /etc/ethers
and print "(name)" after the bssid for the status output and "(name)"
at the end of the line after the IE list.

MFC after: 10 days
Reviewed by: adrian, cy
Differential Revision: https://reviews.freebsd.org/D39192
sbin/ifconfig/ifieee80211.c