Changeset 1bfd3d3 in mainline for uspace/lib/net/tl
- Timestamp:
- 2010-11-19T22:02:09Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 973ef9fc, a9c6b966
- Parents:
- cc3c2a1c
- Location:
- uspace/lib/net/tl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/icmp_client.c
rcc3c2a1c r1bfd3d3 57 57 * @param[out] pointer The ICMP header pointer. 58 58 * @param[out] mtu The ICMP header MTU. 59 * @return sThe ICMP header length.60 * @return sZero if the packet contains no data.59 * @return The ICMP header length. 60 * @return Zero if the packet contains no data. 61 61 */ 62 62 int … … 92 92 * 93 93 * @param[in] packet The packet. 94 * @return sThe ICMP header length in bytes.94 * @return The ICMP header length in bytes. 95 95 */ 96 96 size_t icmp_client_header_length(packet_t packet) -
uspace/lib/net/tl/icmp_remote.c
rcc3c2a1c r1bfd3d3 57 57 * @param[in] mtu The error MTU value. 58 58 * @param[in] packet The original packet. 59 * @return sEOK on success.60 * @return sEPERM if the ICMP error notifications are disabled.61 * @return sENOMEM if there is not enough memory left.59 * @return EOK on success. 60 * @return EPERM if the ICMP error notifications are disabled. 61 * @return ENOMEM if there is not enough memory left. 62 62 */ 63 63 int … … 78 78 * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls. 79 79 * @param[in] packet The original packet. 80 * @return sEOK on success.81 * @return sEPERM if the ICMP error notifications are disabled.82 * @return sENOMEM if there is not enough memory left.80 * @return EOK on success. 81 * @return EPERM if the ICMP error notifications are disabled. 82 * @return ENOMEM if there is not enough memory left. 83 83 */ 84 84 int icmp_source_quench_msg(int icmp_phone, packet_t packet) … … 98 98 * @param[in] code The error specific code. 99 99 * @param[in] packet The original packet. 100 * @return sEOK on success.101 * @return sEPERM if the ICMP error notifications are disabled.102 * @return sENOMEM if there is not enough memory left.100 * @return EOK on success. 101 * @return EPERM if the ICMP error notifications are disabled. 102 * @return ENOMEM if there is not enough memory left. 103 103 */ 104 104 int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t packet) … … 119 119 * @param[in] pointer The problematic parameter offset. 120 120 * @param[in] packet The original packet. 121 * @return sEOK on success.122 * @return sEPERM if the ICMP error notifications are disabled.123 * @return sENOMEM if there is not enough memory left.121 * @return EOK on success. 122 * @return EPERM if the ICMP error notifications are disabled. 123 * @return ENOMEM if there is not enough memory left. 124 124 */ 125 125 int icmp_parameter_problem_msg(int icmp_phone, icmp_code_t code, -
uspace/lib/net/tl/socket_core.c
rcc3c2a1c r1bfd3d3 156 156 * @param[in] key The socket key identifier. 157 157 * @param[in] key_length The socket key length. 158 * @return sEOK on success.159 * @return sENOMEM if there is not enough memory left.158 * @return EOK on success. 159 * @return ENOMEM if there is not enough memory left. 160 160 */ 161 161 static int … … 194 194 * @param[in] socket The socket to be added. 195 195 * @param[in] port The port number to be bound to. 196 * @return sEOK on success.197 * @return sENOMEM if there is not enough memory left.198 * @return sOther error codes as defined for the196 * @return EOK on success. 197 * @return ENOMEM if there is not enough memory left. 198 * @return Other error codes as defined for the 199 199 * socket_ports_add() function. 200 200 */ … … 248 248 * @param[in] free_ports_end The maximum free port. 249 249 * @param[in] last_used_port The last used free port. 250 * @return sEOK on success.251 * @return sENOTSOCK if the socket was not found.252 * @return sEAFNOSUPPORT if the address family is not supported.253 * @return sEADDRINUSE if the port is already in use.254 * @return sOther error codes as defined for the250 * @return EOK on success. 251 * @return ENOTSOCK if the socket was not found. 252 * @return EAFNOSUPPORT if the address family is not supported. 253 * @return EADDRINUSE if the port is already in use. 254 * @return Other error codes as defined for the 255 255 * socket_bind_free_port() function. 256 * @return sOther error codes as defined for the256 * @return Other error codes as defined for the 257 257 * socket_bind_insert() function. 258 258 */ … … 322 322 * @param[in] free_ports_end The maximum free port. 323 323 * @param[in] last_used_port The last used free port. 324 * @return sEOK on success.325 * @return sENOTCONN if no free port was found.326 * @return sOther error codes as defined for the324 * @return EOK on success. 325 * @return ENOTCONN if no free port was found. 326 * @return Other error codes as defined for the 327 327 * socket_bind_insert() function. 328 328 */ … … 367 367 * requested. A negative identifier is requested if set to 368 368 * false. 369 * @return sThe new socket identifier.370 * @return sELIMIT if there is no socket identifier available.369 * @return The new socket identifier. 370 * @return ELIMIT if there is no socket identifier available. 371 371 */ 372 372 static int socket_generate_new_id(socket_cores_t *local_sockets, int positive) … … 410 410 * chosen if set to zero or negative. A negative identifier 411 411 * is chosen if set to negative. 412 * @return sEOK on success.413 * @return sEINVAL if the socket_id parameter is NULL.414 * @return sENOMEM if there is not enough memory left.412 * @return EOK on success. 413 * @return EINVAL if the socket_id parameter is NULL. 414 * @return ENOMEM if there is not enough memory left. 415 415 */ 416 416 int … … 482 482 * @param[in,out] global_sockets The global sockets to be updated. 483 483 * @param[in] socket_release The client release callback function. 484 * @return sEOK on success.485 * @return sENOTSOCK if the socket is not found.484 * @return EOK on success. 485 * @return ENOTSOCK if the socket is not found. 486 486 */ 487 487 int … … 516 516 * @param[in] packet The packet to be transfered. 517 517 * @param[out] length The total data length. 518 * @return sEOK on success.519 * @return sEBADMEM if the length parameter is NULL.520 * @return sENOMEM if there is not enough memory left.521 * @return sOther error codes as defined for the data_reply()518 * @return EOK on success. 519 * @return EBADMEM if the length parameter is NULL. 520 * @return ENOMEM if there is not enough memory left. 521 * @return Other error codes as defined for the data_reply() 522 522 * function. 523 523 */ … … 598 598 * @param[in] key The socket key identifier. 599 599 * @param[in] key_length The socket key length. 600 * @return sThe found socket.601 * @return sNULL if no socket was found.600 * @return The found socket. 601 * @return NULL if no socket was found. 602 602 */ 603 603 socket_core_t * … … 673 673 * @param[in] key The socket key identifier. 674 674 * @param[in] key_length The socket key length. 675 * @return sEOK on success.676 * @return sENOENT if the port is not already used.677 * @return sOther error codes as defined for the675 * @return EOK on success. 676 * @return ENOENT if the port is not already used. 677 * @return Other error codes as defined for the 678 678 * socket_port_add_core() function. 679 679 */ -
uspace/lib/net/tl/tl_common.c
rcc3c2a1c r1bfd3d3 64 64 * @param[in] addrlen The address length. 65 65 * @param[out] port The set port. 66 * @return sEOK on success.67 * @return sEINVAL if the address length does not match the address66 * @return EOK on success. 67 * @return EINVAL if the address length does not match the address 68 68 * family. 69 * @return sEAFNOSUPPORT if the address family is not supported.69 * @return EAFNOSUPPORT if the address family is not supported. 70 70 */ 71 71 int … … 158 158 * @param[in] device_id The device identifier. 159 159 * @param[in] content The new maximum content size. 160 * @return sEOK on success.160 * @return EOK on success. 161 161 * @return ENOENT if the packet dimension is not cached. 162 162 */ … … 196 196 * @param[in] addrlen The address length. 197 197 * @param[in] port The port to be set. 198 * @return sEOK on success.199 * @return sEINVAL if the address length does not match the address198 * @return EOK on success. 199 * @return EINVAL if the address length does not match the address 200 200 * family. 201 * @return sEAFNOSUPPORT if the address family is not supported.201 * @return EAFNOSUPPORT if the address family is not supported. 202 202 */ 203 203 int tl_set_address_port(struct sockaddr * addr, int addrlen, uint16_t port) … … 244 244 * @param[in] error The packet error reporting service. Prefixes the 245 245 * received packet. 246 * @return sEOK on success.247 * @return sENOENT if no packet may be sent.246 * @return EOK on success. 247 * @return ENOENT if no packet may be sent. 248 248 */ 249 249 int … … 280 280 * @param[in] addr The destination address. 281 281 * @param[in] addrlen The address length. 282 * @return sNumber of bytes received.283 * @return sEINVAL if the client does not send data.284 * @return sENOMEM if there is not enough memory left.285 * @return sOther error codes as defined for the282 * @return Number of bytes received. 283 * @return EINVAL if the client does not send data. 284 * @return ENOMEM if there is not enough memory left. 285 * @return Other error codes as defined for the 286 286 * async_data_read_finalize() function. 287 287 */
Note:
See TracChangeset
for help on using the changeset viewer.