The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Enumerations
defs.h File Reference

Constants for the RADIUS protocol. More...

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

Go to the source code of this file.

Macros

#define FR_ACCT_UDP_PORT   1813
 
#define FR_ACCT_UDP_PORT_ALT   1646
 
#define FR_ADMINISTRATIVE_USER   6
 
#define FR_AUTH_UDP_PORT   1812
 
#define FR_AUTH_UDP_PORT_ALT   1645
 
#define FR_AUTHENTICATE_ONLY   8
 
#define FR_AUTHORIZE_ONLY   17
 
#define FR_CALLBACK_FRAMED_USER   4
 
#define FR_CALLBACK_LOGIN_USER   3
 
#define FR_CALLBACK_NAS_PROMPT   9
 
#define FR_COA_UDP_PORT   3799
 
#define FR_CUI   FR_CHARGEABLE_USER_IDENTITY
 
#define FR_DIGEST_ATTRIBUTES   207
 
#define FR_DIGEST_RESPONSE   206
 
#define FR_FRAMED_USER   2
 
#define FR_LOGIN_USER   1
 
#define FR_MS_QUARANTINE_SOH   55
 
#define FR_MSCHAP2_CPW   27
 
#define FR_MSCHAP2_RESPONSE   25
 
#define FR_MSCHAP2_SUCCESS   26
 
#define FR_MSCHAP_CFR_1   3
 
#define FR_MSCHAP_CFR_2   4
 
#define FR_MSCHAP_CHALLENGE   11
 
#define FR_MSCHAP_ERROR   2
 
#define FR_MSCHAP_MPPE_ENCRYPTION_POLICY   7
 
#define FR_MSCHAP_MPPE_ENCRYPTION_TYPES   8
 
#define FR_MSCHAP_MPPE_RECV_KEY   17
 
#define FR_MSCHAP_MPPE_SEND_KEY   16
 
#define FR_MSCHAP_NT_ENC_PW   6
 
#define FR_MSCHAP_RESPONSE   1
 
#define FR_NAS_PROMPT_USER   7
 
#define FR_OUTBOUND_USER   5
 
#define FR_POD_UDP_PORT   3799
 
#define FR_PPP   1
 
#define FR_RADIUS_TLS_PORT   2083
 
#define FR_SLIP   2
 
#define FR_STATUS_ACCOUNTING_OFF   8
 
#define FR_STATUS_ACCOUNTING_ON   7
 
#define FR_STATUS_ALIVE   3
 
#define FR_STATUS_START   1
 
#define FR_STATUS_STOP   2
 
#define FR_UKERNA_CHBIND   135
 
#define FR_UKERNA_TR_COI   136
 
#define MAX_PACKET_LEN   4096
 
#define VENDORPEC_FREERADIUS   11344
 
#define VENDORPEC_MICROSOFT   311
 
#define VENDORPEC_UKERNA   25622
 
#define VENDORPEC_WIMAX   24757
 

Enumerations

enum  fr_radius_packet_code_t {
  FR_RADIUS_CODE_UNDEFINED = 0 ,
  FR_RADIUS_CODE_ACCESS_REQUEST = 1 ,
  FR_RADIUS_CODE_ACCESS_ACCEPT = 2 ,
  FR_RADIUS_CODE_ACCESS_REJECT = 3 ,
  FR_RADIUS_CODE_ACCOUNTING_REQUEST = 4 ,
  FR_RADIUS_CODE_ACCOUNTING_RESPONSE = 5 ,
  FR_RADIUS_CODE_ACCOUNTING_STATUS = 6 ,
  FR_RADIUS_CODE_PASSWORD_REQUEST = 7 ,
  FR_RADIUS_CODE_PASSWORD_ACK = 8 ,
  FR_RADIUS_CODE_PASSWORD_REJECT = 9 ,
  FR_RADIUS_CODE_ACCOUNTING_MESSAGE = 10 ,
  FR_RADIUS_CODE_ACCESS_CHALLENGE = 11 ,
  FR_RADIUS_CODE_STATUS_SERVER = 12 ,
  FR_RADIUS_CODE_STATUS_CLIENT = 13 ,
  FR_RADIUS_CODE_DISCONNECT_REQUEST = 40 ,
  FR_RADIUS_CODE_DISCONNECT_ACK = 41 ,
  FR_RADIUS_CODE_DISCONNECT_NAK = 42 ,
  FR_RADIUS_CODE_COA_REQUEST = 43 ,
  FR_RADIUS_CODE_COA_ACK = 44 ,
  FR_RADIUS_CODE_COA_NAK = 45 ,
  FR_RADIUS_CODE_PROTOCOL_ERROR = 52 ,
  FR_RADIUS_CODE_MAX = 53 ,
  FR_RADIUS_CODE_DO_NOT_RESPOND = 256
}
 RADIUS packet codes. More...
 

Detailed Description

Constants for the RADIUS protocol.

Id
21d3ab5f27f90e3b3e2289703513f509146f83a9

Definition in file defs.h.

Macro Definition Documentation

◆ FR_ACCT_UDP_PORT

#define FR_ACCT_UDP_PORT   1813

Definition at line 59 of file defs.h.

◆ FR_ACCT_UDP_PORT_ALT

#define FR_ACCT_UDP_PORT_ALT   1646

Definition at line 60 of file defs.h.

◆ FR_ADMINISTRATIVE_USER

#define FR_ADMINISTRATIVE_USER   6

Definition at line 123 of file defs.h.

◆ FR_AUTH_UDP_PORT

#define FR_AUTH_UDP_PORT   1812

Definition at line 57 of file defs.h.

◆ FR_AUTH_UDP_PORT_ALT

#define FR_AUTH_UDP_PORT_ALT   1645

Definition at line 58 of file defs.h.

◆ FR_AUTHENTICATE_ONLY

#define FR_AUTHENTICATE_ONLY   8

Definition at line 125 of file defs.h.

◆ FR_AUTHORIZE_ONLY

#define FR_AUTHORIZE_ONLY   17

Definition at line 127 of file defs.h.

◆ FR_CALLBACK_FRAMED_USER

#define FR_CALLBACK_FRAMED_USER   4

Definition at line 121 of file defs.h.

◆ FR_CALLBACK_LOGIN_USER

#define FR_CALLBACK_LOGIN_USER   3

Definition at line 120 of file defs.h.

◆ FR_CALLBACK_NAS_PROMPT

#define FR_CALLBACK_NAS_PROMPT   9

Definition at line 126 of file defs.h.

◆ FR_COA_UDP_PORT

#define FR_COA_UDP_PORT   3799

Definition at line 63 of file defs.h.

◆ FR_CUI

#define FR_CUI   FR_CHARGEABLE_USER_IDENTITY

Definition at line 83 of file defs.h.

◆ FR_DIGEST_ATTRIBUTES

#define FR_DIGEST_ATTRIBUTES   207

Definition at line 110 of file defs.h.

◆ FR_DIGEST_RESPONSE

#define FR_DIGEST_RESPONSE   206

Definition at line 109 of file defs.h.

◆ FR_FRAMED_USER

#define FR_FRAMED_USER   2

Definition at line 119 of file defs.h.

◆ FR_LOGIN_USER

#define FR_LOGIN_USER   1

Definition at line 118 of file defs.h.

◆ FR_MS_QUARANTINE_SOH

#define FR_MS_QUARANTINE_SOH   55

Definition at line 166 of file defs.h.

◆ FR_MSCHAP2_CPW

#define FR_MSCHAP2_CPW   27

Definition at line 165 of file defs.h.

◆ FR_MSCHAP2_RESPONSE

#define FR_MSCHAP2_RESPONSE   25

Definition at line 163 of file defs.h.

◆ FR_MSCHAP2_SUCCESS

#define FR_MSCHAP2_SUCCESS   26

Definition at line 164 of file defs.h.

◆ FR_MSCHAP_CFR_1

#define FR_MSCHAP_CFR_1   3

Definition at line 155 of file defs.h.

◆ FR_MSCHAP_CFR_2

#define FR_MSCHAP_CFR_2   4

Definition at line 156 of file defs.h.

◆ FR_MSCHAP_CHALLENGE

#define FR_MSCHAP_CHALLENGE   11

Definition at line 160 of file defs.h.

◆ FR_MSCHAP_ERROR

#define FR_MSCHAP_ERROR   2

Definition at line 154 of file defs.h.

◆ FR_MSCHAP_MPPE_ENCRYPTION_POLICY

#define FR_MSCHAP_MPPE_ENCRYPTION_POLICY   7

Definition at line 158 of file defs.h.

◆ FR_MSCHAP_MPPE_ENCRYPTION_TYPES

#define FR_MSCHAP_MPPE_ENCRYPTION_TYPES   8

Definition at line 159 of file defs.h.

◆ FR_MSCHAP_MPPE_RECV_KEY

#define FR_MSCHAP_MPPE_RECV_KEY   17

Definition at line 162 of file defs.h.

◆ FR_MSCHAP_MPPE_SEND_KEY

#define FR_MSCHAP_MPPE_SEND_KEY   16

Definition at line 161 of file defs.h.

◆ FR_MSCHAP_NT_ENC_PW

#define FR_MSCHAP_NT_ENC_PW   6

Definition at line 157 of file defs.h.

◆ FR_MSCHAP_RESPONSE

#define FR_MSCHAP_RESPONSE   1

Definition at line 153 of file defs.h.

◆ FR_NAS_PROMPT_USER

#define FR_NAS_PROMPT_USER   7

Definition at line 124 of file defs.h.

◆ FR_OUTBOUND_USER

#define FR_OUTBOUND_USER   5

Definition at line 122 of file defs.h.

◆ FR_POD_UDP_PORT

#define FR_POD_UDP_PORT   3799

Definition at line 61 of file defs.h.

◆ FR_PPP

#define FR_PPP   1

Definition at line 131 of file defs.h.

◆ FR_RADIUS_TLS_PORT

#define FR_RADIUS_TLS_PORT   2083

Definition at line 62 of file defs.h.

◆ FR_SLIP

#define FR_SLIP   2

Definition at line 132 of file defs.h.

◆ FR_STATUS_ACCOUNTING_OFF

#define FR_STATUS_ACCOUNTING_OFF   8

Definition at line 140 of file defs.h.

◆ FR_STATUS_ACCOUNTING_ON

#define FR_STATUS_ACCOUNTING_ON   7

Definition at line 139 of file defs.h.

◆ FR_STATUS_ALIVE

#define FR_STATUS_ALIVE   3

Definition at line 138 of file defs.h.

◆ FR_STATUS_START

#define FR_STATUS_START   1

Definition at line 136 of file defs.h.

◆ FR_STATUS_STOP

#define FR_STATUS_STOP   2

Definition at line 137 of file defs.h.

◆ FR_UKERNA_CHBIND

#define FR_UKERNA_CHBIND   135

Definition at line 172 of file defs.h.

◆ FR_UKERNA_TR_COI

#define FR_UKERNA_TR_COI   136

Definition at line 173 of file defs.h.

◆ MAX_PACKET_LEN

#define MAX_PACKET_LEN   4096

Definition at line 68 of file defs.h.

◆ VENDORPEC_FREERADIUS

#define VENDORPEC_FREERADIUS   11344

Definition at line 146 of file defs.h.

◆ VENDORPEC_MICROSOFT

#define VENDORPEC_MICROSOFT   311

Definition at line 145 of file defs.h.

◆ VENDORPEC_UKERNA

#define VENDORPEC_UKERNA   25622

Definition at line 148 of file defs.h.

◆ VENDORPEC_WIMAX

#define VENDORPEC_WIMAX   24757

Definition at line 147 of file defs.h.

Enumeration Type Documentation

◆ fr_radius_packet_code_t

RADIUS packet codes.

Enumerator
FR_RADIUS_CODE_UNDEFINED 

Packet code has not been set.

FR_RADIUS_CODE_ACCESS_REQUEST 

RFC2865 - Access-Request.

FR_RADIUS_CODE_ACCESS_ACCEPT 

RFC2865 - Access-Accept.

FR_RADIUS_CODE_ACCESS_REJECT 

RFC2865 - Access-Reject.

FR_RADIUS_CODE_ACCOUNTING_REQUEST 

RFC2866 - Accounting-Request.

FR_RADIUS_CODE_ACCOUNTING_RESPONSE 

RFC2866 - Accounting-Response.

FR_RADIUS_CODE_ACCOUNTING_STATUS 

RFC3575 - Reserved.

FR_RADIUS_CODE_PASSWORD_REQUEST 

RFC3575 - Reserved.

FR_RADIUS_CODE_PASSWORD_ACK 

RFC3575 - Reserved.

FR_RADIUS_CODE_PASSWORD_REJECT 

RFC3575 - Reserved.

FR_RADIUS_CODE_ACCOUNTING_MESSAGE 

RFC3575 - Reserved.

FR_RADIUS_CODE_ACCESS_CHALLENGE 

RFC2865 - Access-Challenge.

FR_RADIUS_CODE_STATUS_SERVER 

RFC2865/RFC5997 - Status Server (request)

FR_RADIUS_CODE_STATUS_CLIENT 

RFC2865/RFC5997 - Status Server (response)

FR_RADIUS_CODE_DISCONNECT_REQUEST 

RFC3575/RFC5176 - Disconnect-Request.

FR_RADIUS_CODE_DISCONNECT_ACK 

RFC3575/RFC5176 - Disconnect-Ack (positive)

FR_RADIUS_CODE_DISCONNECT_NAK 

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

FR_RADIUS_CODE_COA_REQUEST 

RFC3575/RFC5176 - CoA-Request.

FR_RADIUS_CODE_COA_ACK 

RFC3575/RFC5176 - CoA-Ack (positive)

FR_RADIUS_CODE_COA_NAK 

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

FR_RADIUS_CODE_PROTOCOL_ERROR 

RFC7930 - Protocol-Error (generic NAK)

FR_RADIUS_CODE_MAX 

Maximum possible protocol code.

FR_RADIUS_CODE_DO_NOT_RESPOND 

Special rcode to indicate we will not respond.

Definition at line 31 of file defs.h.