Module ocs_radius_auth_port_server

This gen_server behaviour callback module receives radius messages on a port assigned for authentication in the ocs application.

Copyright © 2016 - 2026 SigScale Global Inc.

Behaviours: gen_server.

References

Description

This gen_server behaviour callback module receives radius messages on a port assigned for authentication in the ocs application.

Data Types

state()

state() = #state{auth_port_sup = pid(), simple_auth_sup = undefined | pid(), pwd_sup = undefined | pid(), ttls_sup = undefined | pid(), aka_sup = undefined | pid(), akap_sup = undefined | pid(), address = inet:ip_address(), port = non_neg_integer(), method_prefer = ocs:eap_method(), method_order = [ocs:eap_method()], handlers = gb_trees:tree(Key::{NAS::string() | inet:ip_address(), Port::string(), Peer::string()}, Value::(Fsm::pid()))}

Function Index

init/1Initialize the ocs_radius_auth_port_server server.
handle_call/3Handle a request sent using gen_server:call/2,3 or gen_server:multi_call/2,3,4.
handle_cast/2Handle a request sent using gen_server:cast/2 or gen_server:abcast/2,3.
handle_info/2Handle a received message.
terminate/2Cleanup and exit.
code_change/3Update internal state data during a release upgrade/downgrade.
request/9*Handle a received RADIUS Access-Request packet.

Function Details

init/1

init(Args) -> Result

Initialize the ocs_radius_auth_port_server server. Args :: [Sup :: pid(), Module :: atom(), Port :: non_neg_integer(), Address :: inet:ip_address()].

See also: //stdlib/gen_server:init/1.

handle_call/3

handle_call(Request, From, State) -> Result

Handle a request sent using gen_server:call/2,3 or gen_server:multi_call/2,3,4.

See also: //stdlib/gen_server:handle_call/3.

handle_cast/2

handle_cast(Request, State) -> Result

Handle a request sent using gen_server:cast/2 or gen_server:abcast/2,3.

See also: //stdlib/gen_server:handle_cast/2.

handle_info/2

handle_info(Info, State) -> Result

Handle a received message.

See also: //stdlib/gen_server:handle_info/2.

terminate/2

terminate(Reason, State) -> any()

Cleanup and exit.

See also: //stdlib/gen_server:terminate/3.

code_change/3

code_change(OldVsn, State, Extra) -> Result

Update internal state data during a release upgrade/downgrade.

See also: //stdlib/gen_server:code_change/3.

request/9 *

request(IsEap, Address, Port, Secret, PasswordReq, Trusted, Radius, From, State) -> Result

Handle a received RADIUS Access-Request packet.


Generated by EDoc