(macaddr-in-range? macaddr macaddr-range)
This predicate returns #t if macaddr happens to be in the supplied MAC address range (including the lower and upper boundaries).
#t or #f
> (define range '11:11:11:11:11:11-AA:AA:AA:AA:AA:AA)
range
> (macaddr-in-range? '11:11:11:11:11:11 range)
#t
> (macaddr-in-range? '11:11:11:11:11:10 range)
#f
> (macaddr-in-range? '77:77:77:77:77:77 range)
#t
> (macaddr-in-range? 'AA:AA:AA:AA:AA:AA range)
#t
> (macaddr-in-range? 'AA:AA:AA:AA:AA:AB range)
#f
> (macaddr-in-range? 'BA:AA:AA:AA:AA:AA range)
#f
>