Transport layer common functions implementation. More...
#include <async.h>
#include <ipc/services.h>
#include "../err.h"
#include "../structures/packet/packet.h"
#include "../structures/packet/packet_client.h"
#include "../include/device.h"
#include "../include/icmp_interface.h"
#include "../include/in.h"
#include "../include/in6.h"
#include "../include/inet.h"
#include "../include/ip_interface.h"
#include "../include/socket_codes.h"
#include "../include/socket_errno.h"
#include "tl_common.h"
Functions | |
DEVICE_MAP_IMPLEMENT (packet_dimensions, packet_dimension_t) | |
int | tl_get_address_port (const struct sockaddr *addr, int addrlen, uint16_t *port) |
Gets the address port. | |
int | tl_get_ip_packet_dimension (int ip_phone, packet_dimensions_ref packet_dimensions, device_id_t device_id, packet_dimension_ref *packet_dimension) |
Gets IP packet dimensions. | |
int | tl_update_ip_packet_dimension (packet_dimensions_ref packet_dimensions, device_id_t device_id, size_t content) |
Updates IP device packet dimensions cache. | |
int | tl_set_address_port (struct sockaddr *addr, int addrlen, uint16_t port) |
Sets the address port. | |
int | tl_prepare_icmp_packet (int packet_phone, int icmp_phone, packet_t packet, services_t error) |
Prepares the packet for ICMP error notification. | |
int | tl_socket_read_packet_data (int packet_phone, packet_ref packet, size_t prefix, const packet_dimension_ref dimension, const struct sockaddr *addr, socklen_t addrlen) |
Receives data from the socket into a packet. |
Transport layer common functions implementation.