OUR SITES NetworkRADIUS FreeRADIUS

The DEFINE keyword

Syntax
DEFINE <name> <type> [<flags>]
Description

The DEFINE keyword defines a name and data type mapping for attributes which do not have numbers associated with them. These attributes are generally not sent in any protocol, or the underlying protocol is string-based, and not binary-packed data.

<name>

The name of the attribute. The name can contain alphanumeric characters, -, and _. The name should be short and descriptive.

The name of this DEFINE is defined only within the context of its parent attribute.

<type>

A data type.

<flags>

The flag field is optional, and is usually protocol-specific. See the FLAGS page for definitions of common flags.

Please see the protocol dictionaries for examples of these flags. Only the flags which are used in a protocol dictionary are valid, and those flags are only valid for that protocol dictionary.

Common flags and meanings

Name Description

enum=…​

For "leaf" types, copy VALUEs from an `ENUM or other attribute.

clone=…​

For tlv or 'struct' types, clone (or copy) child definitions from another attribute of the same type

Examples
DEFINE Foo string
DEFINE Bar ipv4addr