Changeset a9c6b966 in mainline for uspace/srv
- Timestamp:
- 2010-11-19T22:04:12Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b4a67a, fdbc3ff
- Parents:
- a7811f17 (diff), 1bfd3d3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/srv
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390.c
ra7811f17 ra9c6b966 62 62 * @param[in] dep The network interface structure. 63 63 * @param[in] packet The outgoing packet. 64 * @return sEOK on success.65 * @return sEINVAL64 * @return EOK on success. 65 * @return EINVAL 66 66 */ 67 67 int queue_packet(dpeth_t * dep, packet_t packet); -
uspace/srv/net/il/arp/arp.c
ra7811f17 ra9c6b966 171 171 * @param[in] service The protocol module service. 172 172 * @param[in] address The actual protocol device address. 173 * @return sEOK on success.174 * @return sENOMEM if there is not enough memory left.173 * @return EOK on success. 174 * @return ENOMEM if there is not enough memory left. 175 175 */ 176 176 static int arp_proto_create(arp_proto_t **proto, services_t service, … … 205 205 * @param[in] protocol The protocol service. 206 206 * @param[in] address The actual device protocol address. 207 * @return sEOK on success.208 * @return sEEXIST if another device with the same device identifier207 * @return EOK on success. 208 * @return EEXIST if another device with the same device identifier 209 209 * and different driver service exists. 210 * @return sENOMEM if there is not enough memory left.211 * @return sOther error codes as defined for the210 * @return ENOMEM if there is not enough memory left. 211 * @return Other error codes as defined for the 212 212 * measured_strings_return() function. 213 213 */ … … 356 356 * @param[in] client_connection The client connection processing function. 357 357 * The module skeleton propagates its own one. 358 * @return sEOK on success.359 * @return sENOMEM if there is not enough memory left.358 * @return EOK on success. 359 * @return ENOMEM if there is not enough memory left. 360 360 */ 361 361 int arp_initialize(async_client_conn_t client_connection) … … 376 376 * @param[in] device_id The device identifier. 377 377 * @param[in] mtu The new mtu value. 378 * @return sENOENT if device is not found.379 * @return sEOK on success.378 * @return ENOENT if device is not found. 379 * @return EOK on success. 380 380 */ 381 381 static int arp_mtu_changed_message(device_id_t device_id, size_t mtu) … … 404 404 * @param[in] device_id The source device identifier. 405 405 * @param[in,out] packet The received packet. 406 * @return sEOK on success and the packet is no longer needed.407 * @return sOne on success and the packet has been reused.408 * @return sEINVAL if the packet is too small to carry an ARP406 * @return EOK on success and the packet is no longer needed. 407 * @return One on success and the packet has been reused. 408 * @return EINVAL if the packet is too small to carry an ARP 409 409 * packet. 410 * @return sEINVAL if the received address lengths differs from410 * @return EINVAL if the received address lengths differs from 411 411 * the registered values. 412 * @return sENOENT if the device is not found in the cache.413 * @return sENOENT if the protocol for the device is not found in412 * @return ENOENT if the device is not found in the cache. 413 * @return ENOENT if the protocol for the device is not found in 414 414 * the cache. 415 * @return sENOMEM if there is not enough memory left.415 * @return ENOMEM if there is not enough memory left. 416 416 */ 417 417 static int arp_receive_message(device_id_t device_id, packet_t packet) … … 516 516 * @param[in] protocol The protocol service. 517 517 * @param[in] target The target protocol address. 518 * @return sThe hardware address of the target.519 * @return sNULL if the target parameter is NULL.520 * @return sNULL if the device is not found.521 * @return sNULL if the device packet is too small to send a518 * @return The hardware address of the target. 519 * @return NULL if the target parameter is NULL. 520 * @return NULL if the device is not found. 521 * @return NULL if the device packet is too small to send a 522 522 * request. 523 * @return sNULL if the hardware address is not found in the cache.523 * @return NULL if the hardware address is not found in the cache. 524 524 */ 525 525 static measured_string_t * … … 602 602 * @param[out] answer_count The last parameter for the actual answer in the 603 603 * answer parameter. 604 * @return sEOK on success.605 * @return sENOTSUP if the message is not known.604 * @return EOK on success. 605 * @return ENOTSUP if the message is not known. 606 606 * 607 607 * @see arp_interface.h … … 747 747 /** Starts the module. 748 748 * 749 * @return sEOK on success.750 * @return sOther error codes as defined for each specific module749 * @return EOK on success. 750 * @return Other error codes as defined for each specific module 751 751 * start function. 752 752 */ -
uspace/srv/net/il/ip/ip.c
ra7811f17 ra9c6b966 139 139 * Searches the registered protocols. 140 140 * 141 * @return sThe found ICMP phone.142 * @return sENOENT if the ICMP is not registered.141 * @return The found ICMP phone. 142 * @return ENOENT if the ICMP is not registered. 143 143 */ 144 144 static int ip_get_icmp_phone(void) … … 160 160 * @param[in] packet The packet or the packet queue to be reported as faulty. 161 161 * @param[in] header The first packet IP header. May be NULL. 162 * @return sEOK on success.163 * @return sEINVAL if there are no data in the packet.164 * @return sEINVAL if the packet is a fragment.165 * @return sENOMEM if the packet is too short to contain the IP162 * @return EOK on success. 163 * @return EINVAL if there are no data in the packet. 164 * @return EINVAL if the packet is a fragment. 165 * @return ENOMEM if the packet is too short to contain the IP 166 166 * header. 167 * @return sEAFNOSUPPORT if the address family is not supported.168 * @return sEPERM if the protocol is not allowed to send ICMP167 * @return EAFNOSUPPORT if the address family is not supported. 168 * @return EPERM if the protocol is not allowed to send ICMP 169 169 * notifications. The ICMP protocol itself. 170 * @return sOther error codes as defined for the packet_set_addr().170 * @return Other error codes as defined for the packet_set_addr(). 171 171 */ 172 172 static int ip_prepare_icmp(packet_t packet, ip_header_t *header) … … 227 227 * @param[in] packet The packet or the packet queue to be reported as faulty. 228 228 * @param[in] header The first packet IP header. May be NULL. 229 * @return sThe found ICMP phone.230 * @return sEINVAL if the error parameter is set.231 * @return sEINVAL if the ICMP phone is not found.232 * @return sEINVAL if the ip_prepare_icmp() fails.229 * @return The found ICMP phone. 230 * @return EINVAL if the error parameter is set. 231 * @return EINVAL if the ICMP phone is not found. 232 * @return EINVAL if the ip_prepare_icmp() fails. 233 233 */ 234 234 static int … … 248 248 * @param[in] client_connection The client connection processing function. The 249 249 * module skeleton propagates its own one. 250 * @return sEOK on success.251 * @return sENOMEM if there is not enough memory left.250 * @return EOK on success. 251 * @return ENOMEM if there is not enough memory left. 252 252 */ 253 253 int ip_initialize(async_client_conn_t client_connection) … … 293 293 * 294 294 * @param[in,out] ip_netif Network interface specific data. 295 * @return sEOK on success.296 * @return sENOTSUP if DHCP is configured.297 * @return sENOTSUP if IPv6 is configured.298 * @return sEINVAL if any of the addresses is invalid.299 * @return sEINVAL if the used ARP module is not known.300 * @return sENOMEM if there is not enough memory left.301 * @return sOther error codes as defined for the295 * @return EOK on success. 296 * @return ENOTSUP if DHCP is configured. 297 * @return ENOTSUP if IPv6 is configured. 298 * @return EINVAL if any of the addresses is invalid. 299 * @return EINVAL if the used ARP module is not known. 300 * @return ENOMEM if there is not enough memory left. 301 * @return Other error codes as defined for the 302 302 * net_get_device_conf_req() function. 303 * @return sOther error codes as defined for the bind_service()303 * @return Other error codes as defined for the bind_service() 304 304 * function. 305 * @return sOther error codes as defined for the specific305 * @return Other error codes as defined for the specific 306 306 * arp_device_req() function. 307 * @return sOther error codes as defined for the307 * @return Other error codes as defined for the 308 308 * nil_packet_size_req() function. 309 309 */ … … 486 486 * @param[in] device_id The device identifier. 487 487 * @param[in] mtu The new mtu value. 488 * @return sEOK on success.489 * @return sENOENT if device is not found.488 * @return EOK on success. 489 * @return ENOENT if device is not found. 490 490 */ 491 491 static int ip_mtu_changed_message(device_id_t device_id, size_t mtu) … … 511 511 * @param[in] device_id The device identifier. 512 512 * @param[in] state The new state value. 513 * @return sEOK on success.514 * @return sENOENT if device is not found.513 * @return EOK on success. 514 * @return ENOENT if device is not found. 515 515 */ 516 516 static int ip_device_state_message(device_id_t device_id, device_state_t state) … … 539 539 * @param[in] packet The packet to be prefixed. 540 540 * @param[in] last The last header to be copied. 541 * @return sThe prefixed middle header.542 * @return sNULL on error.541 * @return The prefixed middle header. 542 * @return NULL on error. 543 543 */ 544 544 static ip_header_t * … … 613 613 * @param[in,out] packet The packet to be sent. 614 614 * @param[in] destination The destination hardware address. 615 * @return sEOK on success.616 * @return sEINVAL if the packet is too small to contain the IP615 * @return EOK on success. 616 * @return EINVAL if the packet is too small to contain the IP 617 617 * header. 618 * @return sEINVAL if the packet is too long than the IP allows.619 * @return sENOMEM if there is not enough memory left.620 * @return sOther error codes as defined for the packet_set_addr()618 * @return EINVAL if the packet is too long than the IP allows. 619 * @return ENOMEM if there is not enough memory left. 620 * @return Other error codes as defined for the packet_set_addr() 621 621 * function. 622 622 */ … … 746 746 * @param[in] dest The destiantion address. 747 747 * @param[in] addrlen The address length. 748 * @return sEOK on success.749 * @return sENOMEM if the target packet is too small.750 * @return sOther error codes as defined for the packet_set_addr()748 * @return EOK on success. 749 * @return ENOMEM if the target packet is too small. 750 * @return Other error codes as defined for the packet_set_addr() 751 751 * function. 752 * @return sOther error codes as defined for the pq_insert_after()752 * @return Other error codes as defined for the pq_insert_after() 753 753 * function. 754 754 */ … … 799 799 * @param[in] suffix The minimum suffix size. 800 800 * @param[in] addr_len The minimum address length. 801 * @return sEOK on success.802 * @return sEINVAL if the packet_get_addr() function fails.803 * @return sEINVAL if the packet does not contain the IP header.804 * @return sEPERM if the packet needs to be fragmented and the801 * @return EOK on success. 802 * @return EINVAL if the packet_get_addr() function fails. 803 * @return EINVAL if the packet does not contain the IP header. 804 * @return EPERM if the packet needs to be fragmented and the 805 805 * fragmentation is not allowed. 806 * @return sENOMEM if there is not enough memory left.807 * @return sENOMEM if there is no packet available.808 * @return sENOMEM if the packet is too small to contain the IP806 * @return ENOMEM if there is not enough memory left. 807 * @return ENOMEM if there is no packet available. 808 * @return ENOMEM if the packet is too small to contain the IP 809 809 * header. 810 * @return sOther error codes as defined for the packet_trim()810 * @return Other error codes as defined for the packet_trim() 811 811 * function. 812 * @return sOther error codes as defined for the812 * @return Other error codes as defined for the 813 813 * ip_create_middle_header() function. 814 * @return sOther error codes as defined for the814 * @return Other error codes as defined for the 815 815 * ip_fragment_packet_data() function. 816 816 */ … … 919 919 * @param[in] addr_len The minimum address length. 920 920 * @param[in] error The error module service. 921 * @return sThe packet or the packet queue of the allowed length.922 * @return sNULL if there are no packets left.921 * @return The packet or the packet queue of the allowed length. 922 * @return NULL if there are no packets left. 923 923 */ 924 924 static packet_t … … 986 986 * @param[in] dest The destination address. 987 987 * @param[in] error The error module service. 988 * @return sEOK on success.989 * @return sOther error codes as defined for the arp_translate_req()988 * @return EOK on success. 989 * @return Other error codes as defined for the arp_translate_req() 990 990 * function. 991 * @return sOther error codes as defined for the ip_prepare_packet()991 * @return Other error codes as defined for the ip_prepare_packet() 992 992 * function. 993 993 */ … … 1062 1062 * NULL. 1063 1063 * @param[in] destination The destination address. 1064 * @return sThe found route.1065 * @return sNULL if no route was found.1064 * @return The found route. 1065 * @return NULL if no route was found. 1066 1066 */ 1067 1067 static ip_route_t * … … 1090 1090 * 1091 1091 * @param[in] destination The destination address. 1092 * @return sThe found route.1093 * @return sNULL if no route was found.1092 * @return The found route. 1093 * @return NULL if no route was found. 1094 1094 */ 1095 1095 static ip_route_t *ip_find_route(in_addr_t destination) { … … 1116 1116 * 1117 1117 * @param[in] netif The network interface. 1118 * @return sThe IP address.1119 * @return sNULL if no IP address was found.1118 * @return The IP address. 1119 * @return NULL if no IP address was found. 1120 1120 */ 1121 1121 static in_addr_t *ip_netif_address(ip_netif_t *netif) … … 1136 1136 * @param[in] phone The transport layer module phone. 1137 1137 * @param[in] received_msg The receiving function. 1138 * @return sEOK on success.1139 * @return sEINVAL if the protocol parameter and/or the service1138 * @return EOK on success. 1139 * @return EINVAL if the protocol parameter and/or the service 1140 1140 * parameter is zero. 1141 * @return sEINVAL if the phone parameter is not a positive number1141 * @return EINVAL if the phone parameter is not a positive number 1142 1142 * and the tl_receive_msg is NULL. 1143 * @return sENOMEM if there is not enough memory left.1143 * @return ENOMEM if there is not enough memory left. 1144 1144 */ 1145 1145 static int … … 1361 1361 * @param[out] content The maximum content size. 1362 1362 * @param[out] suffix The minimum reserved suffix size. 1363 * @return sEOK on success.1363 * @return EOK on success. 1364 1364 */ 1365 1365 static int … … 1418 1418 * 1419 1419 * @param[in] header The packet IP header to be read. 1420 * @return sThe packet destination address.1420 * @return The packet destination address. 1421 1421 */ 1422 1422 static in_addr_t ip_get_destination(ip_header_t *header) … … 1439 1439 * @param[in] header The first packet IP header. May be NULL. 1440 1440 * @param[in] error The packet error service. 1441 * @return sEOK on success.1442 * @return sENOTSUP if the packet is a fragment.1443 * @return sEAFNOSUPPORT if the address family is not supported.1444 * @return sENOENT if the target protocol is not found.1445 * @return sOther error codes as defined for the packet_set_addr()1441 * @return EOK on success. 1442 * @return ENOTSUP if the packet is a fragment. 1443 * @return EAFNOSUPPORT if the address family is not supported. 1444 * @return ENOENT if the target protocol is not found. 1445 * @return Other error codes as defined for the packet_set_addr() 1446 1446 * function. 1447 * @return sOther error codes as defined for the packet_trim()1447 * @return Other error codes as defined for the packet_trim() 1448 1448 * function. 1449 * @return sOther error codes as defined for the protocol specific1449 * @return Other error codes as defined for the protocol specific 1450 1450 * tl_received_msg() function. 1451 1451 */ … … 1544 1544 * @param[in] device_id The source device identifier. 1545 1545 * @param[in] packet The received packet to be processed. 1546 * @return sEOK on success.1547 * @return sEINVAL if the TTL is less than two.1548 * @return sEINVAL if the checksum is invalid.1549 * @return sEAFNOSUPPORT if the address family is not supported.1550 * @return sENOENT if no route was found.1551 * @return sENOENT if the packet is for another host and the routing1546 * @return EOK on success. 1547 * @return EINVAL if the TTL is less than two. 1548 * @return EINVAL if the checksum is invalid. 1549 * @return EAFNOSUPPORT if the address family is not supported. 1550 * @return ENOENT if no route was found. 1551 * @return ENOENT if the packet is for another host and the routing 1552 1552 * is disabled. 1553 1553 */ … … 1849 1849 * @param[in] device_id The source device identifier. 1850 1850 * @param[in,out] packet The received packet. 1851 * @return sEOK on success and the packet is no longer needed.1852 * @return sEINVAL if the packet is too small to carry the IP1851 * @return EOK on success and the packet is no longer needed. 1852 * @return EINVAL if the packet is too small to carry the IP 1853 1853 * packet. 1854 * @return sEINVAL if the received address lengths differs from the1854 * @return EINVAL if the received address lengths differs from the 1855 1855 * registered values. 1856 * @return sENOENT if the device is not found in the cache.1857 * @return sENOENT if the protocol for the device is not found in1856 * @return ENOENT if the device is not found in the cache. 1857 * @return ENOENT if the protocol for the device is not found in 1858 1858 * the cache. 1859 * @return sENOMEM if there is not enough memory left.1859 * @return ENOMEM if there is not enough memory left. 1860 1860 */ 1861 1861 static int ip_receive_message(device_id_t device_id, packet_t packet) … … 1879 1879 * @param[out] answer_count The last parameter for the actual answer in the 1880 1880 * answer parameter. 1881 * @return sEOK on success.1882 * @return sENOTSUP if the message is not known.1881 * @return EOK on success. 1882 * @return ENOTSUP if the message is not known. 1883 1883 * 1884 1884 * @see ip_interface.h … … 2037 2037 /** Starts the module. 2038 2038 * 2039 * @return sEOK on success.2040 * @return sOther error codes as defined for each specific module start function.2039 * @return EOK on success. 2040 * @return Other error codes as defined for each specific module start function. 2041 2041 */ 2042 2042 int main(int argc, char *argv[]) -
uspace/srv/net/net/net.c
ra7811f17 ra9c6b966 78 78 DEVICE_MAP_IMPLEMENT(netifs, netif_t); 79 79 80 static int startup(void); 81 80 82 /** Add the configured setting to the configuration map. 81 83 * … … 84 86 * @param[in] value The setting value. 85 87 * 86 * @return sEOK on success.87 * @return sENOMEM if there is not enough memory left.88 * @return EOK on success. 89 * @return ENOMEM if there is not enough memory left. 88 90 * 89 91 */ … … 110 112 /** Generate new system-unique device identifier. 111 113 * 112 * @return sThe system-unique devic identifier.114 * @return The system-unique devic identifier. 113 115 */ 114 116 static device_id_t generate_new_device_id(void) … … 235 237 * @param[in,out] netif The network interface structure. 236 238 * 237 * @return sEOK on success.238 * @return sOther error codes as defined for the add_configuration() function.239 * @return EOK on success. 240 * @return Other error codes as defined for the add_configuration() function. 239 241 * 240 242 */ … … 246 248 /** Read the networking subsystem global configuration. 247 249 * 248 * @return sEOK on success.249 * @return sOther error codes as defined for the add_configuration() function.250 * @return EOK on success. 251 * @return Other error codes as defined for the add_configuration() function. 250 252 * 251 253 */ … … 262 264 * its own one. 263 265 * 264 * @return sEOK on success.265 * @return sENOMEM if there is not enough memory left.266 * @return EOK on success. 267 * @return ENOMEM if there is not enough memory left. 266 268 * 267 269 */ … … 313 315 * its own one. 314 316 * 315 * @return sEOK on successful module termination.316 * @return sOther error codes as defined for the net_initialize() function.317 * @return sOther error codes as defined for the REGISTER_ME() macro function.317 * @return EOK on successful module termination. 318 * @return Other error codes as defined for the net_initialize() function. 319 * @return Other error codes as defined for the REGISTER_ME() macro function. 318 320 * 319 321 */ … … 337 339 goto out; 338 340 341 rc = startup(); 342 if (rc != EOK) 343 goto out; 344 345 task_retval(0); 339 346 async_manager(); 340 347 … … 353 360 * @param[out] data The found configuration settings data. 354 361 * 355 * @return sEOK.362 * @return EOK. 356 363 * 357 364 */ … … 415 422 * @param[in] netif The network interface specific data. 416 423 * 417 * @return sEOK on success.418 * @return sEINVAL if there are some settings missing.419 * @return sENOENT if the internet protocol module is not known.420 * @return sOther error codes as defined for the netif_probe_req() function.421 * @return sOther error codes as defined for the nil_device_req() function.422 * @return sOther error codes as defined for the needed internet layer423 * 424 * @return EOK on success. 425 * @return EINVAL if there are some settings missing. 426 * @return ENOENT if the internet protocol module is not known. 427 * @return Other error codes as defined for the netif_probe_req() function. 428 * @return Other error codes as defined for the nil_device_req() function. 429 * @return Other error codes as defined for the needed internet layer 430 * registering function. 424 431 * 425 432 */ … … 507 514 /** Read the configuration and start all network interfaces. 508 515 * 509 * @return sEOK on success.510 * @return sEXDEV if there is no available system-unique device identifier.511 * @return sEINVAL if any of the network interface names are not configured.512 * @return sENOMEM if there is not enough memory left.513 * @return sOther error codes as defined for the read_configuration()514 * 515 * @return sOther error codes as defined for the read_netif_configuration()516 * 517 * @return sOther error codes as defined for the start_device() function.516 * @return EOK on success. 517 * @return EXDEV if there is no available system-unique device identifier. 518 * @return EINVAL if any of the network interface names are not configured. 519 * @return ENOMEM if there is not enough memory left. 520 * @return Other error codes as defined for the read_configuration() 521 * function. 522 * @return Other error codes as defined for the read_netif_configuration() 523 * function. 524 * @return Other error codes as defined for the start_device() function. 518 525 * 519 526 */ … … 610 617 * in the answer parameter. 611 618 * 612 * @return sEOK on success.613 * @return sENOTSUP if the message is not known.619 * @return EOK on success. 620 * @return ENOTSUP if the message is not known. 614 621 * 615 622 * @see net_interface.h -
uspace/srv/net/netif/lo/lo.c
ra7811f17 ra9c6b966 103 103 * @param[in] device The device structure. 104 104 * @param[in] state The new device state. 105 * @return sThe new state if changed.106 * @return sEOK otherwise.105 * @return The new state if changed. 106 * @return EOK otherwise. 107 107 */ 108 108 static int change_state_message(netif_device_t *device, device_state_t state) … … 124 124 * @param[in] device_id The new devce identifier. 125 125 * @param[out] device The device structure. 126 * @return sEOK on success.127 * @return sEXDEV if one loopback network interface already exists.128 * @return sENOMEM if there is not enough memory left.126 * @return EOK on success. 127 * @return EXDEV if one loopback network interface already exists. 128 * @return ENOMEM if there is not enough memory left. 129 129 */ 130 130 static int create(device_id_t device_id, netif_device_t **device) -
uspace/srv/net/nil/eth/eth.c
ra7811f17 ra9c6b966 268 268 * @param[in] service The device driver service. 269 269 * @param[in] mtu The device maximum transmission unit. 270 * @return sEOK on success.271 * @return sEEXIST if the device with the different service exists.272 * @return sENOMEM if there is not enough memory left.273 * @return sOther error codes as defined for the270 * @return EOK on success. 271 * @return EEXIST if the device with the different service exists. 272 * @return ENOMEM if there is not enough memory left. 273 * @return Other error codes as defined for the 274 274 * net_get_device_conf_req() function. 275 * @return sOther error codes as defined for the275 * @return Other error codes as defined for the 276 276 * netif_bind_service() function. 277 * @return sOther error codes as defined for the277 * @return Other error codes as defined for the 278 278 * netif_get_addr_req() function. 279 279 */ … … 422 422 * @param[in] flags The device flags. 423 423 * @param[in] packet The packet. 424 * @return sThe target registered module.425 * @return sNULL if the packet is not long enough.426 * @return sNULL if the packet is too long.427 * @return sNULL if the raw ethernet protocol is used.428 * @return sNULL if the dummy device FCS checksum is invalid.429 * @return sNULL if the packet address length is not big enough.424 * @return The target registered module. 425 * @return NULL if the packet is not long enough. 426 * @return NULL if the packet is too long. 427 * @return NULL if the raw ethernet protocol is used. 428 * @return NULL if the dummy device FCS checksum is invalid. 429 * @return NULL if the packet address length is not big enough. 430 430 */ 431 431 static eth_proto_t *eth_process_packet(int flags, packet_t packet) … … 552 552 * @param[out] content The maximum content size. 553 553 * @param[out] suffix The minimum reserved suffix size. 554 * @return sEOK on success.555 * @return sEBADMEM if either one of the parameters is NULL.556 * @return sENOENT if there is no such device.554 * @return EOK on success. 555 * @return EBADMEM if either one of the parameters is NULL. 556 * @return ENOENT if there is no such device. 557 557 */ 558 558 static int eth_packet_space_message(device_id_t device_id, size_t *addr_len, … … 586 586 * @param[in] type Type of the desired address. 587 587 * @param[out] address The device hardware address. 588 * @return sEOK on success.589 * @return sEBADMEM if the address parameter is NULL.590 * @return sENOENT if there no such device.588 * @return EOK on success. 589 * @return EBADMEM if the address parameter is NULL. 590 * @return ENOENT if there no such device. 591 591 */ 592 592 static int eth_addr_message(device_id_t device_id, eth_addr_type_t type, … … 620 620 * @param[in] service The module service. 621 621 * @param[in] phone The service phone. 622 * @return sEOK on success.623 * @return sENOENT if the service is not known.624 * @return sENOMEM if there is not enough memory left.622 * @return EOK on success. 623 * @return ENOENT if the service is not known. 624 * @return ENOMEM if there is not enough memory left. 625 625 */ 626 626 static int eth_register_message(services_t service, int phone) … … 673 673 * @param[in] ethertype The ethernet protocol type. 674 674 * @param[in] mtu The device maximum transmission unit. 675 * @return sEOK on success.676 * @return sEINVAL if the packet addresses length is not long675 * @return EOK on success. 676 * @return EINVAL if the packet addresses length is not long 677 677 * enough. 678 * @return sEINVAL if the packet is bigger than the device MTU.679 * @return sENOMEM if there is not enough memory in the packet.678 * @return EINVAL if the packet is bigger than the device MTU. 679 * @return ENOMEM if there is not enough memory in the packet. 680 680 */ 681 681 static int … … 783 783 * @param[in] packet The packet queue. 784 784 * @param[in] sender The sending module service. 785 * @return sEOK on success.786 * @return sENOENT if there no such device.787 * @return sEINVAL if the service parameter is not known.785 * @return EOK on success. 786 * @return ENOENT if there no such device. 787 * @return EINVAL if the service parameter is not known. 788 788 */ 789 789 static int eth_send_message(device_id_t device_id, packet_t packet, -
uspace/srv/net/nil/nildummy/nildummy.c
ra7811f17 ra9c6b966 142 142 * @param[in] service The device driver service. 143 143 * @param[in] mtu The device maximum transmission unit. 144 * @return sEOK on success.145 * @return sEEXIST if the device with the different service exists.146 * @return sENOMEM if there is not enough memory left.147 * @return sOther error codes as defined for the144 * @return EOK on success. 145 * @return EEXIST if the device with the different service exists. 146 * @return ENOMEM if there is not enough memory left. 147 * @return Other error codes as defined for the 148 148 * netif_bind_service() function. 149 * @return sOther error codes as defined for the149 * @return Other error codes as defined for the 150 150 * netif_get_addr_req() function. 151 151 */ -
uspace/srv/net/tl/icmp/icmp.c
ra7811f17 ra9c6b966 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
ra7811f17 ra9c6b966 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
ra7811f17 ra9c6b966 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.