summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2024-06-29 07:19:19 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2024-06-29 07:19:19 +0000
commit6204e946e9e696c39d1996b29aef640d5ba5eb65 (patch)
tree91a84ac6b8deb80dbd5d867cb661e62ace136553
parentaae6c42a8d6db76cdf9f92bb817266cb1dd3bf4c (diff)
Add variables for RFC 5176 Error Cause.
-rw-r--r--lib/libradius/radius.h41
1 files changed, 40 insertions, 1 deletions
diff --git a/lib/libradius/radius.h b/lib/libradius/radius.h
index 2581ce7a7e0..f496133680f 100644
--- a/lib/libradius/radius.h
+++ b/lib/libradius/radius.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: radius.h,v 1.5 2024/06/29 00:53:56 yasuoka Exp $ */
+/* $OpenBSD: radius.h,v 1.6 2024/06/29 07:19:18 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -150,6 +150,9 @@
#define RADIUS_TYPE_FRAMED_IPV6_ROUTE 99
#define RADIUS_TYPE_FRAMED_IPV6_POOL 100
+/* RFC 5176 3.5. Error-Cause */
+#define RADIUS_TYPE_ERROR_CAUSE 101
+
/* RFC 6911 3. Attributes */
#define RADIUS_TYPE_FRAMED_IPV6_ADDRESS 168
#define RADIUS_TYPE_DNS_SERVER_IPV6_ADDRESS 169
@@ -327,6 +330,42 @@
#define RADIUS_TUNNEL_MEDIUM_TYPE_E163 7 /* E.163 (POTS) */
#define RADIUS_TUNNEL_MEDIUM_TYPE_E164 8 /* E.164 (SMDS, Frame
* Relay, ATM) */
+/* RFC 5167 3.5. Error-Cause */
+/* Residual Session Context Removed */
+#define RADIUS_ERROR_CAUSE_RESIDUAL_SESSION_REMOVED 201
+/* Invalid EAP Packet (Ignored) */
+#define RADIUS_ERROR_CAUSE_INVALID_EAP_PACKET 202
+/* Unsupported Attribute */
+#define RADIUS_ERROR_CAUSE_UNSUPPORTED_ATTRIBUTE 401
+/* Missing Attribute */
+#define RADIUS_ERROR_CAUSE_MISSING_ATTRIBUTE 402
+/* NAS Identification Mismatch */
+#define RADIUS_ERROR_CAUSE_NAS_IDENTIFICATION_MISMATCH 403
+/* Invalid Request */
+#define RADIUS_ERROR_CAUSE_INVALID_REQUEST 404
+/* Unsupported Service */
+#define RADIUS_ERROR_CAUSE_UNSUPPORTED_SERVICE 405
+/* Unsupported Extension */
+#define RADIUS_ERROR_CAUSE_UNSUPPORTED_EXTENSION 406
+/* Invalid Attribute Valu */
+#define RADIUS_ERROR_CAUSE_INVALID_ATTRIBUTE_VALUE 407
+/* Administratively Prohibited */
+#define RADIUS_ERROR_CAUSE_ADMINISTRATIVELY_PROHIBITED 501
+/* Request Not Routable (Proxy) */
+#define RADIUS_ERROR_CAUSE_REQUEST_NOT_ROUTABLE 502
+/* Session Context Not Found */
+#define RADIUS_ERROR_CAUSE_SESSION_NOT_FOUND 503
+/* Session Context Not Removable */
+#define RADIUS_ERROR_CAUSE_SESSION_NOT_REMOVABLE 504
+/* Other Proxy Processing Error */
+#define RADIUS_ERROR_CAUSE_OTHER_PROXY_PROCESSING_ERROR 505
+/* Resources Unavailable */
+#define RADIUS_ERROR_CAUSE_RESOURCES_UNAVAILABLE 506
+/* Request Initiated */
+#define RADIUS_ERROR_CAUSE_REQUEST_INITIATED 507
+/* Multiple Session Selection Unsupported */
+#define RADIUS_ERROR_CAUSE_MULTI_SELECTION_UNSUPPORTED 508
+
#include <sys/socket.h>
#include <sys/cdefs.h>