From: yasuoka Date: Sat, 29 Jun 2024 07:19:18 +0000 (+0000) Subject: Add variables for RFC 5176 Error Cause. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6322edfc2cb8a8ca474b5cd15632d57d01e364c6;p=openbsd Add variables for RFC 5176 Error Cause. --- 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 #include