Skip to content
Snippets Groups Projects
Commit 12ae0cfc authored by Elemer Lelik's avatar Elemer Lelik
Browse files

Initial contribution

parent 1b0ad123
No related branches found
No related tags found
No related merge requests found
Showing
with 3630 additions and 0 deletions
/******************************************************************************
* Copyright (c) 2008, 2015 Ericsson AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Timea Moder
* Endre Kulcsar
* Gabor Szalai
* Janos Kovesdi
* Kulcsr Endre
* Zoltan Medve
* Tamas Korosi
******************************************************************************/
//
// File: BaseTypes_IETF_RFC2865.rdf
// Rev: <RnXnn>
// Prodnr: CNL 113 600
// Reference: RFC 2865(RADIUS)
//
//
//
//
// External functions for encoding and decoding
//
external function f_RADIUS_Enc(in PDU_RADIUS pdu) return octetstring;
external function f_RADIUS_Dec(in octetstring stream) return PDU_RADIUS;
external function f_calc_MD5(in octetstring input) return octetstring;
external function f_crypt_password(in octetstring P,in octetstring req_auth,in octetstring salt,in boolean decrypt,in charstring secret) return octetstring;
external function f_crypt_s_key(in octetstring s_key,in octetstring req_auth,in charstring secret, in boolean decrypt)return octetstring;
external function f_crypt_tunnel_password(in octetstring tunnel_password,in octetstring req_auth,in octetstring salt,in charstring secret, in boolean decrypt)return octetstring;
external function f_salt_value(inout vendor_specific_value pdu, in octetstring req_auth, in charstring secret, in boolean decrypt) return boolean;
external function f_convert_string_to_text(inout vendor_specific_value pdu) return boolean;
//
// Basic type definitions
//
type integer UINT8 (0..255) with {
variant "FIELDLENGTH(8)"
variant "BYTEORDER(last)"
}
type integer UINT16 (0..65535) with {
variant "FIELDLENGTH(16)"
variant "BYTEORDER(last)"
}
type integer UINT24 (0..16777215) with {
variant "FIELDLENGTH(24)"
variant "BYTEORDER(last)"
}
type integer UINT32 (0..4294967296) with {
variant "FIELDLENGTH(32)"
variant "BYTEORDER(last)"
}
type integer UINT64 with {
variant "FIELDLENGTH(64)"
variant "BYTEORDER(last)"
}
type integer INT32 with {
variant "FIELDLENGTH(32)"
variant "BYTEORDER(last)"
variant "COMP(2scompl)"
}
type octetstring OCTET1 length(1)
type octetstring OCTET2 length(2)
type octetstring OCTET3 length(3)
type octetstring OCTET4 length(4)
type octetstring OCTET8 length(8)
type octetstring OCTET16 length(16)
//
// Basic Attribute Data Formats
//
type charstring Attrib_Text length(1..253) with { variant "PADDING(yes)"};
type octetstring Attrib_String length(1..253);
type OCTET4 Attrib_Address;
type OCTET4 Attrib_Time;
type UINT32 Attrib_Value;
//
// Basic vendor specific value types
//
type union vendor_specific_value{
octetstring string_val,
charstring text_val,
UINT32 integer_val,
UINT64 integer64_val,
unsalted_value_integer_t unsalted_integer,
unsalted_value_text_t unsalted_text,
unsalted_value_string_t unsalted_string,
tagged_value_integer_t tagged_integer,
tagged_value_text_t tagged_text,
tagged_value_string_t tagged_string
}
type record unsalted_value_integer_t{
octetstring salt length(2),
UINT32 unsalted_value
}
type record unsalted_value_text_t{
octetstring salt length(2),
charstring unsalted_value
}
type record unsalted_value_string_t{
octetstring salt length(2),
octetstring unsalted_value
}
type record tagged_value_integer_t{
octetstring tag length(1),
UINT32 untagged_value
}
type record tagged_value_string_t{
octetstring tag length(1),
octetstring untagged_value
}
type record tagged_value_text_t{
octetstring tag length(1),
charstring untagged_value
}
/******************************************************************************
* Copyright (c) 2008, 2015 Ericsson AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Timea Moder
* Endre Kulcsar
* Gabor Szalai
* Janos Kovesdi
* Kulcsr Endre
* Zoltan Medve
* Tamas Korosi
******************************************************************************/
//
// File: Base_IETF_RFC2865.rdf
// Rev: <RnXnn>
// Prodnr: CNL 113 600
// Reference: RFC 2865(RADIUS)
//
//
//
// APPLICATION-NAME: Base
// APPLICATION-REVISION: RFC2865
// Packet-Type: Access-Request (1)
// Packet-Type: Access_Accept (2)
// Packet-Type: Access_Reject (3)
// Packet-Type: Accounting_Request (4)
// Packet-Type: Accounting_Response (5)
// Packet-Type: Access_Challenge (11)
// Packet-Type: Status_Server (12)
// Packet-Type: Status_Client (13)
// Packet-Type: Reserved (255)
// RFC 2865
// Attrib: User-Name (1)
type Attrib_String User_Name;
// RFC 2865
// Attrib: User-Password (2)
type Attrib_String User_Password;
// RFC 2865
// Attrib: CHAP-Password (3)
type record CHAP_Password
{
UINT8 CHAP_Ident,
Attrib_String String length(16)
}
// RFC 2865
// Attrib: NAS-IP-Address (4)
type Attrib_Address NAS_IP_Address;
// RFC 2865
// Attrib: NAS-Port (5)
type Attrib_Value NAS_Port;
// RFC 2865
// Attrib: Service-Type (6)
type enumerated Service_Type
{
Login (1),
Framed (2),
Callback_Login (3),
Callback_Framed (4),
Outbound (5),
Administrative (6),
NAS_Prompt (7),
Authenticate_Only (8),
Callback_NAS_Prompt (9),
Call_Check (10),
Callback_Administrative (11),
Authorize_Only (17)
}
// RFC 2865
// Attrib: Framed-Protocol (7)
type enumerated Framed_Protocol
{
PPP (1),
SLIP (2),
Appletalk_Remote_Access_Protocol (3),
Gandalf_proprietary_protocol (4),
Xylogics_proprietary (5),
Xpoint75_Syncronous (6),
GPRS_PDP_Context (7)
}
// RFC 2865
// Attrib: Framed-IP-Address (8)
type Attrib_Address Framed_IP_Address;
// RFC 2865
// Attrib: Framed-IP-Netmask (9)
type Attrib_Address Framed_IP_Netmask;
// RFC 2865
// Attrib: Framed-Routing (10)
type enumerated Framed_Routing
{
None (0),
Send_routing_pacets (1),
Listen_for_routing_pacets (2),
Send_and_Listen (3)
}
// RFC 2865
// Attrib: Filter-Id (11)
type Attrib_Text Filter_Id;
// RFC 2865
// Attrib: Framed-MTU (12)
type Attrib_Value Framed_MTU (64..65535);
// RFC 2865
// Attrib: Framed-Compression (13)
type enumerated Framed_Compression
{
None (0),
VJ_TCP_IP_header_compression (1),
IPX_header_compression (2),
STAC_LZS_compression (3)
}
// RFC 2865
// Attrib: Login-IP-Host (14)
type Attrib_Address Login_IP_Host;
// RFC 2865
// Attrib: Login-Service (15)
type enumerated Login_Service
{
Telnet (0),
Rlogin (1),
TCP_Clear (2),
Port_Master (3),
LAT (4),
X25_PAD (5),
X25_T3POS (6),
TCP_Clear_Quiet (7)
}
// RFC 2865
// Attrib: Login-TCP-Port (16)
type Attrib_Value Login_TCP_Port (0..65535);
// RFC 2865
// Attrib: Reply-Message (18)
type Attrib_Text Reply_Message;
// RFC 2865
// Attrib: Callback-Number (19)
type Attrib_String Callback_Number;
// RFC 2865
// Attrib: Callback-Id (20)
type Attrib_String Callback_Id;
// RFC 2865
// Attrib: Framed-Route (22)
type Attrib_Text Framed_Route;
// RFC 2865
// Attrib: Framed-IPX-Network (23)
type Attrib_Value Framed_IPX_Network;
// RFC 2865
// Attrib: State (24)
type Attrib_String State;
// RFC 2865
// Attrib: Class (25)
type Attrib_String Class;
// RFC 2865
// Attrib: Session-Timeout (27)
type Attrib_Value Session_Timeout;
// RFC 2865
// Attrib: Idle-Timeout (28)
type Attrib_Value Idle_Timeout;
// RFC 2865
// Attrib: Termination-Action (29)
type enumerated Termination_Action
{
Default (0),
RADIUS_Request (1)
}
// RFC 2865
// Attrib: Called-Station-Id (30)
type Attrib_String Called_Station_Id;
// RFC 2865
// Attrib: Calling-Station-Id (31)
type Attrib_String Calling_Station_Id;
// RFC 2865
// Attrib: NAS-Identifier (32)
type Attrib_String NAS_Identifier;
// RFC 2865
// Attrib: Proxy-State (33)
type Attrib_String Proxy_State;
// RFC 2865
// Attrib: Login-LAT-Service (34)
type Attrib_String Login_LAT_Service;
// RFC 2865
// Attrib: Login-LAT-Node (35)
type Attrib_String Login_LAT_Node;
// RFC 2865
// Attrib: Login-LAT-Group (36)
type Attrib_String Login_LAT_Group;
// RFC 2865
// Attrib: Framed-AppleTalk-Link (37)
type Attrib_Value Framed_AppleTalk_Link (0..65535);
// RFC 2865
// Attrib: Framed-AppleTalk-Network (38)
type Attrib_Value Framed_AppleTalk_Network (0..65535);
// RFC 2865
// Attrib: Framed-AppleTalk-Zone (39)
type Attrib_String Framed_AppleTalk_Zone;
// RFC 2865
// Attrib: CHAP-Challenge (60)
type Attrib_String CHAP_Challenge;
// RFC 2865
// Attrib: NAS-Port-Type (61)
type enumerated NAS_Port_Type
{
Async (0),
Sync (1),
ISDN_Sync (2),
ISDN_Async_v120 (3),
ISDN_Async_v110 (4),
Virtual (5),
PIAFS (6),
HDLC_Clear_Channel (7),
X25 (8),
X75 (9),
G3_Fax (10),
SDSL_Symmetric_DSL (11),
ADSL_CAP_Asymmetric_DSL (12),
ADSL_DMT_Asymmetric_DSL (13),
ISDL_ISDN_Digital_Subscriber_Line (14),
Ethernet (15),
xDSL (16),
Cable (17),
Wireless_Other (18),
Wireless_IEEE_80211 (19)
}
// RFC 2865
// Attrib: Port-Limit (62)
type Attrib_Value Port_Limit;
// RFC 2865
// Attrib: Login-LAT-Port (63)
type Attrib_String Login_LAT_Port;
// RFC 2865
// Attrib: Vendor-Specific (26)
type vendor_specific_type Vendor_Specific
/******************************************************************************
* Copyright (c) 2008, 2015 Ericsson AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Timea Moder
* Endre Kulcsar
* Gabor Szalai
* Janos Kovesdi
* Kulcsr Endre
* Zoltan Medve
* Tamas Korosi
******************************************************************************/
//
// File: ChargeableUserIdentity_IETF_RFC4372.rdf
// Rev: <RnXnn>
// Prodnr: CNL 113 600
// Reference: RFC 4372(Chargeable User Identity)
//
//
// APPLICATION-NAME: CUI
// APPLICATION-REVISION: RFC4372
// RFC 4372
// Attrib: CUI (89)
type Attrib_String CUI;
/******************************************************************************
* Copyright (c) 2008, 2015 Ericsson AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Timea Moder
* Endre Kulcsar
* Gabor Szalai
* Janos Kovesdi
* Kulcsr Endre
* Zoltan Medve
* Tamas Korosi
******************************************************************************/
//
// File: Cisco.rdf
// Rev: <RnXnn>
// Prodnr: CNL 113 600
// Reference:
//
//
// Vendor: cisco (9)
type record cisco_type
{
cisco_type_enum f_cisco_type,
UINT8 attrib_length_spec,
vendor_specific_value string_val
} with {
variant (attrib_length_spec) "LENGTHTO(f_cisco_type, attrib_length_spec, string_val)"
variant (string_val) "CROSSTAG(
integer_val, {f_cisco_type=multilink_id,
f_cisco_type=num_in_multilink,
f_cisco_type=pre_input_octets,
f_cisco_type=pre_output_octets,
f_cisco_type=pre_input_packets,
f_cisco_type=pre_output_packets,
f_cisco_type=maximum_time,
f_cisco_type=disconnect_cause,
f_cisco_type=date_rate,
f_cisco_type=presession_time,
f_cisco_type=pw_limetime,
f_cisco_type=ip_direct,
f_cisco_type=ppp_vj_slot_comp,
f_cisco_type=ppp_async_map,
f_cisco_type=ip_pool_definition,
f_cisco_type=asing_ip_pool,
f_cisco_type=route_ip,
f_cisco_type=link_compression,
f_cisco_type=target_util,
f_cisco_type=maximum_channels,
f_cisco_type=data_filter,
f_cisco_type=call_filter,
f_cisco_type=idle_limit,
f_cisco_type=xmit_rate
};
unsalted_string, f_cisco_type=li_configuration;
string_val, OTHERWISE
)"
}
type set of cisco_type cisco_subattr_list;
type enum_8 cisco_type_enum
{
cisco_avpair (1),//cisco_access_control_list
cisco_nas_port (2),
h323_remote_address (23),
h323_conf_id (24),
h323_setup_time (25),
h323_call_orign (26),
h323_call_type (27),
h323_connect_time (28),
h323_disconnect_time (29),
h323_disconnect_cause (30),
h323_voice_quality (31),
h323_ivr_out (32),
h323_gw_id (33),
h323_call_treatment (34),
h323_incoming_conf_id (35),
li_configuration (36),
policy_up (37),
policy_down (38),//sub_policy_out
vpnpassword (66),
vpngroupinfo (67),
h323_ivr_in (100),
h323_credit_amount (101),
h323_credit_time (102),
h323_return_code (103),
h323_prompt_id (104),
h323_time_and_day (105),
h323_redirect_number (106),
h323_preferred_lang (107),
h323_redirect_ip_addr (108),
h323_billing_model (109),
h323_currency_type (110),
multilink_id (187),
num_in_multilink (188),
pre_input_octets (190),
pre_output_octets (191),
pre_input_packets (192),
pre_output_packets (193),
maximum_time (194),
disconnect_cause (195),
date_rate (197),
presession_time (198),
pw_limetime (208),
ip_direct (209),
ppp_vj_slot_comp (210),
ppp_async_map (212),
ip_pool_definition (217),
asing_ip_pool (218),
route_ip (228),
link_compression (233),
target_util (234),
maximum_channels (235),
data_filter (242),
call_filter (243),
idle_limit (244),
account_info (250),//cisco_info_service,cisco_account_info
service_info (251),//cisco_service_list,ssg_service_info
command_code (252),//cisco_n_service_info
control_info (253), //cisco_byte_count,ssg_control_info
xmit_rate (255)
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment