#define PW_TYPE_IFID 6
#define PW_TYPE_IPV6ADDR 7
#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
#define PW_DISCONNECT_REQUEST 40
#define PW_DISCONNECT_ACK 41
#define PW_DISCONNECT_NAK 42
-#define PW_COF_REQUEST 43
-#define PW_COF_ACK 44
-#define PW_COF_NAK 45
+#define PW_COA_REQUEST 43
+#define PW_COA_ACK 44
+#define PW_COA_NAK 45
#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_DIGEST_RESPONSE 206
#define PW_DIGEST_ATTRIBUTES 207
#define PW_FALL_THROUGH 500
-#define PW_ADD_PORT_TO_IP_ADDRESS 501
#define PW_EXEC_PROGRAM 502
#define PW_EXEC_PROGRAM_WAIT 503
#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_DST_PORT 1087
#define PW_PACKET_AUTHENTICATION_VECTOR 1088
#define PW_TIME_OF_DAY 1089
+#define PW_REQUEST_PROCESSING_STAGE 1090
+#define PW_CACHE_NO_CACHING 1091
+#define PW_CACHE_DELETE_CACHE 1092
#define PW_SHA_PASSWORD 1093
#define PW_SSHA_PASSWORD 1094
#define PW_MD5_PASSWORD 1095
#define PW_SMD5_PASSWORD 1096
+#define PW_PACKET_SRC_IPV6_ADDRESS 1097
+#define PW_PACKET_DST_IPV6_ADDRESS 1098
+#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