39,6 → 39,7 |
|
#include "../structures/packet/packet.h" |
|
#include "../include/device.h" |
#include "../include/inet.h" |
#include "../include/socket_codes.h" |
|
69,6 → 70,12 |
size_t addr_len; |
}; |
|
/** Device packet dimensions. |
* Maps devices to the packet dimensions. |
* @see device.h |
*/ |
DEVICE_MAP_DECLARE( packet_dimensions, packet_dimension_t ); |
|
/** Gets the address port. |
* Supports AF_INET and AF_INET6 address families. |
* @param addr The address to be updated. Input/output parameter. |
80,6 → 87,21 |
*/ |
int tl_get_address_port( const struct sockaddr * addr, int addrlen, uint16_t * port ); |
|
/** Gets IP packet dimensions. |
* Tries to search a cache and queries the IP module if not found. |
* The reply is cached then. |
* @param[in] ip_phone The IP moduel phone for (semi)remote calls. |
* @param[in] packet_dimensions The packet dimensions cache. |
* @param[in] device_id The device identifier. |
* @param[out] packet_dimention The IP packet dimensions. |
* @returns EOK on success. |
* @returns EBADMEM if the packet_dimension parameter is NULL. |
* @return ENOMEM if there is not enough memory left. |
* @returns EINVAL if the packet_dimensions cache is not valid. |
* @returns Other codes as defined for the ip_packet_size_req() function. |
*/ |
int tl_get_ip_packet_dimension( int ip_phone, packet_dimensions_ref packet_dimensions, device_id_t device_id, packet_dimension_ref * packet_dimension ); |
|
/** Sets the address port. |
* Supports AF_INET and AF_INET6 address families. |
* @param addr The address to be updated. Input/output parameter. |