Add support for extended attributes: draft-dekok-radext-radius-extensions
[freeradius.git] / src / include / radius.h
index a519668..c6eaad2 100644 (file)
 #define PW_TYPE_IPV6PREFIX             8
 #define PW_TYPE_BYTE                   9
 #define PW_TYPE_SHORT                  10
+#define PW_TYPE_ETHERNET               11
+#define PW_TYPE_SIGNED                 12
+#define PW_TYPE_COMBO_IP               13
+#define PW_TYPE_TLV                    14
 
 #define        PW_AUTHENTICATION_REQUEST       1
 #define        PW_AUTHENTICATION_ACK           2
@@ -41,6 +45,7 @@
 #define PW_AUTH_UDP_PORT                1812
 #define PW_ACCT_UDP_PORT                1813
 #define PW_POD_UDP_PORT                        1700
+#define PW_COA_UDP_PORT                        3799
 
 #define        PW_USER_NAME                    1
 #define        PW_USER_PASSWORD                2
 #define PW_ARAP_CHALLENGE_RESPONSE     84
 #define PW_NAS_PORT_ID_STRING                  87
 #define PW_FRAMED_POOL                 88
+#define PW_CHARGEABLE_USER_IDENTITY    89
 #define PW_NAS_IPV6_ADDRESS            95
 
 #define PW_EXTENDED_ATTRIBUTE          192
 #define PW_PRE_ACCT_TYPE               1017
 #define PW_EAP_TYPE                    1018
 #define PW_EAP_TLS_REQUIRE_CLIENT_CERT 1019
-
+#define PW_CLIENT_SHORTNAME            1024
+#define PW_LOAD_BALANCE_KEY            1025
+#define PW_RAW_ATTRIBUTE               1026
+#define PW_TNC_VLAN_ACCESS             1027
+#define PW_TNC_VLAN_ISOLATE            1028
 #define PW_USER_CATEGORY               1029
 #define PW_GROUP_NAME                  1030
 #define PW_HUNTGROUP_NAME              1031
 #define PW_RESPONSE_PACKET_TYPE                1080
 #define PW_DIGEST_HA1                  1081
 #define PW_MS_CHAP_USE_NTLM_AUTH       1082
+#define PW_MS_CHAP_USER_NAME           1083
 #define PW_PACKET_SRC_IP_ADDRESS       1084
 #define PW_PACKET_DST_IP_ADDRESS       1085
 #define PW_PACKET_SRC_PORT             1086
 
 #define PW_PACKET_SRC_IPV6_ADDRESS     1097
 #define PW_PACKET_DST_IPV6_ADDRESS     1098
-#define PW_SERVER_IDENTITY             1099
+#define PW_VIRTUAL_SERVER              1099
 #define PW_CLEARTEXT_PASSWORD          1100
 #define PW_PASSWORD_WITH_HEADER                1101
+#define PW_SEND_COA_REQUEST            1107
+#define PW_MODULE_RETURN_CODE          1108
+#define PW_PACKET_ORIGINAL_TIMESTAMP           1109
+#define PW_HOME_SERVER_POOL            1111
+#define PW_RECV_COA_TYPE               1131
+#define PW_SEND_COA_TYPE               1132
+#define PW_MSCHAP_PASSWORD             1133
+#define PW_PACKET_TRANSMIT_COUNTER             1134
+#define PW_CACHED_SESSION_POLICY       1135
 
 /*
  *     Integer Translations
 /*
  *  Vendor Private Enterprise Codes
  */
+#define VENDORPEC_MICROSOFT    311
 #define VENDORPEC_FREERADIUS   11344
-
+#define VENDORPEC_WIMAX                24757
+#define VENDORPEC_EXTENDED     (1 << 25)
 
 /*
  * Vendor specific attributes
  */
-#define PW_FREERADIUS_PROXIED_TO       ((VENDORPEC_FREERADIUS<<16)|1)
+#define PW_FREERADIUS_PROXIED_TO       1
 
 /*
  *  Microsoft has vendor code 311.
  */
-#define PW_MSCHAP_RESPONSE     ((311 << 16) | 1)
-#define PW_MSCHAP_ERROR                ((311 << 16) | 2)
-#define PW_MSCHAP_CHALLENGE    ((311 << 16) | 11)
-#define PW_MSCHAP2_RESPONSE    ((311 << 16) | 25)
-#define PW_MSCHAP2_SUCCESS     ((311 << 16) | 26)
+#define PW_MSCHAP_RESPONSE     1
+#define PW_MSCHAP_ERROR                2
+#define PW_MSCHAP_CHALLENGE    11
+#define PW_MSCHAP2_RESPONSE    25
+#define PW_MSCHAP2_SUCCESS     26
 
 
 /*
 #define PW_ACCTTYPE                    1012
 #define PW_SESSTYPE                    1013
 #define PW_POSTAUTHTYPE                        1014
+
+/*
+ *     Cisco's VLAN Query Protocol.
+ */
+#define PW_VQP_PACKET_TYPE             0x2b00
+#define PW_VQP_ERROR_CODE              0x2b01
+#define PW_VQP_SEQUENCE_NUMBER         0x2b02
+
+#define PW_VQP_CLIENT_IP_ADDRESS        0x2c01
+#define PW_VQP_PORT_NAME               0x2c02
+#define PW_VQP_VLAN_NAME               0x2c03
+#define PW_VQP_DOMAIN_NAME             0x2c04
+#define PW_VQP_ETHERNET_FRAME          0x2c05
+#define PW_VQP_MAC                     0x2c06
+#define PW_VQP_UNKNOWN                 0x2c07
+#define PW_VQP_COOKIE                  0x2c08