annotate extensions/app_radgw/rgw_common.h @ 1127:1af09cc156d6

Updated copyright information
author Sebastien Decugis <sdecugis@freediameter.net>
date Wed, 15 May 2013 10:39:25 +0800
parents cf09fde3d7f5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
1 /*********************************************************************************************************
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
2 * Software License Agreement (BSD License) *
740
4a9f08d6b6ba Updated my mail address
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 718
diff changeset
3 * Author: Sebastien Decugis <sdecugis@freediameter.net> *
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
4 * *
1127
1af09cc156d6 Updated copyright information
Sebastien Decugis <sdecugis@freediameter.net>
parents: 996
diff changeset
5 * Copyright (c) 2013, WIDE Project and NICT *
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
6 * All rights reserved. *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
7 * *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
8 * Redistribution and use of this software in source and binary forms, with or without modification, are *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
9 * permitted provided that the following conditions are met: *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
10 * *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
11 * * Redistributions of source code must retain the above *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
12 * copyright notice, this list of conditions and the *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
13 * following disclaimer. *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
14 * *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
15 * * Redistributions in binary form must reproduce the above *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
16 * copyright notice, this list of conditions and the *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
17 * following disclaimer in the documentation and/or other *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
18 * materials provided with the distribution. *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
19 * *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
20 * * Neither the name of the WIDE Project or NICT nor the *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
21 * names of its contributors may be used to endorse or *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
22 * promote products derived from this software without *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
23 * specific prior written permission of WIDE Project and *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
24 * NICT. *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
25 * *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
27 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
28 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
29 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
30 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
32 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
33 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
34 *********************************************************************************************************/
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
35
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
36 /* This file contains definitions for both app_radgw extension and its plugins. */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
37
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
38 #ifndef _RGW_COMMON_H
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
39 #define _RGW_COMMON_H
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
40
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
41 /* Include definitions from the freeDiameter framework */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
42 #include <freeDiameter/extension.h>
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
43
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
44 /* Include hostap files for RADIUS processings */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
45 #include "hostap_compat.h"
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
46 #include "md5.h"
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
47 #include "radius.h"
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
48
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
49
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
50 /**************************************************************/
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
51 /* Interface with gateway's plug-ins */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
52 /**************************************************************/
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
53 /* This structure is private for each plugin */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
54 struct rgwp_config;
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
55
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
56 /* This structure points to a RADIUS client description, the definition is not known to plugins */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
57 struct rgw_client;
403
26aafbbc1640 Cleanup all compilation warnings in base code for 32 bit arch
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 356
diff changeset
58
26aafbbc1640 Cleanup all compilation warnings in base code for 32 bit arch
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 356
diff changeset
59 int rgw_clients_getkey(struct rgw_client * cli, unsigned char **key, size_t *key_len);
26aafbbc1640 Cleanup all compilation warnings in base code for 32 bit arch
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 356
diff changeset
60 char * rgw_clients_id(struct rgw_client *cli);
706
4ffbc9f1e922 Large UNTESTED commit with the following changes:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 403
diff changeset
61 int rgw_clients_get_origin(struct rgw_client *cli, DiamId_t *fqdn, size_t *fqdnlen, DiamId_t *realm, size_t *realmlen);
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
62
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
63 /* Each plugin must provide the following structure. */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
64 extern struct rgw_api {
256
042af0000c0a Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 255
diff changeset
65 /* The name of the plugin */
042af0000c0a Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 255
diff changeset
66 const char * rgwp_name;
042af0000c0a Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 255
diff changeset
67
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
68 /* Parse the configuration file. It may be called several times with different configurations.
256
042af0000c0a Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 255
diff changeset
69 Called even if no configuration file is passed (with NULL conf_file parameter then) */
042af0000c0a Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 255
diff changeset
70 int (*rgwp_conf_parse) ( char * conf_file, struct rgwp_config ** state );
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
71
256
042af0000c0a Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 255
diff changeset
72 /* Cleanup the configuration state when the daemon is exiting (called even if state is NULL). */
042af0000c0a Ported the auth plugin
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 255
diff changeset
73 void (*rgwp_conf_free) (struct rgwp_config * state);
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
74
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
75 /* handle an incoming RADIUS message */
996
cf09fde3d7f5 Fix management of sessions in app_radgw: sessions are simply associated with messages, that is sufficient
Sebastien Decugis <sdecugis@freediameter.net>
parents: 740
diff changeset
76 int (*rgwp_rad_req) ( struct rgwp_config * conf, struct radius_msg * rad_req, struct radius_msg ** rad_ans, struct msg ** diam_fw, struct rgw_client * cli );
356
e203fc0c95e3 Updated the app_radgw extension to allow more souple management of sessions, and stateful gateway features.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 333
diff changeset
77 /* ret >0: critical error (errno), log and exit.
e203fc0c95e3 Updated the app_radgw extension to allow more souple management of sessions, and stateful gateway features.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 333
diff changeset
78 ret 0: continue;
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
79 ret -1: stop processing this message
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
80 ret -2: reply the content of rad_ans to the RADIUS client immediatly
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
81 */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
82
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
83 /* handle the corresponding Diameter answer */
996
cf09fde3d7f5 Fix management of sessions in app_radgw: sessions are simply associated with messages, that is sufficient
Sebastien Decugis <sdecugis@freediameter.net>
parents: 740
diff changeset
84 int (*rgwp_diam_ans) ( struct rgwp_config * conf, struct msg ** diam_ans, struct radius_msg ** rad_fw, struct rgw_client * cli );
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
85 /* ret 0: continue; ret >0: error; ret: -1 ... (tbd) */
356
e203fc0c95e3 Updated the app_radgw extension to allow more souple management of sessions, and stateful gateway features.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 333
diff changeset
86
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
87 } rgwp_descriptor;
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
88
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
89
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
90
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
91 /**************************************************************/
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
92 /* Additional definitions */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
93 /**************************************************************/
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
94 /* Type of message / server */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
95 #define RGW_PLG_TYPE_AUTH 1
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
96 #define RGW_PLG_TYPE_ACCT 2
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
97
273
bce8e5b7bf78 Added code to send an STR after a STOP accounting record in RADIUS
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 271
diff changeset
98 /* Class attribute prefix to store the Auth Application Id (required to send STR) */
bce8e5b7bf78 Added code to send an STR after a STOP accounting record in RADIUS
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 271
diff changeset
99 #define CLASS_AAI_PREFIX "fD/rgwx/aai:"
bce8e5b7bf78 Added code to send an STR after a STOP accounting record in RADIUS
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 271
diff changeset
100
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
101 /* Attributes missing from radius.h (not used in EAP) */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
102 enum { RADIUS_ATTR_CHAP_PASSWORD = 3,
333
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
103 RADIUS_ATTR_SERVICE_TYPE = 6,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
104 RADIUS_ATTR_FRAMED_PROTOCOL = 7,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
105 RADIUS_ATTR_FRAMED_IP_ADDRESS = 8,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
106 RADIUS_ATTR_FRAMED_IP_NETMASK = 9,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
107 RADIUS_ATTR_FRAMED_ROUTING = 10,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
108 RADIUS_ATTR_FILTER_ID = 11,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
109 RADIUS_ATTR_FRAMED_COMPRESSION = 13,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
110 RADIUS_ATTR_LOGIN_IP_HOST = 14,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
111 RADIUS_ATTR_LOGIN_SERVICE = 15,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
112 RADIUS_ATTR_LOGIN_TCP_PORT = 16,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
113 RADIUS_ATTR_CALLBACK_NUMBER = 19,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
114 RADIUS_ATTR_CALLBACK_ID = 20,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
115 RADIUS_ATTR_FRAMED_ROUTE = 22,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
116 RADIUS_ATTR_FRAMED_IPX_NETWORK = 23,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
117 RADIUS_ATTR_LOGIN_LAT_SERVICE = 34,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
118 RADIUS_ATTR_LOGIN_LAT_NODE = 35,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
119 RADIUS_ATTR_LOGIN_LAT_GROUP = 36,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
120 RADIUS_ATTR_FRAMED_APPLETALK_LINK = 37,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
121 RADIUS_ATTR_FRAMED_APPLETALK_NETWORK = 38,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
122 RADIUS_ATTR_FRAMED_APPLETALK_ZONE = 39,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
123 RADIUS_ATTR_CHAP_CHALLENGE = 60,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
124 RADIUS_ATTR_PORT_LIMIT = 62,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
125 RADIUS_ATTR_LOGIN_LAT_PORT = 63,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
126 RADIUS_ATTR_TUNNEL_CLIENT_ENDPOINT = 66,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
127 RADIUS_ATTR_TUNNEL_SERVER_ENDPOINT = 67,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
128 RADIUS_ATTR_TUNNEL_PASSWORD = 69,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
129 RADIUS_ATTR_ARAP_PASSWORD = 70,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
130 RADIUS_ATTR_ARAP_FEATURES = 71,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
131 RADIUS_ATTR_ARAP_ZONE_ACCESS = 72,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
132 RADIUS_ATTR_ARAP_SECURITY = 73,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
133 RADIUS_ATTR_ARAP_SECURITY_DATA = 74,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
134 RADIUS_ATTR_PASSWORD_RETRY = 75,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
135 RADIUS_ATTR_PROMPT = 76,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
136 RADIUS_ATTR_CONFIGURATION_TOKEN = 78,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
137 RADIUS_ATTR_TUNNEL_ASSIGNMENT_ID = 82,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
138 RADIUS_ATTR_TUNNEL_PREFERENCE = 83,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
139 RADIUS_ATTR_ARAP_CHALLENGE_RESPONSE = 84,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
140 RADIUS_ATTR_NAS_PORT_ID = 87,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
141 RADIUS_ATTR_FRAMED_POOL = 88,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
142 RADIUS_ATTR_TUNNEL_CLIENT_AUTH_ID = 90,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
143 RADIUS_ATTR_TUNNEL_SERVER_AUTH_ID = 91,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
144 RADIUS_ATTR_ORIGINATING_LINE_INFO = 94,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
145 RADIUS_ATTR_FRAMED_INTERFACE_ID = 96,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
146 RADIUS_ATTR_FRAMED_IPV6_PREFIX = 97,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
147 RADIUS_ATTR_LOGIN_IPV6_HOST = 98,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
148 RADIUS_ATTR_FRAMED_IPV6_ROUTE = 99,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
149 RADIUS_ATTR_FRAMED_IPV6_POOL = 100,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
150 RADIUS_ATTR_ERROR_CAUSE = 101,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
151 RADIUS_ATTR_EAP_KEY_NAME = 102,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
152 RADIUS_ATTR_DIGEST_RESPONSE = 103,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
153 RADIUS_ATTR_DIGEST_REALM = 104,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
154 RADIUS_ATTR_DIGEST_NONCE = 105,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
155 RADIUS_ATTR_DIGEST_RESPONSE_AUTH=106,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
156 RADIUS_ATTR_DIGEST_NEXTNONCE = 107,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
157 RADIUS_ATTR_DIGEST_METHOD = 108,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
158 RADIUS_ATTR_DIGEST_URI = 109,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
159 RADIUS_ATTR_DIGEST_QOP = 110,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
160 RADIUS_ATTR_DIGEST_ALGORITHM = 111,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
161 RADIUS_ATTR_DIGEST_ENTITY_BODY_HASH=112,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
162 RADIUS_ATTR_DIGEST_CNONCE = 113,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
163 RADIUS_ATTR_DIGEST_NONCE_COUNT = 114,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
164 RADIUS_ATTR_DIGEST_USERNAME = 115,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
165 RADIUS_ATTR_DIGEST_HA1 = 121,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
166 RADIUS_ATTR_SIP_AOR = 122
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
167 };
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
168
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
169 enum { DIAM_ATTR_USER_NAME = 1,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
170 DIAM_ATTR_USER_PASSWORD = 2,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
171 DIAM_ATTR_NAS_IP_ADDRESS = 4,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
172 DIAM_ATTR_NAS_PORT = 5,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
173 DIAM_ATTR_SERVICE_TYPE = 6,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
174 DIAM_ATTR_FRAMED_PROTOCOL = 7,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
175 DIAM_ATTR_FRAMED_IP_ADDRESS = 8,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
176 DIAM_ATTR_FRAMED_IP_NETMASK = 9,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
177 DIAM_ATTR_FRAMED_ROUTING = 10,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
178 DIAM_ATTR_FILTER_ID = 11,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
179 DIAM_ATTR_FRAMED_MTU = 12,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
180 DIAM_ATTR_FRAMED_COMPRESSION = 13,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
181 DIAM_ATTR_LOGIN_IP_HOST = 14,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
182 DIAM_ATTR_LOGIN_SERVICE = 15,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
183 DIAM_ATTR_LOGIN_TCP_PORT = 16,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
184 DIAM_ATTR_REPLY_MESSAGE = 18,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
185 DIAM_ATTR_CALLBACK_NUMBER = 19,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
186 DIAM_ATTR_CALLBACK_ID = 20,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
187 DIAM_ATTR_FRAMED_ROUTE = 22,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
188 DIAM_ATTR_FRAMED_IPX_NETWORK = 23,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
189 DIAM_ATTR_STATE = 24,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
190 DIAM_ATTR_CLASS = 25,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
191 DIAM_ATTR_IDLE_TIMEOUT = 28,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
192 DIAM_ATTR_NAS_IDENTIFIER = 32,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
193 DIAM_ATTR_LOGIN_LAT_SERVICE = 34,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
194 DIAM_ATTR_LOGIN_LAT_NODE = 35,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
195 DIAM_ATTR_LOGIN_LAT_GROUP = 36,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
196 DIAM_ATTR_FRAMED_APPLETALK_LINK = 37,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
197 DIAM_ATTR_FRAMED_APPLETALK_NETWORK = 38,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
198 DIAM_ATTR_FRAMED_APPLETALK_ZONE = 39,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
199 DIAM_ATTR_ACCT_SESSION_ID = 44,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
200 DIAM_ATTR_ACCT_MULTI_SESSION_ID = 50,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
201 DIAM_ATTR_EVENT_TIMESTAMP = 55,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
202 DIAM_ATTR_NAS_PORT_TYPE = 61,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
203 DIAM_ATTR_PORT_LIMIT = 62,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
204 DIAM_ATTR_LOGIN_LAT_PORT = 63,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
205 DIAM_ATTR_TUNNEL_TYPE = 64,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
206 DIAM_ATTR_TUNNEL_MEDIUM_TYPE = 65,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
207 DIAM_ATTR_TUNNEL_CLIENT_ENDPOINT = 66,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
208 DIAM_ATTR_TUNNEL_SERVER_ENDPOINT = 67,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
209 DIAM_ATTR_TUNNEL_PASSWORD = 69,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
210 DIAM_ATTR_ARAP_FEATURES = 71,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
211 DIAM_ATTR_ARAP_ZONE_ACCESS = 72,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
212 DIAM_ATTR_ARAP_SECURITY = 73,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
213 DIAM_ATTR_ARAP_SECURITY_DATA = 74,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
214 DIAM_ATTR_PASSWORD_RETRY = 75,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
215 DIAM_ATTR_PROMPT = 76,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
216 DIAM_ATTR_CONFIGURATION_TOKEN = 78,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
217 DIAM_ATTR_TUNNEL_PRIVATE_GROUP_ID = 81,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
218 DIAM_ATTR_TUNNEL_ASSIGNMENT_ID = 82,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
219 DIAM_ATTR_TUNNEL_PREFERENCE = 83,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
220 DIAM_ATTR_ARAP_CHALLENGE_RESPONSE = 84,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
221 DIAM_ATTR_ACCT_INTERIM_INTERVAL = 85,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
222 DIAM_ATTR_NAS_PORT_ID = 87,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
223 DIAM_ATTR_FRAMED_POOL = 88,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
224 DIAM_ATTR_TUNNEL_CLIENT_AUTH_ID = 90,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
225 DIAM_ATTR_TUNNEL_SERVER_AUTH_ID = 91,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
226 DIAM_ATTR_NAS_IPV6_ADDRESS = 95,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
227 DIAM_ATTR_FRAMED_INTERFACE_ID = 96,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
228 DIAM_ATTR_FRAMED_IPV6_PREFIX = 97,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
229 DIAM_ATTR_LOGIN_IPV6_HOST = 98,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
230 DIAM_ATTR_FRAMED_IPV6_ROUTE = 99,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
231 DIAM_ATTR_FRAMED_IPV6_POOL = 100,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
232 DIAM_ATTR_EAP_KEY_NAME = 102,
333
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
233 DIAM_ATTR_DIGEST_RESPONSE = 103,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
234 DIAM_ATTR_DIGEST_REALM = 104,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
235 DIAM_ATTR_DIGEST_NONCE = 105,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
236 DIAM_ATTR_DIGEST_RESPONSE_AUTH=106,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
237 DIAM_ATTR_DIGEST_NEXTNONCE = 107,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
238 DIAM_ATTR_DIGEST_METHOD = 108,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
239 DIAM_ATTR_DIGEST_URI = 109,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
240 DIAM_ATTR_DIGEST_QOP = 110,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
241 DIAM_ATTR_DIGEST_ALGORITHM = 111,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
242 DIAM_ATTR_DIGEST_ENTITY_BODY_HASH=112,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
243 DIAM_ATTR_DIGEST_CNONCE = 113,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
244 DIAM_ATTR_DIGEST_NONCE_COUNT = 114,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
245 DIAM_ATTR_DIGEST_USERNAME = 115,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
246 DIAM_ATTR_DIGEST_HA1 = 121,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
247 DIAM_ATTR_SIP_AOR = 122,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
248 DIAM_ATTR_AUTH_APPLICATION_ID = 258,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
249 DIAM_ATTR_ACCT_APPLICATION_ID = 259,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
250 DIAM_ATTR_VENDOR_SPECIFIC_APPLICATION_ID = 260,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
251 DIAM_ATTR_SESSION_ID = 263,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
252 DIAM_ATTR_ORIGIN_HOST = 264,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
253 DIAM_ATTR_MULTI_ROUND_TIMEOUT = 272,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
254 DIAM_ATTR_AUTH_REQUEST_TYPE = 274,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
255 DIAM_ATTR_AUTH_GRACE_PERIOD = 276,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
256 DIAM_ATTR_AUTH_SESSION_STATE = 277,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
257 DIAM_ATTR_ORIGIN_STATE_ID = 278,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
258 DIAM_ATTR_FAILED_AVP = 279,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
259 DIAM_ATTR_ERROR_MESSAGE = 281,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
260 DIAM_ATTR_ROUTE_RECORD = 282,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
261 DIAM_ATTR_PROXY_INFO = 284,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
262 DIAM_ATTR_ACCOUNTING_SUB_SESSION_ID = 287,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
263 DIAM_ATTR_ERROR_REPORTING_HOST = 294,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
264 DIAM_ATTR_TERMINATION_CAUSE = 295,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
265 DIAM_ATTR_ORIGIN_REALM = 296,
333
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
266 DIAM_ATTR_SIP_AUTH_DATA_ITEM = 376,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
267 DIAM_ATTR_SIP_AUTHENTICATION_SCHEME = 377,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
268 DIAM_ATTR_SIP_AUTHENTICATE = 379,
3baabc0da588 Added attributes for SIP, thanks to Alexandre for the contribution.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 273
diff changeset
269 DIAM_ATTR_SIP_NUMBER_AUTH_ITEMS = 382,
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
270 DIAM_ATTR_NAS_FILTER_RULE = 400,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
271 DIAM_ATTR_TUNNELING = 401,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
272 DIAM_ATTR_QOS_FILTER_RULE = 407,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
273 DIAM_ATTR_ORIGIN_AAA_PROTOCOL = 408,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
274 DIAM_ATTR_EAP_PAYLOAD = 462,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
275 DIAM_ATTR_EAP_REISSUED_PAYLOAD = 463,
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
276 DIAM_ATTR_EAP_MASTER_SESSION_KEY = 464,
271
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
277 DIAM_ATTR_ACCOUNTING_EAP_AUTH_METHOD = 465,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
278 DIAM_ATTR_ACCOUNTING_RECORD_TYPE = 480,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
279 DIAM_ATTR_ACCOUNTING_REALTIME_REQUIRED = 483,
411314907b43 Added translation of Accounting messages
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 258
diff changeset
280 DIAM_ATTR_ACCOUNTING_RECORD_NUMBER = 485
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
281 };
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
282
255
cb4307a1cd29 Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 254
diff changeset
283 const char * rgw_msg_attrtype_str(unsigned char c);
cb4307a1cd29 Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 254
diff changeset
284 const char * rgw_msg_code_str(unsigned char c);
cb4307a1cd29 Added two plugins for RADIUS/Diameter gateway debug.
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 254
diff changeset
285
254
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
286 #endif /* _RGW_COMMON_H */
a857024cb48b Ported the RADIUS/Diameter translation code from waaad project. Not tested yet. Gateway plugins to come later.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
287
"Welcome to our mercurial repository"