IP interface implementation for standalone remote modules. More...
#include <ipc/services.h>#include "../../messages.h"#include "../../modules.h"#include "../../include/device.h"#include "../../include/inet.h"#include "../../include/ip_interface.h"#include "../../structures/packet/packet_client.h"#include "../il_messages.h"#include "ip_messages.h"
Functions | |
IP module interface | |
| int | ip_add_route_req (int ip_phone, device_id_t device_id, in_addr_t address, in_addr_t netmask, in_addr_t gateway) |
| Adds a route to the device routing table. | |
| int | ip_bind_service (services_t service, int protocol, services_t me, async_client_conn_t receiver, tl_received_msg_t tl_received_msg) |
| Creates bidirectional connection with the ip module service and registers the message receiver. | |
| int | ip_connect_module (services_t service) |
| Connects to the IP module. | |
| int | ip_device_req (int ip_phone, device_id_t device_id, services_t netif) |
| Registers the new device. | |
| int | ip_get_route_req (int ip_phone, ip_protocol_t protocol, const struct sockaddr *destination, socklen_t addrlen, device_id_t *device_id, ip_pseudo_header_ref *header, size_t *headerlen) |
| Returns the device identifier and the IP pseudo header based on the destination address. | |
| int | ip_packet_size_req (int ip_phone, device_id_t device_id, packet_dimension_ref packet_dimension) |
| Returns the device packet dimension for sending. | |
| int | ip_received_error_msg (int ip_phone, device_id_t device_id, packet_t packet, services_t target, services_t error) |
| Notifies the IP module about the received error notification packet. | |
| int | ip_send_msg (int ip_phone, device_id_t device_id, packet_t packet, services_t sender, services_t error) |
| Sends the packet queue. | |
| int | ip_set_gateway_req (int ip_phone, device_id_t device_id, in_addr_t gateway) |
| Sets the default gateway. | |
IP interface implementation for standalone remote modules.
1.6.1