#include <networkcontrollerimpl.h>
Inheritance diagram for openikev2::NetworkControllerImpl:

Public Member Functions | |
| virtual void | initialize () |
| Initializes the NetworkController implementation. | |
| virtual auto_ptr< IpAddress > | getIpAddress (uint16_t port)=0 |
| Creates a new IpAddress, setting its port number. | |
| virtual auto_ptr< IpAddress > | getIpAddress (string address, uint16_t port)=0 |
| Creates a new IpAddress, setting its address in text format and its port number. | |
| virtual 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. | |
| virtual auto_ptr< UdpSocket > | getUdpSocket (uint16_t port)=0 |
| Return an object that allow us to send and receive messages throw all the detected interfaces by a specific port. | |
| virtual auto_ptr< EapClientController > | getEapClientController (Payload_EAP::EAP_TYPE eap_type)=0 |
| Creates a new EAP_Client_Controller for the specified EAP authentication type. | |
| virtual auto_ptr< EapServerController > | getEapServerController (const ID &initiator_id)=0 |
| Creates a new EAP_Server_Controller. | |
| virtual auto_ptr< Payload_CONF > | processConfigurationRequest (IkeSaController &ike_sa_controller, ChildSa &child_sa, Payload_CONF &configuration_request)=0 |
| Processes a Configuration request payload. | |
| virtual auto_ptr< Payload_CONF > | createConfigurationRequest (IkeSaController &ike_sa_controller)=0 |
| Creates the Configuration request payload. | |
| virtual void | processConfigurationResponse (IkeSaController &ike_sa_controller, ChildSa &child_sa, Payload_CONF &configuration_response)=0 |
| Process the Configuration response payload. | |
| virtual void | unsetConfiguration (IkeSaController &ike_sa_controller)=0 |
| Deletes all the Address Configuration status associated to the IKE_SA. | |
| virtual void | addNotifyRequests (Message &message, IkeSaController &ike_sa_controller, ChildSa *child_sa) |
| Adds notification requets to the message. | |
| virtual NotifyController * | getNotifyController (uint16_t type) |
| Gets the adecuated NotifyController for such notification type. | |
| virtual void | registerNotifyController (uint16_t type, auto_ptr< NotifyController > notify_controller) |
| Registers a NotifyController object for determinated notification type. | |
| virtual void | sendMessage (Message &message, Cipher *cipher) |
| Sends a Message to the peer thru the socket. | |
| virtual void | addSrcAddress (auto_ptr< IpAddress > new_src_address) |
| Adds a new source address to receive from. | |
| virtual void | removeSrcAddress (const IpAddress &src_address) |
| Removes a source address to receive from. | |
| virtual void | run () |
| Main execution method of the thread. | |
Protected Member Functions | |
| virtual auto_ptr< Message > | receive () |
| Receives a Message from the socket. | |
| void | send_INVALID_IKE_SPI (Message &received_message) |
| Sends a response exchange with a NOTIFY payload indicating a INVALID_IKE_SPI condition. | |
| void | send_COOKIE (Message &received_message, auto_ptr< Payload_NOTIFY > cookie_notify) |
| Sends a response Message with a COOKIE notification Payload. | |
Protected Attributes | |
| map< uint16_t, NotifyController * > | notify_controllers |
| NotifyController collection. | |
| auto_ptr< UdpSocket > | udp_socket |
| UDP Socket to perform networking operations. | |
| void openikev2::NetworkControllerImpl::send_INVALID_IKE_SPI | ( | Message & | received_message | ) | [protected] |
Sends a response exchange with a NOTIFY payload indicating a INVALID_IKE_SPI condition.
| received_message | The received request |
| void openikev2::NetworkControllerImpl::send_COOKIE | ( | Message & | received_message, | |
| auto_ptr< Payload_NOTIFY > | cookie_notify | |||
| ) | [protected] |
| virtual auto_ptr<IpAddress> openikev2::NetworkControllerImpl::getIpAddress | ( | uint16_t | port | ) | [pure virtual] |
| virtual auto_ptr<IpAddress> openikev2::NetworkControllerImpl::getIpAddress | ( | string | address, | |
| uint16_t | port | |||
| ) | [pure virtual] |
| virtual auto_ptr<UdpSocket> openikev2::NetworkControllerImpl::getUdpSocket | ( | uint16_t | port | ) | [pure virtual] |
Return an object that allow us to send and receive messages throw all the detected interfaces by a specific port.
| port | Port |
| virtual auto_ptr<EapClientController> openikev2::NetworkControllerImpl::getEapClientController | ( | Payload_EAP::EAP_TYPE | eap_type | ) | [pure virtual] |
Creates a new EAP_Client_Controller for the specified EAP authentication type.
| eap_type | EAP Authentication type |
| virtual auto_ptr<EapServerController> openikev2::NetworkControllerImpl::getEapServerController | ( | const ID & | initiator_id | ) | [pure virtual] |
Creates a new EAP_Server_Controller.
| initiator_id | Initiator ID |
| virtual auto_ptr<Payload_CONF> openikev2::NetworkControllerImpl::processConfigurationRequest | ( | IkeSaController & | ike_sa_controller, | |
| ChildSa & | child_sa, | |||
| Payload_CONF & | configuration_request | |||
| ) | [pure virtual] |
Processes a Configuration request payload.
| ike_sa_controller | IkeSaController | |
| configuration_request | Received Payload_CONF request |
| virtual auto_ptr<Payload_CONF> openikev2::NetworkControllerImpl::createConfigurationRequest | ( | IkeSaController & | ike_sa_controller | ) | [pure virtual] |
Creates the Configuration request payload.
| ike_sa_controller | IkeSaController |
| virtual void openikev2::NetworkControllerImpl::processConfigurationResponse | ( | IkeSaController & | ike_sa_controller, | |
| ChildSa & | child_sa, | |||
| Payload_CONF & | configuration_response | |||
| ) | [pure virtual] |
Process the Configuration response payload.
| ike_sa_controller | IkeSaController | |
| child_sa | Child SA | |
| configuration_response | Received Payload_CONF response |
| virtual void openikev2::NetworkControllerImpl::unsetConfiguration | ( | IkeSaController & | ike_sa_controller | ) | [pure virtual] |
Deletes all the Address Configuration status associated to the IKE_SA.
| ike_sa_controller | IkeSaController |
| void openikev2::NetworkControllerImpl::addNotifyRequests | ( | Message & | message, | |
| IkeSaController & | ike_sa_controller, | |||
| ChildSa * | child_sa | |||
| ) | [virtual] |
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::NetworkControllerImpl::getNotifyController | ( | uint16_t | type | ) | [virtual] |
Gets the adecuated NotifyController for such notification type.
| type | Notification type |
| void openikev2::NetworkControllerImpl::registerNotifyController | ( | uint16_t | type, | |
| auto_ptr< NotifyController > | notify_controller | |||
| ) | [virtual] |
Registers a NotifyController object for determinated notification type.
| type | Notification type | |
| notify_controller | NotifyController object to be registered. |
| void openikev2::NetworkControllerImpl::addSrcAddress | ( | auto_ptr< IpAddress > | new_src_address | ) | [virtual] |
Adds a new source address to receive from.
| new_src_address | New source address |
| void openikev2::NetworkControllerImpl::removeSrcAddress | ( | const IpAddress & | src_address | ) | [virtual] |
Removes a source address to receive from.
| src_address | Source address to be removed |
| void openikev2::NetworkControllerImpl::run | ( | ) | [virtual] |
Main execution method of the thread.
This method is executed allways when executeRunnable() is called. Each concrete Thread musts implement this method
Implements openikev2::Runnable.
1.5.1