Module radius::core::rfc2868[][src]

Utility for rfc2868 packet.

This module handles the packet according to the following definition:

//! # -*- text -*-
# Copyright (C) 2020 The FreeRADIUS Server project and contributors
# This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0
# Version $Id$
#
#	Attributes and values defined in RFC 2868.
#	http://www.ietf.org/rfc/rfc2868.txt
#
#	$Id$
#
ATTRIBUTE	Tunnel-Type				64	integer	has_tag
ATTRIBUTE	Tunnel-Medium-Type			65	integer	has_tag
ATTRIBUTE	Tunnel-Client-Endpoint			66	string	has_tag
ATTRIBUTE	Tunnel-Server-Endpoint			67	string	has_tag

ATTRIBUTE	Tunnel-Password				69	string	has_tag,encrypt=2

ATTRIBUTE	Tunnel-Private-Group-Id			81	string	has_tag
ATTRIBUTE	Tunnel-Assignment-Id			82	string	has_tag
ATTRIBUTE	Tunnel-Preference			83	integer	has_tag

ATTRIBUTE	Tunnel-Client-Auth-Id			90	string	has_tag
ATTRIBUTE	Tunnel-Server-Auth-Id			91	string	has_tag

#	Tunnel Type

VALUE	Tunnel-Type			PPTP			1
VALUE	Tunnel-Type			L2F			2
VALUE	Tunnel-Type			L2TP			3
VALUE	Tunnel-Type			ATMP			4
VALUE	Tunnel-Type			VTP			5
VALUE	Tunnel-Type			AH			6
VALUE	Tunnel-Type			IP			7
VALUE	Tunnel-Type			MIN-IP			8
VALUE	Tunnel-Type			ESP			9
VALUE	Tunnel-Type			GRE			10
VALUE	Tunnel-Type			DVS			11
VALUE	Tunnel-Type			IP-in-IP		12

#	Tunnel Medium Type

VALUE	Tunnel-Medium-Type		IP			1
VALUE	Tunnel-Medium-Type		IPv4			1
VALUE	Tunnel-Medium-Type		IPv6			2
VALUE	Tunnel-Medium-Type		NSAP			3
VALUE	Tunnel-Medium-Type		HDLC			4
VALUE	Tunnel-Medium-Type		BBN-1822		5
VALUE	Tunnel-Medium-Type		IEEE-802		6
VALUE	Tunnel-Medium-Type		E.163			7
VALUE	Tunnel-Medium-Type		E.164			8
VALUE	Tunnel-Medium-Type		F.69			9
VALUE	Tunnel-Medium-Type		X.121			10
VALUE	Tunnel-Medium-Type		IPX			11
VALUE	Tunnel-Medium-Type		Appletalk		12
VALUE	Tunnel-Medium-Type		DecNet-IV		13
VALUE	Tunnel-Medium-Type		Banyan-Vines		14
VALUE	Tunnel-Medium-Type		E.164-NSAP		15

Constants

TUNNEL_ASSIGNMENT_ID_TYPE
TUNNEL_CLIENT_AUTH_ID_TYPE
TUNNEL_CLIENT_ENDPOINT_TYPE
TUNNEL_MEDIUM_TYPE_APPLETALK
TUNNEL_MEDIUM_TYPE_BANYAN_VINES
TUNNEL_MEDIUM_TYPE_BBN_1822
TUNNEL_MEDIUM_TYPE_DEC_NET_IV
TUNNEL_MEDIUM_TYPE_E_163
TUNNEL_MEDIUM_TYPE_E_164
TUNNEL_MEDIUM_TYPE_E_164_NSAP
TUNNEL_MEDIUM_TYPE_F_69
TUNNEL_MEDIUM_TYPE_HDLC
TUNNEL_MEDIUM_TYPE_IEEE_802
TUNNEL_MEDIUM_TYPE_IP
TUNNEL_MEDIUM_TYPE_IPX
TUNNEL_MEDIUM_TYPE_I_PV_4
TUNNEL_MEDIUM_TYPE_I_PV_6
TUNNEL_MEDIUM_TYPE_NSAP
TUNNEL_MEDIUM_TYPE_TYPE
TUNNEL_MEDIUM_TYPE_X_121
TUNNEL_PASSWORD_TYPE
TUNNEL_PREFERENCE_TYPE
TUNNEL_PRIVATE_GROUP_ID_TYPE
TUNNEL_SERVER_AUTH_ID_TYPE
TUNNEL_SERVER_ENDPOINT_TYPE
TUNNEL_TYPE_AH
TUNNEL_TYPE_ATMP
TUNNEL_TYPE_DVS
TUNNEL_TYPE_ESP
TUNNEL_TYPE_GRE
TUNNEL_TYPE_IP
TUNNEL_TYPE_IP_IN_IP
TUNNEL_TYPE_L2F
TUNNEL_TYPE_L2TP
TUNNEL_TYPE_MIN_IP
TUNNEL_TYPE_PPTP
TUNNEL_TYPE_TYPE
TUNNEL_TYPE_VTP

Functions

add_tunnel_assignment_id

Add tunnel_assignment_id tagged string value to a packet.

add_tunnel_client_auth_id

Add tunnel_client_auth_id tagged string value to a packet.

add_tunnel_client_endpoint

Add tunnel_client_endpoint tagged string value to a packet.

add_tunnel_medium_type

Add tunnel_medium_type tagged value-defined integer value to a packet.

add_tunnel_password

Add tunnel_password tunnel-password value to a packet.

add_tunnel_preference

Add tunnel_preference tagged integer value to a packet.

add_tunnel_private_group_id

Add tunnel_private_group_id tagged string value to a packet.

add_tunnel_server_auth_id

Add tunnel_server_auth_id tagged string value to a packet.

add_tunnel_server_endpoint

Add tunnel_server_endpoint tagged string value to a packet.

add_tunnel_type

Add tunnel_type tagged value-defined integer value to a packet.

delete_tunnel_assignment_id

Delete all of tunnel_assignment_id values from a packet.

delete_tunnel_client_auth_id

Delete all of tunnel_client_auth_id values from a packet.

delete_tunnel_client_endpoint

Delete all of tunnel_client_endpoint values from a packet.

delete_tunnel_medium_type

Delete all of tunnel_medium_type values from a packet.

delete_tunnel_password

Delete all of tunnel_password values from a packet.

delete_tunnel_preference

Delete all of tunnel_preference values from a packet.

delete_tunnel_private_group_id

Delete all of tunnel_private_group_id values from a packet.

delete_tunnel_server_auth_id

Delete all of tunnel_server_auth_id values from a packet.

delete_tunnel_server_endpoint

Delete all of tunnel_server_endpoint values from a packet.

delete_tunnel_type

Delete all of tunnel_type values from a packet.

lookup_all_tunnel_assignment_id

Lookup all of the tunnel_assignment_id tagged string value from a packet.

lookup_all_tunnel_client_auth_id

Lookup all of the tunnel_client_auth_id tagged string value from a packet.

lookup_all_tunnel_client_endpoint

Lookup all of the tunnel_client_endpoint tagged string value from a packet.

lookup_all_tunnel_medium_type

Lookup all of the tunnel_medium_type tagged value-defined integer value from a packet.

lookup_all_tunnel_password

Lookup all of the tunnel_password tunnel-password value from a packet.

lookup_all_tunnel_preference

Lookup all of the tunnel_preference tagged integer value from a packet.

lookup_all_tunnel_private_group_id

Lookup all of the tunnel_private_group_id tagged string value from a packet.

lookup_all_tunnel_server_auth_id

Lookup all of the tunnel_server_auth_id tagged string value from a packet.

lookup_all_tunnel_server_endpoint

Lookup all of the tunnel_server_endpoint tagged string value from a packet.

lookup_all_tunnel_type

Lookup all of the tunnel_type tagged value-defined integer value from a packet.

lookup_tunnel_assignment_id

Lookup a tunnel_assignment_id tagged string value from a packet.

lookup_tunnel_client_auth_id

Lookup a tunnel_client_auth_id tagged string value from a packet.

lookup_tunnel_client_endpoint

Lookup a tunnel_client_endpoint tagged string value from a packet.

lookup_tunnel_medium_type

Lookup a tunnel_medium_type tagged value-defined integer value from a packet.

lookup_tunnel_password

Lookup a tunnel_password tunnel-password value from a packet.

lookup_tunnel_preference

Lookup a tunnel_preference tagged integer value from a packet.

lookup_tunnel_private_group_id

Lookup a tunnel_private_group_id tagged string value from a packet.

lookup_tunnel_server_auth_id

Lookup a tunnel_server_auth_id tagged string value from a packet.

lookup_tunnel_server_endpoint

Lookup a tunnel_server_endpoint tagged string value from a packet.

lookup_tunnel_type

Lookup a tunnel_type tagged value-defined integer value from a packet.

Type Definitions

TunnelMediumType
TunnelType