Module radius::core::rfc2866[][src]

Utility for rfc2866 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 2866.
#	http://www.ietf.org/rfc/rfc2866.txt
#
#	$Id$
#
ATTRIBUTE	Acct-Status-Type			40	integer
ATTRIBUTE	Acct-Delay-Time				41	integer
ATTRIBUTE	Acct-Input-Octets			42	integer
ATTRIBUTE	Acct-Output-Octets			43	integer
ATTRIBUTE	Acct-Session-Id				44	string
ATTRIBUTE	Acct-Authentic				45	integer
ATTRIBUTE	Acct-Session-Time			46	integer
ATTRIBUTE	Acct-Input-Packets			47	integer
ATTRIBUTE	Acct-Output-Packets			48	integer
ATTRIBUTE	Acct-Terminate-Cause			49	integer
ATTRIBUTE	Acct-Multi-Session-Id			50	string
ATTRIBUTE	Acct-Link-Count				51	integer

#	Accounting Status Types

VALUE	Acct-Status-Type		Start			1
VALUE	Acct-Status-Type		Stop			2
VALUE	Acct-Status-Type		Alive			3   # dup
VALUE	Acct-Status-Type		Interim-Update		3
VALUE	Acct-Status-Type		Accounting-On		7
VALUE	Acct-Status-Type		Accounting-Off		8
VALUE	Acct-Status-Type		Failed			15

#	Authentication Types

VALUE	Acct-Authentic			RADIUS			1
VALUE	Acct-Authentic			Local			2
VALUE	Acct-Authentic			Remote			3
VALUE	Acct-Authentic			Diameter		4

#	Acct Terminate Causes

VALUE	Acct-Terminate-Cause		User-Request		1
VALUE	Acct-Terminate-Cause		Lost-Carrier		2
VALUE	Acct-Terminate-Cause		Lost-Service		3
VALUE	Acct-Terminate-Cause		Idle-Timeout		4
VALUE	Acct-Terminate-Cause		Session-Timeout		5
VALUE	Acct-Terminate-Cause		Admin-Reset		6
VALUE	Acct-Terminate-Cause		Admin-Reboot		7
VALUE	Acct-Terminate-Cause		Port-Error		8
VALUE	Acct-Terminate-Cause		NAS-Error		9
VALUE	Acct-Terminate-Cause		NAS-Request		10
VALUE	Acct-Terminate-Cause		NAS-Reboot		11
VALUE	Acct-Terminate-Cause		Port-Unneeded		12
VALUE	Acct-Terminate-Cause		Port-Preempted		13
VALUE	Acct-Terminate-Cause		Port-Suspended		14
VALUE	Acct-Terminate-Cause		Service-Unavailable	15
VALUE	Acct-Terminate-Cause		Callback		16
VALUE	Acct-Terminate-Cause		User-Error		17
VALUE	Acct-Terminate-Cause		Host-Request		18

Constants

ACCT_AUTHENTIC_DIAMETER
ACCT_AUTHENTIC_LOCAL
ACCT_AUTHENTIC_RADIUS
ACCT_AUTHENTIC_REMOTE
ACCT_AUTHENTIC_TYPE
ACCT_DELAY_TIME_TYPE
ACCT_INPUT_OCTETS_TYPE
ACCT_INPUT_PACKETS_TYPE
ACCT_LINK_COUNT_TYPE
ACCT_MULTI_SESSION_ID_TYPE
ACCT_OUTPUT_OCTETS_TYPE
ACCT_OUTPUT_PACKETS_TYPE
ACCT_SESSION_ID_TYPE
ACCT_SESSION_TIME_TYPE
ACCT_STATUS_TYPE_ACCOUNTING_OFF
ACCT_STATUS_TYPE_ACCOUNTING_ON
ACCT_STATUS_TYPE_ALIVE
ACCT_STATUS_TYPE_FAILED
ACCT_STATUS_TYPE_INTERIM_UPDATE
ACCT_STATUS_TYPE_START
ACCT_STATUS_TYPE_STOP
ACCT_STATUS_TYPE_TYPE
ACCT_TERMINATE_CAUSE_ADMIN_REBOOT
ACCT_TERMINATE_CAUSE_ADMIN_RESET
ACCT_TERMINATE_CAUSE_CALLBACK
ACCT_TERMINATE_CAUSE_HOST_REQUEST
ACCT_TERMINATE_CAUSE_IDLE_TIMEOUT
ACCT_TERMINATE_CAUSE_LOST_CARRIER
ACCT_TERMINATE_CAUSE_LOST_SERVICE
ACCT_TERMINATE_CAUSE_NAS_ERROR
ACCT_TERMINATE_CAUSE_NAS_REBOOT
ACCT_TERMINATE_CAUSE_NAS_REQUEST
ACCT_TERMINATE_CAUSE_PORT_ERROR
ACCT_TERMINATE_CAUSE_PORT_PREEMPTED
ACCT_TERMINATE_CAUSE_PORT_SUSPENDED
ACCT_TERMINATE_CAUSE_PORT_UNNEEDED
ACCT_TERMINATE_CAUSE_SERVICE_UNAVAILABLE
ACCT_TERMINATE_CAUSE_SESSION_TIMEOUT
ACCT_TERMINATE_CAUSE_TYPE
ACCT_TERMINATE_CAUSE_USER_ERROR
ACCT_TERMINATE_CAUSE_USER_REQUEST

Functions

add_acct_authentic

Add acct_authentic value-defined integer value to a packet.

add_acct_delay_time

Add acct_delay_time integer value to a packet.

add_acct_input_octets

Add acct_input_octets integer value to a packet.

add_acct_input_packets

Add acct_input_packets integer value to a packet.

add_acct_link_count

Add acct_link_count integer value to a packet.

add_acct_multi_session_id

Add acct_multi_session_id string value to a packet.

add_acct_output_octets

Add acct_output_octets integer value to a packet.

add_acct_output_packets

Add acct_output_packets integer value to a packet.

add_acct_session_id

Add acct_session_id string value to a packet.

add_acct_session_time

Add acct_session_time integer value to a packet.

add_acct_status_type

Add acct_status_type value-defined integer value to a packet.

add_acct_terminate_cause

Add acct_terminate_cause value-defined integer value to a packet.

delete_acct_authentic

Delete all of acct_authentic values from a packet.

delete_acct_delay_time

Delete all of acct_delay_time values from a packet.

delete_acct_input_octets

Delete all of acct_input_octets values from a packet.

delete_acct_input_packets

Delete all of acct_input_packets values from a packet.

delete_acct_link_count

Delete all of acct_link_count values from a packet.

delete_acct_multi_session_id

Delete all of acct_multi_session_id values from a packet.

delete_acct_output_octets

Delete all of acct_output_octets values from a packet.

delete_acct_output_packets

Delete all of acct_output_packets values from a packet.

delete_acct_session_id

Delete all of acct_session_id values from a packet.

delete_acct_session_time

Delete all of acct_session_time values from a packet.

delete_acct_status_type

Delete all of acct_status_type values from a packet.

delete_acct_terminate_cause

Delete all of acct_terminate_cause values from a packet.

lookup_acct_authentic

Lookup a acct_authentic value-defined integer value from a packet.

lookup_acct_delay_time

Lookup a acct_delay_time integer value from a packet.

lookup_acct_input_octets

Lookup a acct_input_octets integer value from a packet.

lookup_acct_input_packets

Lookup a acct_input_packets integer value from a packet.

lookup_acct_link_count

Lookup a acct_link_count integer value from a packet.

lookup_acct_multi_session_id

Lookup a acct_multi_session_id string value from a packet.

lookup_acct_output_octets

Lookup a acct_output_octets integer value from a packet.

lookup_acct_output_packets

Lookup a acct_output_packets integer value from a packet.

lookup_acct_session_id

Lookup a acct_session_id string value from a packet.

lookup_acct_session_time

Lookup a acct_session_time integer value from a packet.

lookup_acct_status_type

Lookup a acct_status_type value-defined integer value from a packet.

lookup_acct_terminate_cause

Lookup a acct_terminate_cause value-defined integer value from a packet.

lookup_all_acct_authentic

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

lookup_all_acct_delay_time

Lookup all of the acct_delay_time integer value from a packet.

lookup_all_acct_input_octets

Lookup all of the acct_input_octets integer value from a packet.

lookup_all_acct_input_packets

Lookup all of the acct_input_packets integer value from a packet.

lookup_all_acct_link_count

Lookup all of the acct_link_count integer value from a packet.

lookup_all_acct_multi_session_id

Lookup all of the acct_multi_session_id string value from a packet.

lookup_all_acct_output_octets

Lookup all of the acct_output_octets integer value from a packet.

lookup_all_acct_output_packets

Lookup all of the acct_output_packets integer value from a packet.

lookup_all_acct_session_id

Lookup all of the acct_session_id string value from a packet.

lookup_all_acct_session_time

Lookup all of the acct_session_time integer value from a packet.

lookup_all_acct_status_type

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

lookup_all_acct_terminate_cause

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

Type Definitions

AcctAuthentic
AcctStatusType
AcctTerminateCause