addr?

Synopsis

(addr? object)

Parameters

object

Description

This predicate returns #t if object is a MAC address, a MAC address range, an IP address or an IP address range (otherwise #f is returned).

Side Effects

Return Value

#t or #f

Example

> (addr? '10.0.0.0)
#t
> (addr? '::-::ffff)
#t
> (addr? 255)
#f
> (addr? '11:22:33:44:55:66)
#t
> (addr? '11:22:33:44:55:66-11:22:33:44:55:77)
#t
>