#include <networkcontroller.h>
Static Public Member Functions | |
| static void | setImplementation (auto_ptr< NetworkControllerImpl > impl) |
| Establish the NetworkController concrete implementation. | |
| static auto_ptr< IpAddress > | getIpAddress (uint16_t port) |
| Creates a new IpAddress, setting its port number. | |
| static auto_ptr< IpAddress > | getIpAddress (string address, uint16_t port) |
| Creates a new IpAddress, setting its address in text format and its port number. | |
| static auto_ptr< IpAddress > | getIpAddress (uint16_t family, auto_ptr< ByteArray > data, uint16_t port=0) |
| Creates a new IpAddress, setting its family, the address data and the port. | |
| static auto_ptr< UdpSocket > | getUdpSocket (uint16_t port) |
| Return an object that allow us to send and receive messages throw all the detected interfaces by a specific port. | |
| static auto_ptr< EapClientController > | getEapClientController (Payload_EAP::EAP_TYPE eap_type) |
| Creates a new EAP_Client_Controller for the specified EAP authentication type. | |
| static auto_ptr< EapServerController > | getEapServerController (const ID &initiator_id) |
| Creates a new EAP_Server_Controller. | |
| static auto_ptr< Payload_CONF > | processConfigurationRequest (IkeSaController &ike_sa_controller, ChildSa &child_sa, Payload_CONF &configuration_request) |
| Processes a Configuration request payload. | |
| static auto_ptr< Payload_CONF > | createConfigurationRequest (IkeSaController &ike_sa_controller) |
| Creates the Configuration request payload. | |
| static void | processConfigurationResponse (IkeSaController &ike_sa_controller, ChildSa &child_sa, Payload_CONF &configuration_response) |
| Process the Configuration response payload. | |
| static void | unsetConfiguration (IkeSaController &ike_sa_controller) |
| Deletes all the Address Configuration status associated to the IKE_SA. | |
| static void | addNotifyRequests (Message &message, IkeSaController &ike_sa_controller, ChildSa *child_sa) |
| Adds notification requets to the message. | |
| static NotifyController * | getNotifyController (uint16_t type) |
| Gets the adecuated NotifyController for such notification type. | |
| static void | registerNotifyController (uint16_t type, auto_ptr< NotifyController > notify_controller) |
| Registers a NotifyController object for determinated notification type. | |
| static void | sendMessage (Message &message, Cipher *cipher) |
| Sends a Message to the peer thru the socket. | |
| static void | startThread () |
| static void | addSrcAddress (auto_ptr< IpAddress > new_src_address) |
| Adds a new source address to receive from. | |
| static void | removeSrcAddress (const IpAddress &src_address) |
| Removes a source address to receive from. | |
| static void | close () |
| Deletes the instance of the network controller implementation and set it to NULL. | |
Static Protected Attributes | |
| static auto_ptr< NetworkControllerImpl > | implementation |
| Instance of the implementation of Network Controller. | |
| void openikev2::NetworkController::setImplementation | ( | auto_ptr< NetworkControllerImpl > | impl | ) | [static] |
| auto_ptr< IpAddress > openikev2::NetworkController::getIpAddress | ( | uint16_t | port | ) | [static] |
| auto_ptr< IpAddress > openikev2::NetworkController::getIpAddress | ( | string | address, | |
| uint16_t | port | |||
| ) | [static] |
| auto_ptr< UdpSocket > openikev2::NetworkController::getUdpSocket | ( | uint16_t | port | ) | [static] |
Return an object that allow us to send and receive messages throw all the detected interfaces by a specific port.
| port | Port |
| auto_ptr< EapClientController > openikev2::NetworkController::getEapClientController | ( | Payload_EAP::EAP_TYPE | eap_type | ) | [static] |
Creates a new EAP_Client_Controller for the specified EAP authentication type.
| eap_type | EAP Authentication type |
| auto_ptr< EapServerController > openikev2::NetworkController::getEapServerController | ( | const ID & | initiator_id | ) | [static] |
Creates a new EAP_Server_Controller.
| initiator_id | Initiator ID |
| auto_ptr< Payload_CONF > openikev2::NetworkController::processConfigurationRequest | ( | IkeSaController & | ike_sa_controller, | |
| ChildSa & | child_sa, | |||
| Payload_CONF & | configuration_request | |||
| ) | [static] |
Processes a Configuration request payload.
| ike_sa_controller | IkeSaController | |
| configuration_request | Received Payload_CONF request |
| auto_ptr< Payload_CONF > openikev2::NetworkController::createConfigurationRequest | ( | IkeSaController & | ike_sa_controller | ) | [static] |
Creates the Configuration request payload.
| ike_sa_controller | IkeSaController |
| void openikev2::NetworkController::processConfigurationResponse | ( | IkeSaController & | ike_sa_controller, | |
| ChildSa & | child_sa, | |||
| Payload_CONF & | configuration_response | |||
| ) | [static] |
Process the Configuration response payload.
| ike_sa_controller | IkeSaController | |
| child_sa | Child SA | |
| configuration_response | Received Payload_CONF response |
| void openikev2::NetworkController::unsetConfiguration | ( | IkeSaController & | ike_sa_controller | ) | [static] |
Deletes all the Address Configuration status associated to the IKE_SA.
| ike_sa_controller | IkeSaController |
| void openikev2::NetworkController::addNotifyRequests | ( | Message & | message, | |
| IkeSaController & | ike_sa_controller, | |||
| ChildSa * | child_sa | |||
| ) | [static] |
Adds notification requets to the message.
| message | Message to add the notify request payloads | |
| ike_sa_controller | IKE SA Controller | |
| child_sa | CHILD_SA related with the notification (NULL if there is no related CHILD_SA) |
| NotifyController * openikev2::NetworkController::getNotifyController | ( | uint16_t | type | ) | [static] |
Gets the adecuated NotifyController for such notification type.
| type | Notification type |
| void openikev2::NetworkController::registerNotifyController | ( | uint16_t | type, | |
| auto_ptr< NotifyController > | notify_controller | |||
| ) | [static] |
Registers a NotifyController object for determinated notification type.
| type | Notification type | |
| notify_controller | NotifyController object to be registered. |
| void openikev2::NetworkController::addSrcAddress | ( | auto_ptr< IpAddress > | new_src_address | ) | [static] |
Adds a new source address to receive from.
| new_src_address | New source address |
| void openikev2::NetworkController::removeSrcAddress | ( | const IpAddress & | src_address | ) | [static] |
Removes a source address to receive from.
| src_address | Source address to be removed |
1.5.1