All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
radius.h File Reference

Constants for the RADIUS protocol. More...

#include <freeradius-devel/rfc2865.h>
#include <freeradius-devel/rfc2866.h>
#include <freeradius-devel/rfc2867.h>
#include <freeradius-devel/rfc2868.h>
#include <freeradius-devel/rfc2869.h>
#include <freeradius-devel/rfc3162.h>
#include <freeradius-devel/rfc3576.h>
#include <freeradius-devel/rfc3580.h>
#include <freeradius-devel/rfc4072.h>
#include <freeradius-devel/rfc4372.h>
#include <freeradius-devel/rfc4675.h>
#include <freeradius-devel/rfc4818.h>
#include <freeradius-devel/rfc4849.h>
#include <freeradius-devel/rfc5580.h>
#include <freeradius-devel/rfc5607.h>
#include <freeradius-devel/rfc5904.h>
#include <freeradius-devel/rfc6572.h>
#include <freeradius-devel/rfc6677.h>
#include <freeradius-devel/rfc6911.h>
#include <freeradius-devel/rfc6929.h>
#include <freeradius-devel/rfc6930.h>
#include <freeradius-devel/rfc7055.h>
#include <freeradius-devel/rfc7155.h>
#include <freeradius-devel/rfc7268.h>
#include <freeradius-devel/attributes.h>
#include <freeradius-devel/freeradius.h>
#include <freeradius-devel/vqp.h>
+ Include dependency graph for radius.h:

Go to the source code of this file.

Macros

#define PW_ACCT_UDP_PORT   1813
 
#define PW_ACCT_UDP_PORT_ALT   1646
 
#define PW_ADMINISTRATIVE_USER   6
 
#define PW_AUTH_UDP_PORT   1812
 
#define PW_AUTH_UDP_PORT_ALT   1645
 
#define PW_AUTHENTICATE_ONLY   8
 
#define PW_AUTHORIZE_ONLY   17
 
#define PW_CALLBACK_FRAMED_USER   4
 
#define PW_CALLBACK_LOGIN_USER   3
 
#define PW_CALLBACK_NAS_PROMPT   9
 
#define PW_COA_UDP_PORT   3799
 
#define PW_CUI   PW_CHARGEABLE_USER_IDENTITY
 
#define PW_DIGEST_ATTRIBUTES   207
 
#define PW_DIGEST_RESPONSE   206
 
#define PW_FRAMED_USER   2
 
#define PW_LOGIN_USER   1
 
#define PW_MSCHAP2_CPW   27
 
#define PW_MSCHAP2_RESPONSE   25
 
#define PW_MSCHAP2_SUCCESS   26
 
#define PW_MSCHAP_CHALLENGE   11
 
#define PW_MSCHAP_CPW_1   3
 
#define PW_MSCHAP_CPW_2   4
 
#define PW_MSCHAP_ERROR   2
 
#define PW_MSCHAP_NT_ENC_PW   6
 
#define PW_MSCHAP_RESPONSE   1
 
#define PW_NAS_PROMPT_USER   7
 
#define PW_OUTBOUND_USER   5
 
#define PW_POD_UDP_PORT   1700
 
#define PW_PPP   1
 
#define PW_RADIUS_TLS_PORT   2083
 
#define PW_SLIP   2
 
#define PW_STATUS_ACCOUNTING_OFF   8
 
#define PW_STATUS_ACCOUNTING_ON   7
 
#define PW_STATUS_ALIVE   3
 
#define PW_STATUS_START   1
 
#define PW_STATUS_STOP   2
 
#define PW_TYPE_BAD
 
#define PW_TYPE_STRUCTURAL
 Match all non value types in case statements. More...
 
#define PW_TYPE_STRUCTURAL_EXCEPT_VSA
 Stupid hack for things which produce special error messages for VSAs. More...
 
#define PW_UKERNA_CHBIND   135
 
#define PW_UKERNA_TR_COI   136
 
#define VENDORPEC_FREERADIUS   11344
 
#define VENDORPEC_MICROSOFT   311
 
#define VENDORPEC_UKERNA   25622
 
#define VENDORPEC_WIMAX   24757
 

Enumerations

enum  PW_CODE {
  PW_CODE_UNDEFINED = 0,
  PW_CODE_ACCESS_REQUEST = 1,
  PW_CODE_ACCESS_ACCEPT = 2,
  PW_CODE_ACCESS_REJECT = 3,
  PW_CODE_ACCOUNTING_REQUEST = 4,
  PW_CODE_ACCOUNTING_RESPONSE = 5,
  PW_CODE_ACCOUNTING_STATUS = 6,
  PW_CODE_PASSWORD_REQUEST = 7,
  PW_CODE_PASSWORD_ACK = 8,
  PW_CODE_PASSWORD_REJECT = 9,
  PW_CODE_ACCOUNTING_MESSAGE = 10,
  PW_CODE_ACCESS_CHALLENGE = 11,
  PW_CODE_STATUS_SERVER = 12,
  PW_CODE_STATUS_CLIENT = 13,
  PW_CODE_DISCONNECT_REQUEST = 40,
  PW_CODE_DISCONNECT_ACK = 41,
  PW_CODE_DISCONNECT_NAK = 42,
  PW_CODE_COA_REQUEST = 43,
  PW_CODE_COA_ACK = 44,
  PW_CODE_COA_NAK = 45,
  PW_CODE_MAX = 255
}
 RADIUS packet codes. More...
 
enum  PW_TYPE {
  PW_TYPE_INVALID = 0,
  PW_TYPE_STRING,
  PW_TYPE_INTEGER,
  PW_TYPE_IPV4_ADDR,
  PW_TYPE_DATE,
  PW_TYPE_ABINARY,
  PW_TYPE_OCTETS,
  PW_TYPE_IFID,
  PW_TYPE_IPV6_ADDR,
  PW_TYPE_IPV6_PREFIX,
  PW_TYPE_BYTE,
  PW_TYPE_SHORT,
  PW_TYPE_ETHERNET,
  PW_TYPE_SIGNED,
  PW_TYPE_COMBO_IP_ADDR,
  PW_TYPE_TLV,
  PW_TYPE_EXTENDED,
  PW_TYPE_LONG_EXTENDED,
  PW_TYPE_EVS,
  PW_TYPE_INTEGER64,
  PW_TYPE_IPV4_PREFIX,
  PW_TYPE_VSA,
  PW_TYPE_VENDOR,
  PW_TYPE_TIMEVAL,
  PW_TYPE_BOOLEAN,
  PW_TYPE_COMBO_IP_PREFIX,
  PW_TYPE_DECIMAL,
  PW_TYPE_MAX
}
 Internal data types used within libfreeradius. More...
 

Detailed Description

Constants for the RADIUS protocol.

Id:
82d57c094ae5b11559ad82156fe22f18603683d6

Definition in file radius.h.

Macro Definition Documentation

#define PW_ACCT_UDP_PORT   1813

Definition at line 116 of file radius.h.

#define PW_ACCT_UDP_PORT_ALT   1646

Definition at line 117 of file radius.h.

#define PW_ADMINISTRATIVE_USER   6

Definition at line 178 of file radius.h.

#define PW_AUTH_UDP_PORT   1812

Definition at line 114 of file radius.h.

#define PW_AUTH_UDP_PORT_ALT   1645

Definition at line 115 of file radius.h.

#define PW_AUTHENTICATE_ONLY   8

Definition at line 180 of file radius.h.

#define PW_AUTHORIZE_ONLY   17

Definition at line 182 of file radius.h.

#define PW_CALLBACK_FRAMED_USER   4

Definition at line 176 of file radius.h.

#define PW_CALLBACK_LOGIN_USER   3

Definition at line 175 of file radius.h.

#define PW_CALLBACK_NAS_PROMPT   9

Definition at line 181 of file radius.h.

#define PW_COA_UDP_PORT   3799

Definition at line 120 of file radius.h.

#define PW_CUI   PW_CHARGEABLE_USER_IDENTITY

Definition at line 135 of file radius.h.

#define PW_DIGEST_ATTRIBUTES   207

Definition at line 165 of file radius.h.

#define PW_DIGEST_RESPONSE   206

Definition at line 164 of file radius.h.

#define PW_FRAMED_USER   2

Definition at line 174 of file radius.h.

#define PW_LOGIN_USER   1

Definition at line 173 of file radius.h.

#define PW_MSCHAP2_CPW   27

Definition at line 216 of file radius.h.

#define PW_MSCHAP2_RESPONSE   25

Definition at line 214 of file radius.h.

#define PW_MSCHAP2_SUCCESS   26

Definition at line 215 of file radius.h.

#define PW_MSCHAP_CHALLENGE   11

Definition at line 213 of file radius.h.

#define PW_MSCHAP_CPW_1   3

Definition at line 210 of file radius.h.

#define PW_MSCHAP_CPW_2   4

Definition at line 211 of file radius.h.

#define PW_MSCHAP_ERROR   2

Definition at line 209 of file radius.h.

#define PW_MSCHAP_NT_ENC_PW   6

Definition at line 212 of file radius.h.

#define PW_MSCHAP_RESPONSE   1

Definition at line 208 of file radius.h.

#define PW_NAS_PROMPT_USER   7

Definition at line 179 of file radius.h.

#define PW_OUTBOUND_USER   5

Definition at line 177 of file radius.h.

#define PW_POD_UDP_PORT   1700

Definition at line 118 of file radius.h.

#define PW_PPP   1

Definition at line 186 of file radius.h.

#define PW_RADIUS_TLS_PORT   2083

Definition at line 119 of file radius.h.

#define PW_SLIP   2

Definition at line 187 of file radius.h.

#define PW_STATUS_ACCOUNTING_OFF   8

Definition at line 195 of file radius.h.

#define PW_STATUS_ACCOUNTING_ON   7

Definition at line 194 of file radius.h.

#define PW_STATUS_ALIVE   3

Definition at line 193 of file radius.h.

#define PW_STATUS_START   1

Definition at line 191 of file radius.h.

#define PW_STATUS_STOP   2

Definition at line 192 of file radius.h.

#define PW_TYPE_BAD
Value:
Number of defined data types.
Definition: radius.h:59
Invalid (uninitialised) attribute type.
Definition: radius.h:32

Definition at line 62 of file radius.h.

#define PW_TYPE_STRUCTURAL
Value:
case PW_TYPE_VSA: \
Attribute that represents a vendor in the attribute tree.
Definition: radius.h:54
#define PW_TYPE_STRUCTURAL_EXCEPT_VSA
Stupid hack for things which produce special error messages for VSAs.
Definition: radius.h:71
Vendor-Specific, for RADIUS attribute 26.
Definition: radius.h:53

Match all non value types in case statements.

Note
This should be used for switch statements in printing and casting functions that need to deal with all types representing values

Definition at line 82 of file radius.h.

#define PW_TYPE_STRUCTURAL_EXCEPT_VSA
Value:
case PW_TYPE_EVS: \
Long extended attribute space attribute.
Definition: radius.h:49
Extended attribute space attribute.
Definition: radius.h:48
Contains nested attributes.
Definition: radius.h:47
Extended attribute, vendor specific.
Definition: radius.h:50

Stupid hack for things which produce special error messages for VSAs.

Note
This should be used for switch statements in printing and casting functions that need to deal with all types representing values

Definition at line 71 of file radius.h.

#define PW_UKERNA_CHBIND   135

Definition at line 222 of file radius.h.

#define PW_UKERNA_TR_COI   136

Definition at line 223 of file radius.h.

#define VENDORPEC_FREERADIUS   11344

Definition at line 201 of file radius.h.

#define VENDORPEC_MICROSOFT   311

Definition at line 200 of file radius.h.

#define VENDORPEC_UKERNA   25622

Definition at line 203 of file radius.h.

#define VENDORPEC_WIMAX   24757

Definition at line 202 of file radius.h.

Enumeration Type Documentation

enum PW_CODE

RADIUS packet codes.

Enumerator
PW_CODE_UNDEFINED 

Packet code has not been set.

PW_CODE_ACCESS_REQUEST 

RFC2865 - Access-Request.

PW_CODE_ACCESS_ACCEPT 

RFC2865 - Access-Accept.

PW_CODE_ACCESS_REJECT 

RFC2865 - Access-Reject.

PW_CODE_ACCOUNTING_REQUEST 

RFC2866 - Accounting-Request.

PW_CODE_ACCOUNTING_RESPONSE 

RFC2866 - Accounting-Response.

PW_CODE_ACCOUNTING_STATUS 

RFC3575 - Reserved.

PW_CODE_PASSWORD_REQUEST 

RFC3575 - Reserved.

PW_CODE_PASSWORD_ACK 

RFC3575 - Reserved.

PW_CODE_PASSWORD_REJECT 

RFC3575 - Reserved.

PW_CODE_ACCOUNTING_MESSAGE 

RFC3575 - Reserved.

PW_CODE_ACCESS_CHALLENGE 

RFC2865 - Access-Challenge.

PW_CODE_STATUS_SERVER 

RFC2865/RFC5997 - Status Server (request)

PW_CODE_STATUS_CLIENT 

RFC2865/RFC5997 - Status Server (response)

PW_CODE_DISCONNECT_REQUEST 

RFC3575/RFC5176 - Disconnect-Request.

PW_CODE_DISCONNECT_ACK 

RFC3575/RFC5176 - Disconnect-Ack (positive)

PW_CODE_DISCONNECT_NAK 

RFC3575/RFC5176 - Disconnect-Nak (not willing to perform)

PW_CODE_COA_REQUEST 

RFC3575/RFC5176 - CoA-Request.

PW_CODE_COA_ACK 

RFC3575/RFC5176 - CoA-Ack (positive)

PW_CODE_COA_NAK 

RFC3575/RFC5176 - CoA-Nak (not willing to perform)

PW_CODE_MAX 

Maximum possible code.

Definition at line 90 of file radius.h.

enum PW_TYPE

Internal data types used within libfreeradius.

Enumerator
PW_TYPE_INVALID 

Invalid (uninitialised) attribute type.

PW_TYPE_STRING 

String of printable characters.

PW_TYPE_INTEGER 

32 Bit unsigned integer.

PW_TYPE_IPV4_ADDR 

32 Bit IPv4 Address.

PW_TYPE_DATE 

32 Bit Unix timestamp.

PW_TYPE_ABINARY 

Ascend binary format a packed data structure.

PW_TYPE_OCTETS 

Raw octets.

PW_TYPE_IFID 

Interface ID.

PW_TYPE_IPV6_ADDR 

128 Bit IPv6 Address.

PW_TYPE_IPV6_PREFIX 

IPv6 Prefix.

PW_TYPE_BYTE 

8 Bit unsigned integer.

PW_TYPE_SHORT 

16 Bit unsigned integer.

PW_TYPE_ETHERNET 

48 Bit Mac-Address.

PW_TYPE_SIGNED 

32 Bit signed integer.

PW_TYPE_COMBO_IP_ADDR 

WiMAX IPv4 or IPv6 address depending on length.

PW_TYPE_TLV 

Contains nested attributes.

PW_TYPE_EXTENDED 

Extended attribute space attribute.

PW_TYPE_LONG_EXTENDED 

Long extended attribute space attribute.

PW_TYPE_EVS 

Extended attribute, vendor specific.

PW_TYPE_INTEGER64 

64 Bit unsigned integer.

PW_TYPE_IPV4_PREFIX 

IPv4 Prefix.

PW_TYPE_VSA 

Vendor-Specific, for RADIUS attribute 26.

PW_TYPE_VENDOR 

Attribute that represents a vendor in the attribute tree.

PW_TYPE_TIMEVAL 

Time value (struct timeval), only for config items.

PW_TYPE_BOOLEAN 

A truth value.

PW_TYPE_COMBO_IP_PREFIX 

WiMAX IPv4 or IPv6 address prefix depending on length.

PW_TYPE_DECIMAL 

Double precision floating point.

PW_TYPE_MAX 

Number of defined data types.

Definition at line 31 of file radius.h.