Changeset 1bfd3d3 in mainline for uspace/srv/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/srv/net/tl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp.c
rcc3c2a1c r1bfd3d3 100 100 * @param[in,out] header The ICMP datagram header. 101 101 * @param[in] length The total datagram length. 102 * @return sThe computed checksum.102 * @return The computed checksum. 103 103 */ 104 104 #define ICMP_CHECKSUM(header, length) \ … … 112 112 * @param[in] id The message identifier. 113 113 * @param[in] sequence The message sequence number. 114 * @return sThe computed ICMP reply data key.114 * @return The computed ICMP reply data key. 115 115 */ 116 116 #define ICMP_GET_REPLY_KEY(id, sequence) \ … … 128 128 * @param[in] packet The packet queue to be released. 129 129 * @param[in] result The result to be returned. 130 * @return sThe result parameter.130 * @return The result parameter. 131 131 */ 132 132 static int icmp_release_and_return(packet_t packet, int result) … … 152 152 * @param[in] dont_fragment The value indicating whether the datagram must not 153 153 * be fragmented. Is used as a MTU discovery. 154 * @return sEOK on success.155 * @return sEPERM if the error message is not allowed.154 * @return EOK on success. 155 * @return EPERM if the error message is not allowed. 156 156 */ 157 157 static int icmp_send_packet(icmp_type_t type, icmp_code_t code, packet_t packet, … … 186 186 * 187 187 * @param[in,out] packet The original packet. 188 * @return sThe prefixed ICMP header.189 * @return sNULL on errors.188 * @return The prefixed ICMP header. 189 * @return NULL on errors. 190 190 */ 191 191 static icmp_header_t *icmp_prepare_packet(packet_t packet) … … 234 234 * @param[in] addr The target host address. 235 235 * @param[in] addrlen The torget host address length. 236 * @return sICMP_ECHO on success.237 * @return sETIMEOUT if the reply has not arrived before the236 * @return ICMP_ECHO on success. 237 * @return ETIMEOUT if the reply has not arrived before the 238 238 * timeout. 239 * @return sICMP type of the received error notification.240 * @return sEINVAL if the addrlen parameter is less or equal to239 * @return ICMP type of the received error notification. 240 * @return EINVAL if the addrlen parameter is less or equal to 241 241 * zero. 242 * @return sENOMEM if there is not enough memory left.243 * @return sEPARTY if there was an internal error.242 * @return ENOMEM if there is not enough memory left. 243 * @return EPARTY if there was an internal error. 244 244 */ 245 245 static int icmp_echo(icmp_param_t id, icmp_param_t sequence, size_t size, … … 398 398 * @param[in] client_connection The client connection processing function. The 399 399 * module skeleton propagates its own one. 400 * @return sEOK on success.401 * @return sENOMEM if there is not enough memory left.400 * @return EOK on success. 401 * @return ENOMEM if there is not enough memory left. 402 402 */ 403 403 int icmp_initialize(async_client_conn_t client_connection) … … 507 507 * @param[in] error The packet error reporting service. Prefixes the 508 508 * received packet. 509 * @return sEOK on success.510 * @return sEINVAL if the packet is not valid.511 * @return sEINVAL if the stored packet address is not the an_addr_t.512 * @return sEINVAL if the packet does not contain any data.513 * @return sNO_DATA if the packet content is shorter than the user509 * @return EOK on success. 510 * @return EINVAL if the packet is not valid. 511 * @return EINVAL if the stored packet address is not the an_addr_t. 512 * @return EINVAL if the packet does not contain any data. 513 * @return NO_DATA if the packet content is shorter than the user 514 514 * datagram header. 515 * @return sENOMEM if there is not enough memory left.516 * @return sEADDRNOTAVAIL if the destination socket does not exist.517 * @return sOther error codes as defined for the515 * @return ENOMEM if there is not enough memory left. 516 * @return EADDRNOTAVAIL if the destination socket does not exist. 517 * @return Other error codes as defined for the 518 518 * ip_client_process_packet() function. 519 519 */ … … 654 654 * @param[in] error The packet error reporting service. Prefixes the 655 655 * received packet. 656 * @return sEOK on success.657 * @return sOther error codes as defined for the656 * @return EOK on success. 657 * @return Other error codes as defined for the 658 658 * icmp_process_packet() function. 659 659 */ … … 673 673 * 674 674 * @param[in] call The message parameters. 675 * @return sEOK on success.676 * @return sENOTSUP if the message is not known.677 * @return sOther error codes as defined for the packet_translate()675 * @return EOK on success. 676 * @return ENOTSUP if the message is not known. 677 * @return Other error codes as defined for the packet_translate() 678 678 * function. 679 * @return sOther error codes as defined for the679 * @return Other error codes as defined for the 680 680 * icmp_destination_unreachable_msg_local() function. 681 * @return sOther error codes as defined for the681 * @return Other error codes as defined for the 682 682 * icmp_source_quench_msg_local() function. 683 * @return sOther error codes as defined for the683 * @return Other error codes as defined for the 684 684 * icmp_time_exceeded_msg_local() function. 685 * @return sOther error codes as defined for the685 * @return Other error codes as defined for the 686 686 * icmp_parameter_problem_msg_local() function. 687 687 * … … 731 731 * 732 732 * @param[in,out] echo_data The echo data to be bound. 733 * @return sIndex of the inserted echo data.734 * @return sEBADMEM if the echo_data parameter is NULL.735 * @return sENOTCONN if no free identifier have been found.733 * @return Index of the inserted echo data. 734 * @return EBADMEM if the echo_data parameter is NULL. 735 * @return ENOTCONN if no free identifier have been found. 736 736 */ 737 737 static int icmp_bind_free_id(icmp_echo_t *echo_data) … … 778 778 * @param[in] callid The message identifier. 779 779 * @param[in] call The message parameters. 780 * @return sEOK.780 * @return EOK. 781 781 * 782 782 * @see icmp_interface.h … … 887 887 * @param[out] answer_count The last parameter for the actual answer in the 888 888 * answer parameter. 889 * @return sEOK on success.890 * @return sENOTSUP if the message is not known.889 * @return EOK on success. 890 * @return ENOTSUP if the message is not known. 891 891 * 892 892 * @see icmp_interface.h … … 964 964 /** Starts the module. 965 965 * 966 * @return sEOK on success.967 * @return sOther error codes as defined for each specific module966 * @return EOK on success. 967 * @return Other error codes as defined for each specific module 968 968 * start function. 969 969 */ -
uspace/srv/net/tl/tcp/tcp.c
rcc3c2a1c r1bfd3d3 224 224 * @param[in] client_connection The client connection processing function. The 225 225 * module skeleton propagates its own one. 226 * @return sEOK on success.227 * @return sENOMEM if there is not enough memory left.226 * @return EOK on success. 227 * @return ENOMEM if there is not enough memory left. 228 228 */ 229 229 int tcp_initialize(async_client_conn_t client_connection) … … 1222 1222 * @param[out] answer_count The last parameter for the actual answer in the 1223 1223 * answer parameter. 1224 * @return sEOK on success.1225 * @return sENOTSUP if the message is not known.1224 * @return EOK on success. 1225 * @return ENOTSUP if the message is not known. 1226 1226 * 1227 1227 * @see tcp_interface.h … … 2494 2494 /** Starts the module. 2495 2495 * 2496 * @return sEOK on success.2497 * @return sOther error codes as defined for each specific module2496 * @return EOK on success. 2497 * @return Other error codes as defined for each specific module 2498 2498 * start function. 2499 2499 */ -
uspace/srv/net/tl/udp/udp.c
rcc3c2a1c r1bfd3d3 97 97 * @param[in] client_connection The client connection processing function. The 98 98 * module skeleton propagates its own one. 99 * @return sEOK on success.100 * @return sENOMEM if there is not enough memory left.99 * @return EOK on success. 100 * @return ENOMEM if there is not enough memory left. 101 101 */ 102 102 int udp_initialize(async_client_conn_t client_connection) … … 205 205 * @param[in] error The packet error reporting service. Prefixes the 206 206 * received packet. 207 * @return sEOK on success.208 * @return sEINVAL if the packet is not valid.209 * @return sEINVAL if the stored packet address is not the207 * @return EOK on success. 208 * @return EINVAL if the packet is not valid. 209 * @return EINVAL if the stored packet address is not the 210 210 * an_addr_t. 211 * @return sEINVAL if the packet does not contain any data.212 * @return sNO_DATA if the packet content is shorter than the user211 * @return EINVAL if the packet does not contain any data. 212 * @return NO_DATA if the packet content is shorter than the user 213 213 * datagram header. 214 * @return sENOMEM if there is not enough memory left.215 * @return sEADDRNOTAVAIL if the destination socket does not exist.216 * @return sOther error codes as defined for the214 * @return ENOMEM if there is not enough memory left. 215 * @return EADDRNOTAVAIL if the destination socket does not exist. 216 * @return Other error codes as defined for the 217 217 * ip_client_process_packet() function. 218 218 */ … … 409 409 * @param[in] error The packet error reporting service. Prefixes the 410 410 * received packet. 411 * @return sEOK on success.412 * @return sOther error codes as defined for the411 * @return EOK on success. 412 * @return Other error codes as defined for the 413 413 * udp_process_packet() function. 414 414 */ … … 439 439 * @param[out] data_fragment_size The data fragment size in bytes. 440 440 * @param[in] flags Various send flags. 441 * @return sEOK on success.442 * @return sEAFNOTSUPPORT if the address family is not supported.443 * @return sENOTSOCK if the socket is not found.444 * @return sEINVAL if the address is invalid.445 * @return sENOTCONN if the sending socket is not and cannot be441 * @return EOK on success. 442 * @return EAFNOTSUPPORT if the address family is not supported. 443 * @return ENOTSOCK if the socket is not found. 444 * @return EINVAL if the address is invalid. 445 * @return ENOTCONN if the sending socket is not and cannot be 446 446 * bound. 447 * @return sENOMEM if there is not enough memory left.448 * @return sOther error codes as defined for the447 * @return ENOMEM if there is not enough memory left. 448 * @return Other error codes as defined for the 449 449 * socket_read_packet_data() function. 450 * @return sOther error codes as defined for the450 * @return Other error codes as defined for the 451 451 * ip_client_prepare_packet() function. 452 * @return sOther error codes as defined for the ip_send_msg()452 * @return Other error codes as defined for the ip_send_msg() 453 453 * function. 454 454 */ … … 599 599 * @param[in] flags Various receive flags. 600 600 * @param[out] addrlen The source address length. 601 * @return sThe number of bytes received.602 * @return sENOTSOCK if the socket is not found.603 * @return sNO_DATA if there are no received packets or data.604 * @return sENOMEM if there is not enough memory left.605 * @return sEINVAL if the received address is not an IP address.606 * @return sOther error codes as defined for the packet_translate()601 * @return The number of bytes received. 602 * @return ENOTSOCK if the socket is not found. 603 * @return NO_DATA if there are no received packets or data. 604 * @return ENOMEM if there is not enough memory left. 605 * @return EINVAL if the received address is not an IP address. 606 * @return Other error codes as defined for the packet_translate() 607 607 * function. 608 * @return sOther error codes as defined for the data_reply()608 * @return Other error codes as defined for the data_reply() 609 609 * function. 610 610 */ … … 698 698 * @param[in] callid The message identifier. 699 699 * @param[in] call The message parameters. 700 * @return sEOK on success.700 * @return EOK on success. 701 701 * 702 702 * @see socket.h … … 852 852 * @param[out] answer_count The last parameter for the actual answer in the 853 853 * answer parameter. 854 * @return sEOK on success.855 * @return sENOTSUP if the message is not known.854 * @return EOK on success. 855 * @return ENOTSUP if the message is not known. 856 856 * 857 857 * @see udp_interface.h … … 924 924 /** Starts the module. 925 925 * 926 * @return sEOK on success.927 * @return sOther error codes as defined for each specific module926 * @return EOK on success. 927 * @return Other error codes as defined for each specific module 928 928 * start function. 929 929 */
Note:
See TracChangeset
for help on using the changeset viewer.
