[PATCH 3/3] Enable wildcards (*) in BSSID lists

Stefan Tomanek stefan.tomanek at wertarbyte.de
Mon Dec 15 09:55:40 EST 2014


Dies schrieb Johannes Berg (johannes at sipsolutions.net):

> On Mon, 2014-12-15 at 13:24 +0100, Stefan Tomanek wrote:
> > In many context it seems suitable not just to enumerate a group of mac
> > addresses, but to use wildcards (ca:ff:ee:*:*:*).
> 
> Maybe an actual mask notation like for IP addresses would be worthwhile:
> 
> ca:ff:ee:0:0:0/24
> ca:ff:ee:0:0:0/0:0:0:ff:ff:ff

I thought about that, but there are some issues:

A slash notation like "/24" can only mask out consecutive bytes; therefore,
something like '*:ca:ff:ee:d0:0d' would not be possible - e.g. my openwrt
router increments the first byte when using multiple BSS.

I also consider * as a wildcard quite concise and easy to use; but any other
format can be added to the parser quite easily should the need arise.


More information about the HostAP mailing list