radius_debug.c
Go to the documentation of this file.
1 /**
2  * @file radius_debug.c
3  * @brief Data logging functions for debugging purpose (RADIUS)
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2022-2024 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneEAP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 2.4.4
29  **/
30 
31 //Switch to the appropriate trace level
32 #define TRACE_LEVEL RADIUS_TRACE_LEVEL
33 
34 //Dependencies
35 #include "radius/radius.h"
36 #include "radius/radius_debug.h"
37 #include "debug.h"
38 
39 //Check EAP library configuration
40 #if (RADIUS_SUPPORT == ENABLED && RADIUS_TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
41 
42 //RADIUS codes
43 static const RadiusParamName radiusCodeList[] =
44 {
45  {RADIUS_CODE_ACCESS_REQUEST, "Access-Request"},
46  {RADIUS_CODE_ACCESS_ACCEPT, "Access-Accept"},
47  {RADIUS_CODE_ACCESS_REJECT, "Access-Reject"},
48  {RADIUS_CODE_ACCOUNTING_REQUEST, "Accounting-Request"},
49  {RADIUS_CODE_ACCOUNTING_RESPONSE, "Accounting-Response"},
50  {RADIUS_CODE_ACCESS_CHALLENGE, "Access-Challenge"},
51  {RADIUS_CODE_STATUS_SERVER, "Status-Server"},
52  {RADIUS_CODE_STATUS_CLIENT, "Status-Client"}
53 };
54 
55 //RADIUS codes
56 static const RadiusParamName radiusAttrTypeList[] =
57 {
58  {RADIUS_ATTR_USER_NAME, "User-Name"},
59  {RADIUS_ATTR_USER_PASSWORD, "User-Password"},
60  {RADIUS_ATTR_CHAP_PASSWORD, "CHAP-Password"},
61  {RADIUS_ATTR_NAS_IP_ADDR, "NAS-IP-Address"},
62  {RADIUS_ATTR_NAS_PORT, "NAS-Port"},
63  {RADIUS_ATTR_SERVICE_TYPE, "Service-Type"},
64  {RADIUS_ATTR_FRAMED_PROTOCOL, "Framed-Protocol"},
65  {RADIUS_ATTR_FRAMED_IP_ADDR, "Framed-IP-Address"},
66  {RADIUS_ATTR_FRAMED_IP_NETMASK, "Framed-IP-Netmask"},
67  {RADIUS_ATTR_FRAMED_ROUTING, "Framed-Routing"},
68  {RADIUS_ATTR_FILTER_ID, "Filter-Id"},
69  {RADIUS_ATTR_FRAMED_MTU, "Framed-MTU"},
70  {RADIUS_ATTR_FRAMED_COMPRESSION, "Framed-Compression"},
71  {RADIUS_ATTR_LOGIN_IP_HOST, "Login-IP-Host"},
72  {RADIUS_ATTR_LOGIN_SERVICE, "Login-Service"},
73  {RADIUS_ATTR_LOGIN_TCP_PORT, "Login-TCP-Port"},
74  {RADIUS_ATTR_REPLY_MESSAGE, "Reply-Message"},
75  {RADIUS_ATTR_CALLBACK_NUMBER, "Callback-Number"},
76  {RADIUS_ATTR_CALLBACK_ID, "Callback-Id"},
77  {RADIUS_ATTR_FRAMED_ROUTE, "Framed-Route"},
78  {RADIUS_ATTR_FRAMED_IPX_NETWORK, "Framed-IPX-Network"},
79  {RADIUS_ATTR_STATE, "State"},
80  {RADIUS_ATTR_CLASS, "Class"},
81  {RADIUS_ATTR_VENDOR_SPECIFIC, "Vendor-Specific"},
82  {RADIUS_ATTR_SESSION_TIMEOUT, "Session-Timeout"},
83  {RADIUS_ATTR_IDLE_TIMEOUT, "Idle-Timeout"},
84  {RADIUS_ATTR_TERMINATION_ACTION, "Termination-Action"},
85  {RADIUS_ATTR_CALLED_STATION_ID, "Called-Station-Id"},
86  {RADIUS_ATTR_CALLING_STATION_ID, "Calling-Station-Id"},
87  {RADIUS_ATTR_NAS_IDENTIFIER, "NAS-Identifier"},
88  {RADIUS_ATTR_PROXY_STATE, "Proxy-State"},
89  {RADIUS_ATTR_LOGIN_LAT_SERVICE, "Login-LAT-Service"},
90  {RADIUS_ATTR_LOGIN_LAT_NODE, "Login-LAT-Node"},
91  {RADIUS_ATTR_LOGIN_LAT_GROUP, "Login-LAT-Group"},
92  {RADIUS_ATTR_FRAMED_APPLETALK_LINK, "Framed-AppleTalk-Link"},
93  {RADIUS_ATTR_FRAMED_APPLETALK_NETWORK, "Framed-AppleTalk-Network"},
94  {RADIUS_ATTR_FRAMED_APPLETALK_ZONE, "Framed-AppleTalk-Zone"},
95  {RADIUS_ATTR_ACCT_STATUS_TYPE, "Acct-Status-Type"},
96  {RADIUS_ATTR_ACCT_DELAY_TIME, "Acct-Delay-Time"},
97  {RADIUS_ATTR_ACCT_INPUT_OCTETS, "Acct-Input-Octets"},
98  {RADIUS_ATTR_ACCT_OUTPUT_OCTETS, "Acct-Output-Octets"},
99  {RADIUS_ATTR_ACCT_SESSION_ID, "Acct-Session-Id"},
100  {RADIUS_ATTR_ACCT_AUTHENTIC, "Acct-Authentic"},
101  {RADIUS_ATTR_ACCT_SESSION_TIME, "Acct-Session-Time"},
102  {RADIUS_ATTR_ACCT_INPUT_PACKETS, "Acct-Input-Packets"},
103  {RADIUS_ATTR_ACCT_OUTPUT_PACKETS, "Acct-Output-Packets"},
104  {RADIUS_ATTR_ACCT_TERMINATE_CAUSE, "Acct-Terminate-Cause"},
105  {RADIUS_ATTR_ACCT_MULTI_SESSION_ID, "Acct-Multi-Session-Id"},
106  {RADIUS_ATTR_ACCT_LINK_COUNT, "Acct-Link-Count"},
107  {RADIUS_ATTR_ACCT_INPUT_GIGAWORDS, "Acct-Input-Gigawords"},
108  {RADIUS_ATTR_ACCT_OUTPUT_GIGAWORDS, "Acct-Output-Gigawords"},
109  {RADIUS_ATTR_EVENT_TIMESTAMP, "Event-Timestamp"},
110  {RADIUS_ATTR_EGRESS_VLANID, "Egress-VLANID"},
111  {RADIUS_ATTR_INGRESS_FILTERS, "Ingress-Filters"},
112  {RADIUS_ATTR_EGRESS_VLAN_NAME, "Egress-VLAN-Name"},
113  {RADIUS_ATTR_USER_PRIORITY_TABLE, "User-Priority-Table"},
114  {RADIUS_ATTR_CHAP_CHALLENGE, "CHAP-Challenge"},
115  {RADIUS_ATTR_NAS_PORT_TYPE, "NAS-Port-Type"},
116  {RADIUS_ATTR_PORT_LIMIT, "Port-Limit"},
117  {RADIUS_ATTR_LOGIN_LAT_PORT, "Login-LAT-Port"},
118  {RADIUS_ATTR_TUNNEL_TYPE, "Tunnel-Type"},
119  {RADIUS_ATTR_TUNNEL_MEDIUM_TYPE, "Tunnel-Medium-Type"},
120  {RADIUS_ATTR_TUNNEL_CLIENT_ENDPOINT, "Tunnel-Client-Endpoint"},
121  {RADIUS_ATTR_TUNNEL_SERVER_ENDPOINT, "Tunnel-Server-Endpoint"},
122  {RADIUS_ATTR_ACCT_TUNNEL_CONNECTION, "Acct-Tunnel-Connection"},
123  {RADIUS_ATTR_TUNNEL_PASSWORD, "Tunnel-Password"},
124  {RADIUS_ATTR_ARAP_PASSWORD, "ARAP-Password"},
125  {RADIUS_ATTR_ARAP_FEATURES, "ARAP-Features"},
126  {RADIUS_ATTR_ARAP_ZONE_ACCESS, "ARAP-Zone-Access"},
127  {RADIUS_ATTR_ARAP_SECURITY, "ARAP-Security"},
128  {RADIUS_ATTR_ARAP_SECURITY_DATA, "ARAP-Security-Data"},
129  {RADIUS_ATTR_PASSWORD_RETRY, "Password-Retry"},
130  {RADIUS_ATTR_PROMPT, "Prompt"},
131  {RADIUS_ATTR_CONNECT_INFO, "Connect-Info"},
132  {RADIUS_ATTR_CONFIGURATION_TOKEN, "Configuration-Token"},
133  {RADIUS_ATTR_EAP_MESSAGE, "EAP-Message"},
134  {RADIUS_ATTR_MESSAGE_AUTHENTICATOR, "Message-Authenticator"},
135  {RADIUS_ATTR_TUNNEL_PRIVATE_GROUP_ID, "Tunnel-Private-Group-ID"},
136  {RADIUS_ATTR_TUNNEL_ASSIGNMENT_ID, "Tunnel-Assignment-ID"},
137  {RADIUS_ATTR_TUNNEL_PREFERENCE, "Tunnel-Preference"},
138  {RADIUS_ATTR_ARAP_CHALLENGE_RESPONSE, "ARAP-Challenge-Response"},
139  {RADIUS_ATTR_ACCT_INTERIM_INTERVAL, "Acct-Interim-Interval"},
140  {RADIUS_ATTR_ACCT_TUNNEL_PACKETS_LOST, "Acct-Tunnel-Packets-Lost"},
141  {RADIUS_ATTR_NAS_PORT_ID, "NAS-Port-Id"},
142  {RADIUS_ATTR_FRAMED_POOL, "Framed-Pool"},
143  {RADIUS_ATTR_CUI, "CUI"},
144  {RADIUS_ATTR_TUNNEL_CLIENT_AUTH_ID, "Tunnel-Client-Auth-ID"},
145  {RADIUS_ATTR_TUNNEL_SERVER_AUTH_ID, "Tunnel-Server-Auth-ID"},
146  {RADIUS_ATTR_NAS_FILTER_RULE, "NAS-Filter-Rule"},
147  {RADIUS_ATTR_ORIGINATING_LINE_INFO, "Originating-Line-Info"},
148  {RADIUS_ATTR_NAS_IPV6_ADDR, "NAS-IPv6-Address"},
149  {RADIUS_ATTR_FRAMED_INTERFACE_ID, "Framed-Interface-Id"},
150  {RADIUS_ATTR_FRAMED_IPV6_PREFIX, "Framed-IPv6-Prefix"},
151  {RADIUS_ATTR_LOGIN_IPV6_HOST, "Login-IPv6-Host"},
152  {RADIUS_ATTR_FRAMED_IPV6_ROUTE, "Framed-IPv6-Route"},
153  {RADIUS_ATTR_FRAMED_IPV6_POOL, "Framed-IPv6-Pool"},
154  {RADIUS_ATTR_ERROR_CAUSE, "Error-Cause"},
155  {RADIUS_ATTR_EAP_KEY_NAME, "EAP-Key-Name"},
156  {RADIUS_ATTR_DIGEST_RESPONSE, "Digest-Response"},
157  {RADIUS_ATTR_DIGEST_REALM, "Digest-Realm"},
158  {RADIUS_ATTR_DIGEST_NONCE, "Digest-Nonce"},
159  {RADIUS_ATTR_DIGEST_RESPONSE_AUTH, "Digest-Response-Auth"},
160  {RADIUS_ATTR_DIGEST_NEXTNONCE, "Digest-Nextnonce"},
161  {RADIUS_ATTR_DIGEST_METHOD, "Digest-Method"},
162  {RADIUS_ATTR_DIGEST_URI, "Digest-URI"},
163  {RADIUS_ATTR_DIGEST_QOP, "Digest-Qop"},
164  {RADIUS_ATTR_DIGEST_ALGORITHM, "Digest-Algorithm"},
165  {RADIUS_ATTR_DIGEST_ENTITY_BODY_HASH, "Digest-Entity-Body-Hash"},
166  {RADIUS_ATTR_DIGEST_CNONCE, "Digest-CNonce"},
167  {RADIUS_ATTR_DIGEST_NONCE_COUNT, "Digest-Nonce-Count"},
168  {RADIUS_ATTR_DIGEST_USERNAME, "Digest-Username"},
169  {RADIUS_ATTR_DIGEST_OPAQUE, "Digest-Opaque"},
170  {RADIUS_ATTR_DIGEST_AUTH_PARAM, "Digest-Auth-Param"},
171  {RADIUS_ATTR_DIGEST_AKA_AUTS, "Digest-AKA-Auts"},
172  {RADIUS_ATTR_DIGEST_DOMAIN, "Digest-Domain"},
173  {RADIUS_ATTR_DIGEST_STALE, "Digest-Stale"},
174  {RADIUS_ATTR_DIGEST_HA1, "Digest-HA1"},
175  {RADIUS_ATTR_SIP_AOR, "SIP-AOR"},
176  {RADIUS_ATTR_DELEGATED_IPV6_PREFIX, "Delegated-IPv6-Prefix"},
177  {RADIUS_ATTR_MIP6_FEATURE_VECTOR, "MIP6-Feature-Vector"},
178  {RADIUS_ATTR_MIP6_HOME_LINK_PREFIX, "MIP6-Home-Link-Prefix"},
179  {RADIUS_ATTR_OPERATOR_NAME, "Operator-Name"},
180  {RADIUS_ATTR_LOCATION_INFORMATION, "Location-Information"},
181  {RADIUS_ATTR_LOCATION_DATA, "Location-Data"},
182  {RADIUS_ATTR_BASIC_LOCATION_POLICY_RULES, "Basic-Location-Policy-Rules"},
183  {RADIUS_ATTR_EXTENDED_LOCATION_POLICY_RULES, "Extended-Location-Policy-Rules"},
184  {RADIUS_ATTR_LOCATION_CAPABLE, "Location-Capable"},
185  {RADIUS_ATTR_REQUESTED_LOCATION_INFO, "Requested-Location-Info"},
186  {RADIUS_ATTR_FRAMED_MANAGEMENT_PROTOCOL, "Framed-Management-Protocol"},
187  {RADIUS_ATTR_MANAGEMENT_TRANSPORT_PROTECTION, "Management-Transport-Protection"},
188  {RADIUS_ATTR_MANAGEMENT_POLICY_ID, "Management-Policy-Id"},
189  {RADIUS_ATTR_MANAGEMENT_PRIVILEGE_LEVEL, "Management-Privilege-Level"},
190  {RADIUS_ATTR_PKM_SS_CERT, "PKM-SS-Cert"},
191  {RADIUS_ATTR_PKM_CA_CERT, "PKM-CA-Cert"},
192  {RADIUS_ATTR_PKM_CONFIG_SETTINGS, "PKM-Config-Settings"},
193  {RADIUS_ATTR_PKM_CRYPTOSUITE_LIST, "PKM-Cryptosuite-List"},
194  {RADIUS_ATTR_PKM_SAID, "PKM-SAID"},
195  {RADIUS_ATTR_PKM_SA_DESCRIPTOR, "PKM-SA-Descriptor"},
196  {RADIUS_ATTR_PKM_AUTH_KEY, "PKM-Auth-Key"},
197  {RADIUS_ATTR_DS_LITE_TUNNEL_NAME, "DS-Lite-Tunnel-Name"},
198  {RADIUS_ATTR_MOBILE_NODE_IDENTIFIER, "Mobile-Node-Identifier"},
199  {RADIUS_ATTR_SERVICE_SELECTION, "Service-Selection"},
200  {RADIUS_ATTR_PMIP6_HOME_LMA_IPV6_ADDR, "PMIP6-Home-LMA-IPv6-Address"},
201  {RADIUS_ATTR_PMIP6_VISITED_LMA_IPV6_ADDR, "PMIP6-Visited-LMA-IPv6-Address"},
202  {RADIUS_ATTR_PMIP6_HOME_LMA_IPV4_ADDR, "PMIP6-Home-LMA-IPv4-Address"},
203  {RADIUS_ATTR_PMIP6_VISITED_LMA_IPV4_ADDR, "PMIP6-Visited-LMA-IPv4-Address"},
204  {RADIUS_ATTR_PMIP6_HOME_HN_PREFIX, "PMIP6-Home-HN-Prefix"},
205  {RADIUS_ATTR_PMIP6_VISITED_HN_PREFIX, "PMIP6-Visited-HN-Prefix"},
206  {RADIUS_ATTR_PMIP6_HOME_INTERFACE_ID, "PMIP6-Home-Interface-ID"},
207  {RADIUS_ATTR_PMIP6_VISITED_INTERFACE_ID, "PMIP6-Visited-Interface-ID"},
208  {RADIUS_ATTR_PMIP6_HOME_IPV4_HOA, "PMIP6-Home-IPv4-HoA"},
209  {RADIUS_ATTR_PMIP6_VISITED_IPV4_HOA, "PMIP6-Visited-IPv4-HoA"},
210  {RADIUS_ATTR_PMIP6_HOME_DHCP4_SERVER_ADDR, "PMIP6-Home-DHCP4-Server-Address"},
211  {RADIUS_ATTR_PMIP6_VISITED_DHCP4_SERVER_ADDR, "PMIP6-Visited-DHCP4-Server-Address"},
212  {RADIUS_ATTR_PMIP6_HOME_DHCP6_SERVER_ADDR, "PMIP6-Home-DHCP6-Server-Address"},
213  {RADIUS_ATTR_PMIP6_VISITED_DHCP6_SERVER_ADDR, "PMIP6-Visited-DHCP6-Server-Address"},
214  {RADIUS_ATTR_PMIP6_HOME_IPV4_GATEWAY, "PMIP6-Home-IPv4-Gateway"},
215  {RADIUS_ATTR_PMIP6_VISITED_IPV4_GATEWAY, "PMIP6-Visited-IPv4-Gateway"},
216  {RADIUS_ATTR_EAP_LOWER_LAYER, "EAP-Lower-Layer"},
217  {RADIUS_ATTR_GSS_ACCEPTOR_SERVICE_NAME, "GSS-Acceptor-Service-Name"},
218  {RADIUS_ATTR_GSS_ACCEPTOR_HOST_NAME, "GSS-Acceptor-Host-Name"},
219  {RADIUS_ATTR_GSS_ACCEPTOR_SERVICE_SPECIFICS, "GSS-Acceptor-Service-Specifics"},
220  {RADIUS_ATTR_GSS_ACCEPTOR_REALM_NAME, "GSS-Acceptor-Realm-Name"},
221  {RADIUS_ATTR_FRAMED_IPV6_ADDR, "Framed-IPv6-Address"},
222  {RADIUS_ATTR_DNS_SERVER_IPV6_ADDR, "DNS-Server-IPv6-Address"},
223  {RADIUS_ATTR_ROUTE_IPV6_INFORMATION, "Route-IPv6-Information"},
224  {RADIUS_ATTR_DELEGATED_IPV6_PREFIX_POOL, "Delegated-IPv6-Prefix-Pool"},
225  {RADIUS_ATTR_STATEFUL_IPV6_ADDR_POOL, "Stateful-IPv6-Address-Pool"},
226  {RADIUS_ATTR_IPV6_6RD_CONFIGURATION, "IPv6-6rd-Configuration"},
227  {RADIUS_ATTR_ALLOWED_CALLED_STATION_ID, "Allowed-Called-Station-Id"},
228  {RADIUS_ATTR_EAP_PEER_ID, "EAP-Peer-Id"},
229  {RADIUS_ATTR_EAP_SERVER_ID, "EAP-Server-Id"},
230  {RADIUS_ATTR_MOBILITY_DOMAIN_ID, "Mobility-Domain-Id"},
231  {RADIUS_ATTR_PREAUTH_TIMEOUT, "Preauth-Timeout"},
232  {RADIUS_ATTR_NETWORK_ID_NAME, "Network-Id-Name"},
233  {RADIUS_ATTR_EAPOL_ANNOUNCEMENT, "EAPoL-Announcement"},
234  {RADIUS_ATTR_WLAN_HESSID, "WLAN-HESSID"},
235  {RADIUS_ATTR_WLAN_VENUE_INFO, "WLAN-Venue-Info"},
236  {RADIUS_ATTR_WLAN_VENUE_LANGUAGE, "WLAN-Venue-Language"},
237  {RADIUS_ATTR_WLAN_VENUE_NAME, "WLAN-Venue-Name"},
238  {RADIUS_ATTR_WLAN_REASON_CODE, "WLAN-Reason-Code"},
239  {RADIUS_ATTR_WLAN_PAIRWISE_CIPHER, "WLAN-Pairwise-Cipher"},
240  {RADIUS_ATTR_WLAN_GROUP_CIPHER, "WLAN-Group-Cipher"},
241  {RADIUS_ATTR_WLAN_AKM_SUITE, "WLAN-AKM-Suite"},
242  {RADIUS_ATTR_WLAN_GROUP_MGMT_CIPHER, "WLAN-Group-Mgmt-Cipher"},
243  {RADIUS_ATTR_WLAN_RF_BAND, "WLAN-RF-Band"},
244  {RADIUS_ATTR_EXTENDED_ATTR_1, "Extended-Attribute-1"},
245  {RADIUS_ATTR_EXTENDED_ATTR_2, "Extended-Attribute-2"},
246  {RADIUS_ATTR_EXTENDED_ATTR_3, "Extended-Attribute-3"},
247  {RADIUS_ATTR_EXTENDED_ATTR_4, "Extended-Attribute-4"},
248  {RADIUS_ATTR_EXTENDED_ATTR_5, "Extended-Attribute-5"},
249  {RADIUS_ATTR_EXTENDED_ATTR_6, "Extended-Attribute-6"}
250 };
251 
252 
253 /**
254  * @brief Dump RADIUS packet for debugging purpose
255  * @param[in] packet Pointer to the RADIUS packet
256  * @param[in] length Length of the RADIUS packet, in bytes
257  **/
258 
259 void radiusDumpPacket(const RadiusPacket *packet, size_t length)
260 {
261  size_t i;
262  const char_t *codeName;
263  const RadiusAttribute *attribute;
264 
265  //Check the length of the RADIUS packet
266  if(length >= sizeof(RadiusPacket))
267  {
268  //Convert the Code field to string representation
269  codeName = radiusGetParamName(packet->code, radiusCodeList,
270  arraysize(radiusCodeList));
271 
272  //Dump RADIUS packet contents
273  TRACE_DEBUG(" Code = %" PRIu8 " (%s)\r\n", packet->code, codeName);
274  TRACE_DEBUG(" Identifier = %" PRIu8 "\r\n", packet->identifier);
275  TRACE_DEBUG(" Length = %" PRIu16 "\r\n", ntohs(packet->length));
276  TRACE_DEBUG(" Authenticator\r\n");
277  TRACE_DEBUG_ARRAY(" ", packet->authenticator, 16);
278 
279  //Calculate the length of the RADIUS attributes
280  length -= sizeof(RadiusPacket);
281 
282  //Loop through the attributes
283  for(i = 0; i < length; i += attribute->length)
284  {
285  //Point to the attribute
286  attribute = (RadiusAttribute *) (packet->attributes + i);
287 
288  //Malformed attribute?
289  if(attribute->length < sizeof(RadiusAttribute) ||
290  attribute->length > length)
291  {
292  break;
293  }
294 
295  //Dump RADIUS attribute
296  radiusDumpAttribute(attribute);
297  }
298  }
299 }
300 
301 
302 /**
303  * @brief Dump RADIUS attribute
304  * @param[in] attribute Pointer to the RADIUS attribute
305  **/
306 
307 void radiusDumpAttribute(const RadiusAttribute *attribute)
308 {
309  size_t length;
310  const char_t *typeName;
311 
312  //Check the length of the RADIUS attribute
313  if(attribute->length >= sizeof(RadiusAttribute))
314  {
315  //Retrieve the length of the Value field
316  length = attribute->length - sizeof(RadiusAttribute);
317 
318  //Convert the Type field to string representation
319  typeName = radiusGetParamName(attribute->type, radiusAttrTypeList,
320  arraysize(radiusAttrTypeList));
321 
322  //Display the name of the current RADIUS attribute
323  if(osStrcmp(typeName, "Unknown") != 0)
324  {
325  TRACE_DEBUG(" %s Attribute (%" PRIu8 " bytes)\r\n", typeName,
326  length);
327  }
328  else
329  {
330  TRACE_DEBUG(" Attribute %" PRIu8 " (%" PRIu8 " bytes)\r\n",
331  attribute->type, length);
332  }
333 
334  //Check attribute type
335  switch(attribute->type)
336  {
337  //32-bit unsigned integer?
342  radiusDumpInt32(attribute->value, length);
343  break;
344 
345  //Character strings?
396  case RADIUS_ATTR_SIP_AOR:
410  radiusDumpString(attribute->value, length);
411  break;
412 
413  //IPv4 address?
425  radiusDumpIpv4Addr(attribute->value, length);
426  break;
427 
428  //IPv6 address?
437  radiusDumpIpv4Addr(attribute->value, length);
438  break;
439 
440  //Unknown format?
441  default:
442  radiusDumpRawData(attribute->value, length);
443  break;
444  }
445  }
446 }
447 
448 
449 /**
450  * @brief Dump an attribute containing a 32-bit integer
451  * @param[in] data Attribute value
452  * @param[in] length Attribute length
453  **/
454 
455 void radiusDumpInt32(const uint8_t *data, size_t length)
456 {
457  uint32_t value;
458 
459  //Check the length of the attribute
460  if(length == sizeof(uint32_t))
461  {
462  //Retrieve 32-bit value
463  value = LOAD32BE(data);
464  //Dump option contents
465  TRACE_DEBUG(" %" PRIu32 "\r\n", value);
466  }
467 }
468 
469 
470 /**
471  * @brief Dump an attribute containing a string
472  * @param[in] data Attribute value
473  * @param[in] length Attribute length
474  **/
475 
476 void radiusDumpString(const uint8_t *data, size_t length)
477 {
478  size_t i;
479 
480  //Append prefix
481  TRACE_DEBUG(" ");
482 
483  //Dump attribute value
484  for(i = 0; i < length; i++)
485  {
486  TRACE_DEBUG("%c", data[i]);
487  }
488 
489  //Add a line feed
490  TRACE_DEBUG("\r\n");
491 }
492 
493 
494 /**
495  * @brief Dump an attribute containing an IPv4 address
496  * @param[in] data Attribute value
497  * @param[in] length Attribute length
498  **/
499 
500 void radiusDumpIpv4Addr(const uint8_t *data, size_t length)
501 {
502 #if (IPV4_SUPPORT == ENABLED)
504 
505  //Check the length of the attribute
506  if(length == sizeof(Ipv4Addr))
507  {
508  //Retrieve IPv4 address
510  //Dump option contents
511  TRACE_DEBUG(" %s\r\n", ipv4AddrToString(ipAddr, NULL));
512  }
513 #endif
514 }
515 
516 
517 /**
518  * @brief Dump an attribute containing an IPv6 address
519  * @param[in] data Attribute value
520  * @param[in] length Attribute length
521  **/
522 
523 void radiusDumpIpv6Addr(const uint8_t *data, size_t length)
524 {
525 #if (IPV6_SUPPORT == ENABLED)
527 
528  //Check the length of the attribute
529  if(length == sizeof(Ipv6Addr))
530  {
531  //Retrieve IPv6 address
533  //Dump option contents
534  TRACE_DEBUG(" %s\r\n", ipv6AddrToString(&ipAddr, NULL));
535  }
536 #endif
537 }
538 
539 
540 /**
541  * @brief Dump an attribute containing raw data
542  * @param[in] data Attribute value
543  * @param[in] length Attribute length
544  **/
545 
546 void radiusDumpRawData(const uint8_t *data, size_t length)
547 {
548  //Dump attribute value
549  if(length <= 32)
550  {
552  }
553  else
554  {
556  }
557 }
558 
559 
560 /**
561  * @brief Convert a parameter to string representation
562  * @param[in] value Parameter value
563  * @param[in] paramList List of acceptable parameters
564  * @param[in] paramListLen Number of entries in the list
565  * @return NULL-terminated string describing the parameter
566  **/
567 
569  size_t paramListLen)
570 {
571  uint_t i;
572 
573  //Default name for unknown values
574  static const char_t defaultName[] = "Unknown";
575 
576  //Loop through the list of acceptable parameters
577  for(i = 0; i < paramListLen; i++)
578  {
579  if(paramList[i].value == value)
580  return paramList[i].name;
581  }
582 
583  //Unknown value
584  return defaultName;
585 }
586 
587 #endif
@ RADIUS_ATTR_PKM_SA_DESCRIPTOR
PKM-SA-Descriptor.
@ RADIUS_ATTR_ALLOWED_CALLED_STATION_ID
Allowed-Called-Station-Id.
@ RADIUS_ATTR_PMIP6_HOME_LMA_IPV6_ADDR
PMIP6-Home-LMA-IPv6-Address.
@ RADIUS_ATTR_REQUESTED_LOCATION_INFO
Requested-Location-Info.
@ RADIUS_ATTR_FILTER_ID
Filter-Id.
void radiusDumpPacket(const RadiusPacket *packet, size_t length)
Dump RADIUS packet for debugging purpose.
Definition: radius_debug.c:259
char_t * ipv6AddrToString(const Ipv6Addr *ipAddr, char_t *str)
Convert a binary IPv6 address to a string representation.
Definition: ipv6.c:2329
@ RADIUS_ATTR_FRAMED_APPLETALK_LINK
Framed-AppleTalk-Link.
@ RADIUS_ATTR_FRAMED_IPV6_POOL
Framed-IPv6-Pool.
@ RADIUS_ATTR_EAP_LOWER_LAYER
EAP-Lower-Layer.
@ RADIUS_ATTR_DELEGATED_IPV6_PREFIX
Delegated-IPv6-Prefix.
const char_t * name
Definition: radius_debug.h:53
@ RADIUS_ATTR_ACCT_AUTHENTIC
Acct-Authentic.
@ RADIUS_ATTR_MANAGEMENT_PRIVILEGE_LEVEL
Management-Privilege-Level.
@ RADIUS_ATTR_CHAP_CHALLENGE
CHAP-Challenge.
@ RADIUS_ATTR_FRAMED_IPV6_ROUTE
Framed-IPv6-Route.
@ RADIUS_ATTR_LOGIN_IP_HOST
Login-IP-Host.
@ RADIUS_ATTR_LOGIN_TCP_PORT
Login-TCP-Port.
@ RADIUS_ATTR_FRAMED_COMPRESSION
Framed-Compression.
@ RADIUS_ATTR_MESSAGE_AUTHENTICATOR
Message-Authenticator.
@ RADIUS_ATTR_USER_PASSWORD
User-Password.
@ RADIUS_ATTR_LOGIN_IPV6_HOST
Login-IPv6-Host.
@ RADIUS_ATTR_DIGEST_AUTH_PARAM
Digest-Auth-Param.
@ RADIUS_ATTR_PKM_AUTH_KEY
PKM-Auth-Key.
#define LOAD32BE(p)
Definition: cpu_endian.h:210
@ RADIUS_ATTR_PMIP6_HOME_DHCP4_SERVER_ADDR
PMIP6-Home-DHCP4-Server-Address.
@ RADIUS_ATTR_TUNNEL_ASSIGNMENT_ID
Tunnel-Assignment-ID.
@ RADIUS_ATTR_FRAMED_IPV6_PREFIX
Framed-IPv6-Prefix.
@ RADIUS_ATTR_ARAP_FEATURES
ARAP-Features.
@ RADIUS_ATTR_CONFIGURATION_TOKEN
Configuration-Token.
RadiusPacket
Definition: radius.h:89
@ RADIUS_ATTR_PMIP6_VISITED_HN_PREFIX
PMIP6-Visited-HN-Prefix.
@ RADIUS_CODE_ACCESS_REQUEST
Access-Request.
Definition: radius.h:59
@ RADIUS_ATTR_LOGIN_LAT_PORT
Login-LAT-Port.
@ RADIUS_ATTR_PKM_SAID
PKM-SAID.
@ RADIUS_ATTR_ACCT_STATUS_TYPE
Acct-Status-Type.
@ RADIUS_ATTR_STATE
State.
void radiusDumpString(const uint8_t *data, size_t length)
Dump an attribute containing a string.
Definition: radius_debug.c:476
@ RADIUS_ATTR_CHAP_PASSWORD
CHAP-Password.
@ RADIUS_ATTR_FRAMED_APPLETALK_ZONE
Framed-AppleTalk-Zone.
@ RADIUS_ATTR_ACCT_OUTPUT_GIGAWORDS
Acct-Output-Gigawords.
uint8_t data[]
Definition: ethernet.h:222
@ RADIUS_ATTR_DIGEST_RESPONSE_AUTH
Digest-Response-Auth.
@ RADIUS_ATTR_ARAP_PASSWORD
ARAP-Password.
@ RADIUS_ATTR_CONNECT_INFO
Connect-Info.
@ RADIUS_ATTR_ACCT_SESSION_ID
Acct-Session-Id.
@ RADIUS_ATTR_LOGIN_LAT_GROUP
Login-LAT-Group.
Ipv6Addr
Definition: ipv6.h:260
@ RADIUS_ATTR_ACCT_MULTI_SESSION_ID
Acct-Multi-Session-Id.
@ RADIUS_ATTR_NAS_PORT
NAS-Port.
@ RADIUS_ATTR_DNS_SERVER_IPV6_ADDR
DNS-Server-IPv6-Address.
void radiusDumpRawData(const uint8_t *data, size_t length)
Dump an attribute containing raw data.
Definition: radius_debug.c:546
@ RADIUS_CODE_ACCOUNTING_REQUEST
Accounting-Request.
Definition: radius.h:62
@ RADIUS_ATTR_EXTENDED_ATTR_4
Extended-Attribute-4.
@ RADIUS_ATTR_FRAMED_ROUTE
Framed-Route.
#define osStrcmp(s1, s2)
Definition: os_port.h:171
@ RADIUS_ATTR_LOGIN_LAT_SERVICE
Login-LAT-Service.
@ RADIUS_ATTR_DIGEST_NONCE_COUNT
Digest-Nonce-Count.
@ RADIUS_ATTR_NAS_IPV6_ADDR
NAS-IPv6-Address.
@ RADIUS_ATTR_GSS_ACCEPTOR_SERVICE_SPECIFICS
GSS-Acceptor-Service-Specifics.
@ RADIUS_ATTR_PMIP6_VISITED_IPV4_HOA
PMIP6-Visited-IPv4-HoA.
@ RADIUS_ATTR_DS_LITE_TUNNEL_NAME
DS-Lite-Tunnel-Name.
@ RADIUS_ATTR_PORT_LIMIT
Port-Limit.
@ RADIUS_ATTR_PMIP6_VISITED_LMA_IPV4_ADDR
PMIP6-Visited-LMA-IPv4-Address.
void radiusDumpInt32(const uint8_t *data, size_t length)
Dump an attribute containing a 32-bit integer.
Definition: radius_debug.c:455
@ RADIUS_ATTR_MIP6_FEATURE_VECTOR
MIP6-Feature-Vector.
@ RADIUS_ATTR_WLAN_VENUE_NAME
WLAN-Venue-Name.
uint32_t Ipv4Addr
IPv4 network address.
Definition: ipv4.h:297
@ RADIUS_ATTR_CALLBACK_ID
Callback-Id.
@ RADIUS_ATTR_PMIP6_VISITED_IPV4_GATEWAY
PMIP6-Visited-IPv4-Gateway.
@ RADIUS_ATTR_NAS_IDENTIFIER
NAS-Identifier.
Data logging functions for debugging purpose (RADIUS)
@ RADIUS_ATTR_LOCATION_CAPABLE
Location-Capable.
@ RADIUS_ATTR_MOBILITY_DOMAIN_ID
Mobility-Domain-Id.
@ RADIUS_ATTR_PMIP6_HOME_LMA_IPV4_ADDR
PMIP6-Home-LMA-IPv4-Address.
@ RADIUS_CODE_ACCESS_REJECT
Access-Reject.
Definition: radius.h:61
@ RADIUS_ATTR_EXTENDED_ATTR_3
Extended-Attribute-3.
@ RADIUS_ATTR_EXTENDED_LOCATION_POLICY_RULES
Extended-Location-Policy-Rules.
@ RADIUS_ATTR_ACCT_TUNNEL_PACKETS_LOST
Acct-Tunnel-Packets-Lost.
@ RADIUS_ATTR_EXTENDED_ATTR_6
Extended-Attribute-6.
@ RADIUS_ATTR_SERVICE_SELECTION
Service-Selection.
@ RADIUS_ATTR_CUI
CUI.
@ RADIUS_ATTR_ACCT_DELAY_TIME
Acct-Delay-Time.
@ RADIUS_ATTR_PMIP6_HOME_INTERFACE_ID
PMIP6-Home-Interface-ID.
@ RADIUS_ATTR_ARAP_SECURITY_DATA
ARAP-Security-Data.
@ RADIUS_ATTR_EAP_MESSAGE
EAP-Message.
@ RADIUS_ATTR_EGRESS_VLAN_NAME
Egress-VLAN-Name.
@ RADIUS_ATTR_FRAMED_MTU
Framed-MTU.
@ RADIUS_ATTR_ARAP_SECURITY
ARAP-Security.
@ RADIUS_ATTR_WLAN_PAIRWISE_CIPHER
WLAN-Pairwise-Cipher.
@ RADIUS_ATTR_CALLING_STATION_ID
Calling-Station-Id.
void radiusDumpAttribute(const RadiusAttribute *attribute)
Dump RADIUS attribute.
Definition: radius_debug.c:307
@ RADIUS_ATTR_PMIP6_VISITED_INTERFACE_ID
PMIP6-Visited-Interface-ID.
@ RADIUS_ATTR_PASSWORD_RETRY
Password-Retry.
@ RADIUS_ATTR_ACCT_INPUT_PACKETS
Acct-Input-Packets.
@ RADIUS_ATTR_LOGIN_SERVICE
Login-Service.
@ RADIUS_ATTR_VENDOR_SPECIFIC
Vendor-Specific.
@ RADIUS_ATTR_ACCT_LINK_COUNT
Acct-Link-Count.
@ RADIUS_CODE_STATUS_SERVER
Status-Server (experimental)
Definition: radius.h:65
@ RADIUS_ATTR_SESSION_TIMEOUT
Session-Timeout.
@ RADIUS_ATTR_DIGEST_OPAQUE
Digest-Opaque.
@ RADIUS_ATTR_ORIGINATING_LINE_INFO
Originating-Line-Info.
@ RADIUS_ATTR_EXTENDED_ATTR_5
Extended-Attribute-5.
@ RADIUS_ATTR_DIGEST_USERNAME
Digest-Username.
@ RADIUS_ATTR_DIGEST_ALGORITHM
Digest-Algorithm.
@ RADIUS_ATTR_REPLY_MESSAGE
Reply-Message.
@ RADIUS_ATTR_EGRESS_VLANID
Egress-VLANID.
@ RADIUS_ATTR_FRAMED_IPX_NETWORK
Framed-IPX-Network.
@ RADIUS_ATTR_TUNNEL_PASSWORD
Tunnel-Password.
@ RADIUS_ATTR_ACCT_OUTPUT_OCTETS
Acct-Output-Octets.
@ RADIUS_ATTR_DIGEST_DOMAIN
Digest-Domain.
@ RADIUS_ATTR_DIGEST_NEXTNONCE
Digest-Nextnonce.
@ RADIUS_CODE_STATUS_CLIENT
Status-Client (experimental)
Definition: radius.h:66
@ RADIUS_ATTR_FRAMED_INTERFACE_ID
Framed-Interface-Id.
@ RADIUS_ATTR_TUNNEL_PRIVATE_GROUP_ID
Tunnel-Private-Group-ID.
@ RADIUS_ATTR_INGRESS_FILTERS
Ingress-Filters.
@ RADIUS_ATTR_TUNNEL_CLIENT_ENDPOINT
Tunnel-Client-Endpoint.
@ RADIUS_ATTR_USER_PRIORITY_TABLE
User-Priority-Table.
@ RADIUS_ATTR_EVENT_TIMESTAMP
Event-Timestamp.
@ RADIUS_ATTR_DIGEST_ENTITY_BODY_HASH
Digest-Entity-Body-Hash.
@ RADIUS_ATTR_IPV6_6RD_CONFIGURATION
IPv6-6rd-Configuration.
@ RADIUS_ATTR_NETWORK_ID_NAME
Network-Id-Name.
@ RADIUS_ATTR_ARAP_CHALLENGE_RESPONSE
ARAP-Challenge-Response.
@ RADIUS_ATTR_WLAN_AKM_SUITE
WLAN-AKM-Suite.
@ RADIUS_ATTR_GSS_ACCEPTOR_HOST_NAME
GSS-Acceptor-Host-Name.
@ RADIUS_ATTR_EXTENDED_ATTR_1
Extended-Attribute-1.
@ RADIUS_ATTR_OPERATOR_NAME
Operator-Name.
@ RADIUS_ATTR_FRAMED_POOL
Framed-Pool.
@ RADIUS_ATTR_PKM_SS_CERT
PKM-SS-Cert.
@ RADIUS_ATTR_FRAMED_MANAGEMENT_PROTOCOL
Framed-Management-Protocol.
@ RADIUS_ATTR_DELEGATED_IPV6_PREFIX_POOL
Delegated-IPv6-Prefix-Pool.
@ RADIUS_ATTR_MOBILE_NODE_IDENTIFIER
Mobile-Node-Identifier.
RADIUS (Remote Authentication Dial In User Service)
@ RADIUS_ATTR_FRAMED_IP_ADDR
Framed-IP-Address.
uint8_t length
Definition: tcp.h:368
@ RADIUS_ATTR_PMIP6_VISITED_DHCP6_SERVER_ADDR
PMIP6-Visited-DHCP6-Server-Address.
@ RADIUS_ATTR_NAS_PORT_TYPE
NAS-Port-Type.
@ RADIUS_CODE_ACCESS_ACCEPT
Access-Accept.
Definition: radius.h:60
@ RADIUS_ATTR_PKM_CRYPTOSUITE_LIST
PKM-Cryptosuite-List.
@ RADIUS_ATTR_DIGEST_METHOD
Digest-Method.
@ RADIUS_ATTR_ACCT_TUNNEL_CONNECTION
Acct-Tunnel-Connection.
@ RADIUS_CODE_ACCESS_CHALLENGE
Access-Challenge.
Definition: radius.h:64
@ RADIUS_ATTR_PMIP6_VISITED_LMA_IPV6_ADDR
PMIP6-Visited-LMA-IPv6-Address.
@ RADIUS_ATTR_TUNNEL_SERVER_AUTH_ID
Tunnel-Server-Auth-ID.
@ RADIUS_ATTR_WLAN_GROUP_CIPHER
WLAN-Group-Cipher.
@ RADIUS_ATTR_LOGIN_LAT_NODE
Login-LAT-Node.
@ RADIUS_ATTR_PMIP6_HOME_IPV4_GATEWAY
PMIP6-Home-IPv4-Gateway.
@ RADIUS_ATTR_ARAP_ZONE_ACCESS
ARAP-Zone-Access.
RadiusAttribute
@ RADIUS_ATTR_FRAMED_PROTOCOL
Framed-Protocol.
@ RADIUS_ATTR_WLAN_REASON_CODE
WLAN-Reason-Code.
@ RADIUS_ATTR_USER_NAME
User-Name.
@ RADIUS_ATTR_STATEFUL_IPV6_ADDR_POOL
Stateful-IPv6-Address-Pool.
#define ntohs(value)
Definition: cpu_endian.h:421
void radiusDumpIpv6Addr(const uint8_t *data, size_t length)
Dump an attribute containing an IPv6 address.
Definition: radius_debug.c:523
@ RADIUS_ATTR_TUNNEL_TYPE
Tunnel-Type.
#define TRACE_DEBUG(...)
Definition: debug.h:107
char char_t
Definition: compiler_port.h:48
@ RADIUS_ATTR_ACCT_INTERIM_INTERVAL
Acct-Interim-Interval.
#define ipv6CopyAddr(destIpAddr, srcIpAddr)
Definition: ipv6.h:123
#define TRACE_DEBUG_ARRAY(p, a, n)
Definition: debug.h:108
@ RADIUS_ATTR_PMIP6_HOME_IPV4_HOA
PMIP6-Home-IPv4-HoA.
@ RADIUS_ATTR_TUNNEL_SERVER_ENDPOINT
Tunnel-Server-Endpoint.
@ RADIUS_ATTR_LOCATION_DATA
Location-Data.
@ RADIUS_ATTR_WLAN_HESSID
WLAN-HESSID.
@ RADIUS_ATTR_FRAMED_APPLETALK_NETWORK
Framed-AppleTalk-Network.
@ RADIUS_ATTR_BASIC_LOCATION_POLICY_RULES
Basic-Location-Policy-Rules.
Parameter value/name binding.
Definition: radius_debug.h:51
@ RADIUS_ATTR_DIGEST_URI
Digest-URI.
const char_t * radiusGetParamName(uint_t value, const RadiusParamName *paramList, size_t paramListLen)
Convert a parameter to string representation.
Definition: radius_debug.c:568
@ RADIUS_ATTR_FRAMED_IPV6_ADDR
Framed-IPv6-Address.
@ RADIUS_CODE_ACCOUNTING_RESPONSE
Accounting-Response.
Definition: radius.h:63
void radiusDumpIpv4Addr(const uint8_t *data, size_t length)
Dump an attribute containing an IPv4 address.
Definition: radius_debug.c:500
@ RADIUS_ATTR_NAS_IP_ADDR
NAS-IP-Address.
@ RADIUS_ATTR_DIGEST_REALM
Digest-Realm.
@ RADIUS_ATTR_CALLED_STATION_ID
Called-Station-Id.
@ RADIUS_ATTR_DIGEST_AKA_AUTS
Digest-AKA-Auts.
@ RADIUS_ATTR_DIGEST_QOP
Digest-Qop.
@ RADIUS_ATTR_PMIP6_HOME_DHCP6_SERVER_ADDR
PMIP6-Home-DHCP6-Server-Address.
@ RADIUS_ATTR_TERMINATION_ACTION
Termination-Action.
uint8_t value[]
Definition: tcp.h:369
@ RADIUS_ATTR_SERVICE_TYPE
Service-Type.
@ RADIUS_ATTR_ERROR_CAUSE
Error-Cause.
@ RADIUS_ATTR_ROUTE_IPV6_INFORMATION
Route-IPv6-Information.
@ RADIUS_ATTR_FRAMED_IP_NETMASK
Framed-IP-Netmask.
@ RADIUS_ATTR_PROXY_STATE
Proxy-State.
@ RADIUS_ATTR_WLAN_VENUE_INFO
WLAN-Venue-Info.
@ RADIUS_ATTR_MANAGEMENT_TRANSPORT_PROTECTION
Management-Transport-Protection.
@ RADIUS_ATTR_EAP_SERVER_ID
EAP-Server-Id.
@ RADIUS_ATTR_MANAGEMENT_POLICY_ID
Management-Policy-Id.
@ RADIUS_ATTR_FRAMED_ROUTING
Framed-Routing.
@ RADIUS_ATTR_ACCT_OUTPUT_PACKETS
Acct-Output-Packets.
@ RADIUS_ATTR_MIP6_HOME_LINK_PREFIX
MIP6-Home-Link-Prefix.
@ RADIUS_ATTR_PMIP6_VISITED_DHCP4_SERVER_ADDR
PMIP6-Visited-DHCP4-Server-Address.
@ RADIUS_ATTR_NAS_PORT_ID
NAS-Port-Id.
#define ipv4CopyAddr(destIpAddr, srcIpAddr)
Definition: ipv4.h:155
@ RADIUS_ATTR_NAS_FILTER_RULE
NAS-Filter-Rule.
@ RADIUS_ATTR_DIGEST_STALE
Digest-Stale.
@ RADIUS_ATTR_PROMPT
Prompt.
@ RADIUS_ATTR_GSS_ACCEPTOR_REALM_NAME
GSS-Acceptor-Realm-Name.
@ RADIUS_ATTR_SIP_AOR
SIP-AOR.
Ipv4Addr ipAddr
Definition: ipcp.h:105
@ RADIUS_ATTR_TUNNEL_PREFERENCE
Tunnel-Preference.
@ RADIUS_ATTR_WLAN_GROUP_MGMT_CIPHER
WLAN-Group-Mgmt-Cipher.
@ RADIUS_ATTR_ACCT_INPUT_OCTETS
Acct-Input-Octets.
@ RADIUS_ATTR_TUNNEL_MEDIUM_TYPE
Tunnel-Medium-Type.
@ RADIUS_ATTR_DIGEST_RESPONSE
Digest-Response.
@ RADIUS_ATTR_DIGEST_HA1
Digest-HA1.
@ RADIUS_ATTR_ACCT_SESSION_TIME
Acct-Session-Time.
unsigned int uint_t
Definition: compiler_port.h:50
@ RADIUS_ATTR_IDLE_TIMEOUT
Idle-Timeout.
char_t * ipv4AddrToString(Ipv4Addr ipAddr, char_t *str)
Convert a binary IPv4 address to dot-decimal notation.
Definition: ipv4.c:1457
@ RADIUS_ATTR_PMIP6_HOME_HN_PREFIX
PMIP6-Home-HN-Prefix.
@ RADIUS_ATTR_CALLBACK_NUMBER
Callback-Number.
@ RADIUS_ATTR_CLASS
Class.
@ RADIUS_ATTR_WLAN_VENUE_LANGUAGE
WLAN-Venue-Language.
@ RADIUS_ATTR_PKM_CA_CERT
PKM-CA-Cert.
@ RADIUS_ATTR_WLAN_RF_BAND
WLAN-RF-Band.
@ RADIUS_ATTR_TUNNEL_CLIENT_AUTH_ID
Tunnel-Client-Auth-ID.
@ RADIUS_ATTR_DIGEST_CNONCE
Digest-CNonce.
@ RADIUS_ATTR_LOCATION_INFORMATION
Location-Information.
@ RADIUS_ATTR_DIGEST_NONCE
Digest-Nonce.
@ RADIUS_ATTR_PKM_CONFIG_SETTINGS
PKM-Config-Settings.
@ RADIUS_ATTR_EAP_KEY_NAME
EAP-Key-Name.
Debugging facilities.
@ RADIUS_ATTR_ACCT_INPUT_GIGAWORDS
Acct-Input-Gigawords.
@ RADIUS_ATTR_GSS_ACCEPTOR_SERVICE_NAME
GSS-Acceptor-Service-Name.
@ RADIUS_ATTR_EAPOL_ANNOUNCEMENT
EAPoL-Announcement.
#define arraysize(a)
Definition: os_port.h:71
@ RADIUS_ATTR_EXTENDED_ATTR_2
Extended-Attribute-2.
@ RADIUS_ATTR_EAP_PEER_ID
EAP-Peer-Id.
@ RADIUS_ATTR_ACCT_TERMINATE_CAUSE
Acct-Terminate-Cause.
#define TRACE_VERBOSE_ARRAY(p, a, n)
Definition: debug.h:125
@ RADIUS_ATTR_PREAUTH_TIMEOUT
Preauth-Timeout.