Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4755 → Rev 4756

/branches/network/uspace/srv/net/tl/tl_common.h
78,9 → 78,9
 
/** Gets the address port.
* Supports AF_INET and AF_INET6 address families.
* @param addr The address to be updated. Input/output parameter.
* @param addrlen The address length. Input parameter.
* @param port The set port. Output parameter.
* @param[in,out] addr The address to be updated.
* @param[in] addrlen The address length.
* @param[out] port The set port.
* @returns EOK on success.
* @returns EINVAL if the address length does not match the address family.
* @returns EAFNOSUPPORT if the address family is not supported.
93,7 → 93,7
* @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.
* @param[out] packet_dimension 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.
104,9 → 104,9
 
/** Sets the address port.
* Supports AF_INET and AF_INET6 address families.
* @param addr The address to be updated. Input/output parameter.
* @param addrlen The address length. Input parameter.
* @param port The port to be set. Input parameter.
* @param[in,out] addr The address to be updated.
* @param[in] addrlen The address length.
* @param[in] port The port to be set.
* @returns EOK on success.
* @returns EINVAL if the address length does not match the address family.
* @returns EAFNOSUPPORT if the address family is not supported.
116,10 → 116,10
/** Prepares the packet for ICMP error notification.
* Keeps the first packet and releases all the others.
* Releases all the packets on error.
* @param packet_phone The packet server module phone. Input parameter.
* @param icmp_phone The ICMP module phone. Input parameter.
* @param packet The packet to be send. Input parameter.
* @param error The packet error reporting service. Prefixes the received packet. Input parameter.
* @param[in] packet_phone The packet server module phone.
* @param[in] icmp_phone The ICMP module phone.
* @param[in] packet The packet to be send.
* @param[in] error The packet error reporting service. Prefixes the received packet.
* @returns EOK on success.
* @returns ENOENT if no packet may be sent.
*/
126,12 → 126,12
int tl_prepare_icmp_packet( int packet_phone, int icmp_phone, packet_t packet, services_t error );
 
/** Receives data from the socket into a packet.
* @param packet_phone The packet server module phone. Input parameter.
* @param packet The new created packet. Output parameter.
* @param prefix Reserved packet data prefix length. Input parameter.
* @param dimension The packet dimension. Input parameter.
* @param addr The destination address. Input parameter.
* @param addrlen The address length. Input parameter.
* @param[in] packet_phone The packet server module phone.
* @param[out] packet The new created packet.
* @param[in] prefix Reserved packet data prefix length.
* @param[in] dimension The packet dimension.
* @param[in] addr The destination address.
* @param[in] addrlen The address length.
* @returns Number of bytes received.
* @returns EINVAL if the client does not send data.
* @returns ENOMEM if there is not enough memory left.