macaddr-in-range?

Synopsis

(macaddr-in-range? macaddr macaddr-range)

Parameters

  • macaddr
  • macaddr-range

Description

This predicate returns #t if macaddr happens to be in the supplied MAC address range (including the lower and upper boundaries).

Side Effects

Return Value

#t or #f

Example

> (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
>