00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef __DIAMETER_NASREQ_PARSER_H__
00043 #define __DIAMETER_NASREQ_PARSER_H__
00044
00045 #include <vector>
00046 #include "diameter_parser_api.h"
00047
00048 const diameter_unsigned32_t NasreqApplicationId = 1;
00049 const AAACommandCode AA_CommandCode = 265;
00050
00052 class tunneling_t
00053 {
00054 public:
00055
00056 void CopyTo(AAAAvpContainerList &cl)
00057 {
00058 AAAAvpContainerManager cm;
00059 AAAAvpContainer *c;
00060 if (TunnelType.IsSet())
00061 {
00062 c = cm.acquire("Tunnel-Type");
00063 TunnelType.CopyTo(*c, AAA_AVP_ENUM_TYPE);
00064 cl.add(c);
00065 }
00066 if (TunnelMediumType.IsSet())
00067 {
00068 c = cm.acquire("Tunnel-Medium-Type");
00069 TunnelMediumType.CopyTo(*c, AAA_AVP_ENUM_TYPE);
00070 cl.add(c);
00071 }
00072 if (TunnelClientEndpoint.IsSet())
00073 {
00074 c = cm.acquire("Tunnel-Client-Endpoint");
00075 TunnelClientEndpoint.CopyTo(*c, AAA_AVP_UTF8_STRING_TYPE);
00076 cl.add(c);
00077 }
00078 if (TunnelServerEndpoint.IsSet())
00079 {
00080 c = cm.acquire("Tunnel-Server-Endpoint");
00081 TunnelServerEndpoint.CopyTo(*c, AAA_AVP_UTF8_STRING_TYPE);
00082 cl.add(c);
00083 }
00084 if (TunnelPreference.IsSet())
00085 {
00086 c = cm.acquire("Tunnel-Preference");
00087 TunnelPreference.CopyTo(*c, AAA_AVP_UINTEGER32_TYPE);
00088 cl.add(c);
00089 }
00090 if (TunnelClientAuthId.IsSet())
00091 {
00092 c = cm.acquire("Tunnel-Client-Auth-Id");
00093 TunnelClientAuthId.CopyTo(*c, AAA_AVP_UINTEGER32_TYPE);
00094 cl.add(c);
00095 }
00096 if (TunnelServerAuthId.IsSet())
00097 {
00098 c = cm.acquire("Tunnel-Server-Auth-Id");
00099 TunnelServerAuthId.CopyTo(*c, AAA_AVP_UINTEGER32_TYPE);
00100 cl.add(c);
00101 }
00102 if (TunnelPassword.IsSet())
00103 {
00104 c = cm.acquire("Tunnel-Password");
00105 TunnelPassword.CopyTo(*c, AAA_AVP_STRING_TYPE);
00106 cl.add(c);
00107 }
00108 if (TunnelPrivateGroupId.IsSet())
00109 {
00110 c = cm.acquire("Tunnel-Private-Group-Id");
00111 TunnelPrivateGroupId.CopyTo(*c, AAA_AVP_UTF8_STRING_TYPE);
00112 cl.add(c);
00113 }
00114 }
00115 void CopyFrom(AAAAvpContainerList &cl)
00116 {
00117 AAAAvpContainer *c;
00118
00119 if ((c = cl.search("Tunnel-Type")))
00120 {
00121 TunnelType.CopyFrom(*c);
00122 }
00123 if ((c = cl.search("Tunnel-Medium-Type")))
00124 {
00125 TunnelMediumType.CopyFrom(*c);
00126 }
00127 if ((c = cl.search("Tunnel-Client-Endpoint")))
00128 {
00129 TunnelClientEndpoint.CopyFrom(*c);
00130 }
00131 if ((c = cl.search("Tunnel-Server-Endpoint")))
00132 {
00133 TunnelServerEndpoint.CopyFrom(*c);
00134 }
00135 if ((c = cl.search("Tunnel-Preference")))
00136 {
00137 TunnelPreference.CopyFrom(*c);
00138 }
00139 if ((c = cl.search("Tunnel-Client-Auth-Id")))
00140 {
00141 TunnelClientAuthId.CopyFrom(*c);
00142 }
00143 if ((c = cl.search("Tunnel-Server-Auth-Id")))
00144 {
00145 TunnelServerAuthId.CopyFrom(*c);
00146 }
00147 if ((c = cl.search("Tunnel-Password")))
00148 {
00149 TunnelPassword.CopyFrom(*c);
00150 }
00151 if ((c = cl.search("Tunnel-Private-Group-Id")))
00152 {
00153 TunnelPrivateGroupId.CopyFrom(*c);
00154 }
00155 }
00156
00157 AAA_ScholarAttribute<diameter_enumerated_t> TunnelType;
00158 AAA_ScholarAttribute<diameter_enumerated_t> TunnelMediumType;
00159 AAA_ScholarAttribute<diameter_utf8string_t> TunnelClientEndpoint;
00160 AAA_ScholarAttribute<diameter_utf8string_t> TunnelServerEndpoint;
00161
00162 AAA_ScholarAttribute<diameter_unsigned32_t> TunnelPreference;
00163 AAA_ScholarAttribute<diameter_unsigned32_t> TunnelClientAuthId;
00164 AAA_ScholarAttribute<diameter_unsigned32_t> TunnelServerAuthId;
00165 AAA_ScholarAttribute<diameter_octetstring_t> TunnelPassword;
00166 AAA_ScholarAttribute<diameter_utf8string_t> TunnelPrivateGroupId;
00167 };
00168
00170 class proxyinfo_t
00171 {
00172 public:
00173 void CopyTo(AAAAvpContainerList &cl)
00174 {
00175 AAAAvpContainerManager cm;
00176 AAAAvpContainer *c;
00177 if (ProxyHost.IsSet())
00178 {
00179 c = cm.acquire("Proxy-Host");
00180 ProxyHost.CopyTo(*c, AAA_AVP_DIAMID_TYPE);
00181 cl.add(c);
00182 }
00183 if (ProxyState.IsSet())
00184 {
00185 c = cm.acquire("Proxy-State");
00186 ProxyState.CopyTo(*c, AAA_AVP_STRING_TYPE);
00187 cl.add(c);
00188 }
00189 if (Avp.IsSet())
00190 {
00191 c = cm.acquire("AVP");
00192 Avp.CopyTo(*c, AAA_AVP_CUSTOM_TYPE);
00193 cl.add(c);
00194 }
00195 }
00196 void CopyFrom(AAAAvpContainerList &cl)
00197 {
00198 AAAAvpContainer *c;
00199 if ((c = cl.search("Proxy-Host")))
00200 {
00201 ProxyHost.CopyFrom(*c);
00202 }
00203 if ((c = cl.search("Proxy-State")))
00204 {
00205 ProxyState.CopyFrom(*c);
00206 }
00207 if ((c = cl.search("AVP")))
00208 {
00209 Avp.CopyFrom(*c);
00210 }
00211 }
00212
00213 AAA_ScholarAttribute<diameter_identity_t> ProxyHost;
00214 AAA_ScholarAttribute<diameter_octetstring_t> ProxyState;
00215
00216 AAA_VectorAttribute<avp_t> Avp;
00217 };
00218
00221 class chap_auth_t
00222 {
00223 public:
00224 void CopyTo(AAAAvpContainerList &cl)
00225 {
00226 AAAAvpContainerManager cm;
00227 AAAAvpContainer *c;
00228 if (ChapAlgorithm.IsSet())
00229 {
00230 c = cm.acquire("CHAP-Algorithm");
00231 ChapAlgorithm.CopyTo(*c, AAA_AVP_ENUM_TYPE);
00232 cl.add(c);
00233 }
00234 if (ChapIdent.IsSet())
00235 {
00236 c = cm.acquire("CHAP-Ident");
00237 ChapIdent.CopyTo(*c, AAA_AVP_STRING_TYPE);
00238 cl.add(c);
00239 }
00240 if (ChapResponse.IsSet())
00241 {
00242 c = cm.acquire("CHAP-Response");
00243 ChapResponse.CopyTo(*c, AAA_AVP_STRING_TYPE);
00244 cl.add(c);
00245 }
00246 if (Avp.IsSet())
00247 {
00248 c = cm.acquire("AVP");
00249 Avp.CopyTo(*c, AAA_AVP_CUSTOM_TYPE);
00250 cl.add(c);
00251 }
00252 }
00253 void CopyFrom(AAAAvpContainerList &cl)
00254 {
00255 AAAAvpContainer *c;
00256 if ((c = cl.search("CHAP-Algorithm")))
00257 {
00258 ChapAlgorithm.CopyFrom(*c);
00259 }
00260 if ((c = cl.search("CHAP-Ident")))
00261 {
00262 ChapIdent.CopyFrom(*c);
00263 }
00264 if ((c = cl.search("CHAP-Response")))
00265 {
00266 ChapResponse.CopyFrom(*c);
00267 }
00268 if ((c = cl.search("AVP")))
00269 {
00270 Avp.CopyFrom(*c);
00271 }
00272 }
00273
00274 AAA_ScholarAttribute<diameter_enumerated_t> ChapAlgorithm;
00275
00276 #define CHAP_ALGORITHM_MD5 5
00277
00278 AAA_ScholarAttribute<diameter_octetstring_t> ChapIdent;
00279
00280 AAA_ScholarAttribute<diameter_octetstring_t> ChapResponse;
00281 AAA_VectorAttribute<avp_t> Avp;
00282 };
00283
00285 class AA_RequestData
00286 {
00287 public:
00289 AA_RequestData() {}
00290
00292 AA_RequestData* Self() { return this; }
00293
00295 void Clear()
00296 {
00297 SessionId.Clear();
00298 AuthApplicationId.Clear();
00299 OriginHost.Clear();
00300 OriginRealm.Clear();
00301 DestinationRealm.Clear();
00302 AuthRequestType.Clear();
00303 DestinationHost.Clear();
00304 NasIdentifier.Clear();
00305 NasIpAddress.Clear();
00306 NasIpv6Address.Clear();
00307 NasPort.Clear();
00308 NasPortId.Clear();
00309 NasPortType.Clear();
00310 OriginStateId.Clear();
00311 PortLimit.Clear();
00312 UserName.Clear();
00313 UserPassword.Clear();
00314 ServiceType.Clear();
00315 State.Clear();
00316 AuthorizationLifetime.Clear();
00317 AuthGracePeriod.Clear();
00318 AuthSessionState.Clear();
00319 CallbackNumber.Clear();
00320 CalledStationId.Clear();
00321 CallingStationId.Clear();
00322 OriginatingLineInfo.Clear();
00323 ConnectInfo.Clear();
00324 ChapAuth.Clear();
00325 ChapChallenge.Clear();
00326 FramedCompression.Clear();
00327 FramedInterfaceId.Clear();
00328 FramedIpAddress.Clear();
00329 FramedIpv6Prefix.Clear();
00330 FramedIpNetmask.Clear();
00331 FramedMtu.Clear();
00332 FramedProtocol.Clear();
00333 ArapPassword.Clear();
00334 ArapChallengeResponse.Clear();
00335 ArapSecurity.Clear();
00336 ArapSecurityData.Clear();
00337 LoginIpHost.Clear();
00338 LoginIpv6Host.Clear();
00339 LoginLatGroup.Clear();
00340 LoginLatNode.Clear();
00341 LoginLatPort.Clear();
00342 LoginLatService.Clear();
00343 Tunneling.Clear();
00344 ProxyInfo.Clear();
00345 RouteRecord.Clear();
00346 Avp.Clear();
00347 }
00348
00350 AAA_ScholarAttribute<diameter_utf8string_t> SessionId;
00351 AAA_ScholarAttribute<diameter_unsigned32_t> AuthApplicationId;
00352 AAA_ScholarAttribute<diameter_identity_t> OriginHost;
00353 AAA_ScholarAttribute<diameter_identity_t> OriginRealm;
00354 AAA_ScholarAttribute<diameter_identity_t> DestinationRealm;
00355
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383 AAA_ScholarAttribute<diameter_enumerated_t> AuthRequestType;
00384 AAA_ScholarAttribute<diameter_identity_t> DestinationHost;
00385 AAA_ScholarAttribute<diameter_utf8string_t> NasIdentifier;
00386 AAA_ScholarAttribute<diameter_octetstring_t> NasIpAddress;
00387 AAA_ScholarAttribute<diameter_octetstring_t> NasIpv6Address;
00388 AAA_ScholarAttribute<diameter_unsigned32_t> NasPort;
00389 AAA_ScholarAttribute<diameter_utf8string_t> NasPortId;
00390 AAA_ScholarAttribute<diameter_enumerated_t> NasPortType;
00391 AAA_ScholarAttribute<diameter_unsigned32_t> OriginStateId;
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404 AAA_ScholarAttribute<diameter_unsigned32_t> PortLimit;
00405 AAA_ScholarAttribute<diameter_utf8string_t> UserName;
00406 AAA_ScholarAttribute<diameter_utf8string_t> UserPassword;
00407
00408
00409
00410
00411
00412
00413
00414
00415
00416
00417
00418
00419
00420
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436
00437 AAA_ScholarAttribute<diameter_enumerated_t> ServiceType;
00438
00439
00440
00441
00442
00443
00444
00445
00446
00447
00448
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458
00459
00460
00461 AAA_ScholarAttribute<diameter_octetstring_t> State;
00462 AAA_ScholarAttribute<diameter_unsigned32_t> AuthorizationLifetime;
00463 AAA_ScholarAttribute<diameter_unsigned32_t> AuthGracePeriod;
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509
00510
00511
00512 AAA_ScholarAttribute<diameter_enumerated_t> AuthSessionState;
00513
00514
00515
00516
00517
00518
00519
00520
00521
00522
00523
00524
00525
00526
00527 AAA_ScholarAttribute<diameter_utf8string_t> CallbackNumber;
00528 AAA_ScholarAttribute<diameter_utf8string_t> CalledStationId;
00529 AAA_ScholarAttribute<diameter_utf8string_t> CallingStationId;
00530 AAA_ScholarAttribute<diameter_octetstring_t> OriginatingLineInfo;
00531 AAA_ScholarAttribute<diameter_utf8string_t> ConnectInfo;
00532 AAA_GroupedScholarAttribute<chap_auth_t> ChapAuth;
00533 AAA_ScholarAttribute<diameter_octetstring_t> ChapChallenge;
00534 AAA_VectorAttribute<diameter_enumerated_t> FramedCompression;
00535 AAA_ScholarAttribute<diameter_unsigned64_t> FramedInterfaceId;
00536 AAA_ScholarAttribute<diameter_octetstring_t> FramedIpAddress;
00537 AAA_VectorAttribute<diameter_octetstring_t> FramedIpv6Prefix;
00538 AAA_ScholarAttribute<diameter_octetstring_t> FramedIpNetmask;
00539
00540
00541
00542
00543
00544
00545
00546
00547
00548
00549
00550 AAA_ScholarAttribute<diameter_unsigned32_t> FramedMtu;
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565
00566
00567
00568 AAA_ScholarAttribute<diameter_enumerated_t> FramedProtocol;
00569 AAA_ScholarAttribute<diameter_octetstring_t> ArapPassword;
00570 AAA_ScholarAttribute<diameter_octetstring_t> ArapChallengeResponse;
00571 AAA_ScholarAttribute<diameter_unsigned32_t> ArapSecurity;
00572 AAA_VectorAttribute<diameter_octetstring_t> ArapSecurityData;
00573 AAA_VectorAttribute<diameter_octetstring_t> LoginIpHost;
00574 AAA_VectorAttribute<diameter_octetstring_t> LoginIpv6Host;
00575 AAA_ScholarAttribute<diameter_octetstring_t> LoginLatGroup;
00576 AAA_ScholarAttribute<diameter_octetstring_t> LoginLatNode;
00577 AAA_ScholarAttribute<diameter_octetstring_t> LoginLatPort;
00578 AAA_ScholarAttribute<diameter_octetstring_t> LoginLatService;
00579 AAA_GroupedVectorAttribute<tunneling_t> Tunneling;
00580 AAA_GroupedVectorAttribute<proxyinfo_t> ProxyInfo;
00581 AAA_VectorAttribute<diameter_identity_t> RouteRecord;
00582 AAA_VectorAttribute<avp_t> Avp;
00583 };
00584
00586 class AA_AnswerData
00587 {
00588 public:
00590 AA_AnswerData() {}
00591
00593 AA_AnswerData* Self() { return this; }
00594
00596 void Clear()
00597 {
00598 SessionId.Clear();
00599 AuthApplicationId.Clear();
00600 AuthRequestType.Clear();
00601 ResultCode.Clear();
00602 OriginHost.Clear();
00603 OriginRealm.Clear();
00604 UserName.Clear();
00605 ServiceType.Clear();
00606 Class.Clear();
00607 ConfigurationToken.Clear();
00608 AcctInterimInterval.Clear();
00609 ErrorMessage.Clear();
00610 ErrorReportingHost.Clear();
00611 IdleTimeout.Clear();
00612 AuthorizationLifetime.Clear();
00613 AuthGracePeriod.Clear();
00614 AuthSessionState.Clear();
00615 ReAuthRequestType.Clear();
00616 SessionTimeout.Clear();
00617 State.Clear();
00618 ReplyMessage.Clear();
00619 OriginStateId.Clear();
00620 FilterId.Clear();
00621 PasswordRetry.Clear();
00622 PortLimit.Clear();
00623 Prompt.Clear();
00624 ArapChallengeResponse.Clear();
00625 ArapFeatures.Clear();
00626 ArapSecurity.Clear();
00627 ArapSecurityData.Clear();
00628 ArapZoneAccess.Clear();
00629 CallbackId.Clear();
00630 CallbackNumber.Clear();
00631 FramedAppletalkLink.Clear();
00632 FramedAppletalkNetwork.Clear();
00633 FramedAppletalkZone.Clear();
00634 FramedCompression.Clear();
00635 FramedInterfaceId.Clear();
00636 FramedIpAddress.Clear();
00637 FramedIpv6Prefix.Clear();
00638 FramedIpv6Pool.Clear();
00639 FramedIpv6Route.Clear();
00640 FramedIpNetmask.Clear();
00641 FramedRoute.Clear();
00642 FramedMtu.Clear();
00643 FramedRoute.Clear();
00644 FramedPool.Clear();
00645 FramedIpxNetwork.Clear();
00646 FramedMtu.Clear();
00647 FramedProtocol.Clear();
00648 FramedRouting.Clear();
00649 LoginLatGroup.Clear();
00650 LoginLatNode.Clear();
00651 LoginLatPort.Clear();
00652 LoginLatService.Clear();
00653 LoginService.Clear();
00654 LoginTcpPort.Clear();
00655 NasFilterRule.Clear();
00656 Tunneling.Clear();
00657 RedirectHost.Clear();
00658 RedirectHostUsage.Clear();
00659 RedirectMaxCacheTime.Clear();
00660 ProxyInfo.Clear();
00661 Avp.Clear();
00662 }
00663
00665 AAA_ScholarAttribute<diameter_utf8string_t> SessionId;
00666 AAA_ScholarAttribute<diameter_unsigned32_t> AuthApplicationId;
00667 AAA_ScholarAttribute<diameter_enumerated_t> AuthRequestType;
00668 AAA_ScholarAttribute<diameter_unsigned32_t> ResultCode;
00669 AAA_ScholarAttribute<diameter_identity_t> OriginHost;
00670 AAA_ScholarAttribute<diameter_identity_t> OriginRealm;
00671 AAA_ScholarAttribute<diameter_utf8string_t> UserName;
00672 AAA_ScholarAttribute<diameter_enumerated_t> ServiceType;
00673 AAA_VectorAttribute<diameter_octetstring_t> Class;
00674
00675
00676
00677
00678
00679
00680
00681
00682
00683
00684
00685
00686 AAA_VectorAttribute<diameter_octetstring_t> ConfigurationToken;
00687 AAA_ScholarAttribute<diameter_unsigned32_t> AcctInterimInterval;
00688 AAA_ScholarAttribute<diameter_utf8string_t> ErrorMessage;
00689 AAA_ScholarAttribute<diameter_identity_t> ErrorReportingHost;
00690 AAA_ScholarAttribute<diameter_unsigned32_t> IdleTimeout;
00691 AAA_ScholarAttribute<diameter_unsigned32_t> AuthorizationLifetime;
00692 AAA_ScholarAttribute<diameter_unsigned32_t> AuthGracePeriod;
00693 AAA_ScholarAttribute<diameter_enumerated_t> AuthSessionState;
00694 AAA_ScholarAttribute<diameter_enumerated_t> ReAuthRequestType;
00695 AAA_ScholarAttribute<diameter_unsigned32_t> SessionTimeout;
00696 AAA_ScholarAttribute<diameter_octetstring_t> State;
00697
00698
00699
00700
00701
00702
00703
00704
00705
00706
00707
00708
00709
00710
00711
00712
00713
00714
00715
00716
00717 AAA_VectorAttribute<diameter_utf8string_t> ReplyMessage;
00718 AAA_ScholarAttribute<diameter_unsigned32_t> OriginStateId;
00719
00720
00721
00722
00723
00724
00725
00726
00727
00728
00729
00730
00731
00732
00733
00734
00735
00736
00737 AAA_VectorAttribute<diameter_utf8string_t> FilterId;
00738 AAA_ScholarAttribute<diameter_unsigned32_t> PasswordRetry;
00739 AAA_ScholarAttribute<diameter_unsigned32_t> PortLimit;
00740 AAA_ScholarAttribute<diameter_enumerated_t> Prompt;
00741 AAA_ScholarAttribute<diameter_octetstring_t> ArapChallengeResponse;
00742 AAA_VectorAttribute<diameter_octetstring_t> ArapFeatures;
00743 AAA_ScholarAttribute<diameter_unsigned32_t> ArapSecurity;
00744 AAA_VectorAttribute<diameter_octetstring_t> ArapSecurityData;
00745 AAA_ScholarAttribute<diameter_enumerated_t> ArapZoneAccess;
00746
00747
00748
00749
00750
00751
00752
00753
00754
00755
00756
00757
00758
00759
00760
00761 AAA_ScholarAttribute<diameter_utf8string_t> CallbackId;
00762 AAA_ScholarAttribute<diameter_utf8string_t> CallbackNumber;
00763 AAA_ScholarAttribute<diameter_unsigned32_t> FramedAppletalkLink;
00764 AAA_VectorAttribute<diameter_unsigned32_t> FramedAppletalkNetwork;
00765 AAA_ScholarAttribute<diameter_octetstring_t> FramedAppletalkZone;
00766 AAA_VectorAttribute<diameter_enumerated_t> FramedCompression;
00767 AAA_ScholarAttribute<diameter_unsigned64_t> FramedInterfaceId;
00768 AAA_ScholarAttribute<diameter_octetstring_t> FramedIpAddress;
00769 AAA_VectorAttribute<diameter_octetstring_t> FramedIpv6Prefix;
00770 AAA_ScholarAttribute<diameter_octetstring_t> FramedIpv6Pool;
00771 AAA_VectorAttribute<diameter_utf8string_t> FramedIpv6Route;
00772 AAA_ScholarAttribute<diameter_octetstring_t> FramedIpNetmask;
00773 AAA_VectorAttribute<diameter_utf8string_t> FramedRoute;
00774 AAA_ScholarAttribute<diameter_octetstring_t> FramedPool;
00775 AAA_ScholarAttribute<diameter_utf8string_t> FramedIpxNetwork;
00776 AAA_ScholarAttribute<diameter_unsigned32_t> FramedMtu;
00777 AAA_ScholarAttribute<diameter_enumerated_t> FramedProtocol;
00778
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788
00789
00790
00791
00792
00793
00794
00795 AAA_ScholarAttribute<diameter_enumerated_t> FramedRouting;
00796 AAA_VectorAttribute<diameter_ipfilter_rule_t> NasFilterRule;
00797 AAA_VectorAttribute<diameter_octetstring_t> LoginIpHost;
00798 AAA_VectorAttribute<diameter_octetstring_t> LoginIpv6Host;
00799 AAA_ScholarAttribute<diameter_octetstring_t> LoginLatGroup;
00800 AAA_ScholarAttribute<diameter_octetstring_t> LoginLatNode;
00801 AAA_ScholarAttribute<diameter_octetstring_t> LoginLatPort;
00802 AAA_ScholarAttribute<diameter_octetstring_t> LoginLatService;
00803 AAA_ScholarAttribute<diameter_enumerated_t> LoginService;
00804 AAA_ScholarAttribute<diameter_unsigned32_t> LoginTcpPort;
00805 AAA_GroupedVectorAttribute<tunneling_t> Tunneling;
00806 AAA_VectorAttribute<diameter_identity_t> RedirectHost;
00807 AAA_ScholarAttribute<diameter_enumerated_t> RedirectHostUsage;
00808 AAA_ScholarAttribute<diameter_unsigned32_t> RedirectMaxCacheTime;
00809 AAA_GroupedVectorAttribute<proxyinfo_t> ProxyInfo;
00810 AAA_VectorAttribute<avp_t> Avp;
00811 };
00812
00813 typedef AAAParser<AAAMessage*, AA_RequestData*> AA_RequestParser;
00814 typedef AAAParser<AAAMessage*, AA_AnswerData*> AA_AnswerParser;
00815
00816 void AA_RequestParser::parseRawToApp();
00817 void AA_RequestParser::parseAppToRaw();
00818
00819 void AA_AnswerParser::parseRawToApp();
00820 void AA_AnswerParser::parseAppToRaw();
00821
00822 #endif //__EAP_NASREQ_PARSER_H__