Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/include/tl_common.h

    r14f1db0 r849ed54  
    4949DEVICE_MAP_DECLARE(packet_dimensions, packet_dimension_t);
    5050
    51 extern int tl_get_ip_packet_dimension(int, packet_dimensions_ref,
    52     device_id_t, packet_dimension_ref *);
    53 
    5451/** Gets the address port.
    5552 *  Supports AF_INET and AF_INET6 address families.
     
    6259 */
    6360extern int tl_get_address_port(const struct sockaddr * addr, int addrlen, uint16_t * port);
     61
     62/** Gets IP packet dimensions.
     63 *  Tries to search a cache and queries the IP module if not found.
     64 *  The reply is cached then.
     65 *  @param[in] ip_phone The IP moduel phone for (semi)remote calls.
     66 *  @param[in] packet_dimensions The packet dimensions cache.
     67 *  @param[in] device_id The device identifier.
     68 *  @param[out] packet_dimension The IP packet dimensions.
     69 *  @returns EOK on success.
     70 *  @returns EBADMEM if the packet_dimension parameter is NULL.
     71 *  @return ENOMEM if there is not enough memory left.
     72 *  @returns EINVAL if the packet_dimensions cache is not valid.
     73 *  @returns Other codes as defined for the ip_packet_size_req() function.
     74 */
     75extern int tl_get_ip_packet_dimension(int ip_phone, packet_dimensions_ref packet_dimensions, device_id_t device_id, packet_dimension_ref * packet_dimension);
    6476
    6577/** Updates IP device packet dimensions cache.
Note: See TracChangeset for help on using the changeset viewer.