97,9 → 97,9 |
* Is used as an entry point from the underlying IP module. |
* Locks the global lock and calls udp_process_packet() function. |
* @param device_id The device identifier. Ignored parameter. |
* @param packet The received packet queue. Input/output parameter. |
* @param[in,out] packet The received packet queue. |
* @param receiver The target service. Ignored parameter. |
* @param error The packet error reporting service. Prefixes the received packet. Input parameter. |
* @param[in] error The packet error reporting service. Prefixes the received packet. |
* @returns EOK on success. |
* @returns Other error codes as defined for the udp_process_packet() function. |
*/ |
108,8 → 108,8 |
/** Processes the received UDP packet queue. |
* Notifies the destination socket application. |
* Releases the packet on error or sends an ICMP error notification.. |
* @param packet The received packet queue. Input/output parameter. |
* @param error The packet error reporting service. Prefixes the received packet. Input parameter. |
* @param[in,out] packet The received packet queue. |
* @param[in] error The packet error reporting service. Prefixes the received packet. |
* @returns EOK on success. |
* @returns EINVAL if the packet is not valid. |
* @returns EINVAL if the stored packet address is not the an_addr_t. |
122,8 → 122,8 |
int udp_process_packet( packet_t packet, services_t error ); |
|
/** Releases the packet and returns the result. |
* @param packet The packet queue to be released. Input parameter. |
* @param result The result to be returned. Input parameter. |
* @param[in] packet The packet queue to be released. |
* @param[in] result The result to be returned. |
* @return The result parameter. |
*/ |
int udp_release_and_return( packet_t packet, int result ); |
134,8 → 134,8 |
|
/** Processes the socket client messages. |
* Runs until the client module disconnects. |
* @param callid The message identifier. Input parameter. |
* @param call The message parameters. Input parameter. |
* @param[in] callid The message identifier. |
* @param[in] call The message parameters. |
* @returns EOK on success. |
* @see socket.h |
*/ |
145,13 → 145,13 |
* Binds the socket to a free port if not already connected/bound. |
* Handles the NET_SOCKET_SENDTO message. |
* Supports AF_INET and AF_INET6 address families. |
* @param local_sockets The application local sockets. Input/output parameter. |
* @param socket_id Socket identifier. Input parameter. |
* @param addr The destination address. Input parameter. |
* @param addrlen The address length. Input parameter. |
* @param fragments The number of data fragments. Input parameter. |
* @param data_fragment_size The data fragment size in bytes. Input parameter. |
* @param flags Various send flags. Input parameter. |
* @param[in,out] local_sockets The application local sockets. |
* @param[in] socket_id Socket identifier. |
* @param[in] addr The destination address. |
* @param[in] addrlen The address length. |
* @param[in] fragments The number of data fragments. |
* @param[in] data_fragment_size The data fragment size in bytes. |
* @param[in] flags Various send flags. |
* @returns EOK on success. |
* @returns EAFNOTSUPPORT if the address family is not supported. |
* @returns ENOTSOCK if the socket is not found. |
167,10 → 167,10 |
/** Receives data to the socket. |
* Handles the NET_SOCKET_RECVFROM message. |
* Replies the source address as well. |
* @param local_sockets The application local sockets. Input parameter. |
* @param socket_id Socket identifier. Input parameter. |
* @param flags Various receive flags. Input parameter. |
* @param addrlen The source address length. Output parameter. |
* @param[in] local_sockets The application local sockets. |
* @param[in] socket_id Socket identifier. |
* @param[in] flags Various receive flags. |
* @param[out] addrlen The source address length. |
* @returns The number of bytes received. |
* @returns ENOTSOCK if the socket is not found. |
* @returns NO_DATA if there are no received packets or data. |