queue-get-macaddr-range!

Synopsis

(queue-get-macaddr-range! queue)

Parameters

  • queue

Description

This procedure retrieves the next available data item from the FIFO queue if it can be interpreted as a MAC address range (length == 12). If the next element has a different size or if the queue is empty, #f is returned.

Side Effects

The queue may be modified.

Return Value

A MAC address range or #f.

Example

> (define q (queue-create))
q
> (queue-put! q '11:22:33:44:55:66-11:22:33:44:55:77)
ok
> (queue-get-macaddr! q)
#f
> (queue-get-macaddr-range! q)
11:22:33:44:55:66-11:22:33:44:55:77
> (queue-length q)
0
>