Changeset 797b704 in mainline for uspace/lib/net
- Timestamp:
- 2011-01-12T14:40:09Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 014dd57b
- Parents:
- 73ac2e9
- Location:
- uspace/lib/net
- Files:
-
- 1 added
- 4 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/Makefile
r73ac2e9 r797b704 44 44 nil/nil_remote.c \ 45 45 nil/nil_skel.c \ 46 il/il_interface.c \ 46 il/il_remote.c \ 47 il/il_skel.c \ 47 48 il/ip_remote.c \ 48 49 il/ip_client.c \ -
uspace/lib/net/il/il_remote.c
r73ac2e9 r797b704 33 33 /** @file 34 34 * Internetwork layer module interface for the underlying network interface 35 * layer. This interface is always called by the remote modules.35 * layer. 36 36 */ 37 37 38 #include <il_ interface.h>38 #include <il_remote.h> 39 39 #include <generic.h> 40 40 #include <packet_client.h> -
uspace/lib/net/il/ip_remote.c
r73ac2e9 r797b704 36 36 * 37 37 * @see ip_interface.h 38 * @see il_ interface.h38 * @see il_remote.h 39 39 * 40 40 */ … … 121 121 services_t service) 122 122 { 123 return generic_device_req_remote(ip_phone, NET_I L_DEVICE, device_id, 0,123 return generic_device_req_remote(ip_phone, NET_IP_DEVICE, device_id, 0, 124 124 service); 125 125 } … … 188 188 packet_dimension_t *packet_dimension) 189 189 { 190 return generic_packet_size_req_remote(ip_phone, NET_I L_PACKET_SPACE,190 return generic_packet_size_req_remote(ip_phone, NET_IP_PACKET_SPACE, 191 191 device_id, packet_dimension); 192 192 } … … 228 228 services_t sender, services_t error) 229 229 { 230 return generic_send_msg_remote(ip_phone, NET_I L_SEND, device_id,230 return generic_send_msg_remote(ip_phone, NET_IP_SEND, device_id, 231 231 packet_get_id(packet), sender, error); 232 232 } -
uspace/lib/net/include/il_remote.h
r73ac2e9 r797b704 36 36 */ 37 37 38 #ifndef LIBNET_IL_ INTERFACE_H_39 #define LIBNET_IL_ INTERFACE_H_38 #ifndef LIBNET_IL_REMOTE_H_ 39 #define LIBNET_IL_REMOTE_H_ 40 40 41 41 #include <ipc/services.h> -
uspace/lib/net/include/il_skel.h
r73ac2e9 r797b704 27 27 */ 28 28 29 /** @addtogroup libnet 29 /** @addtogroup libnet 30 30 * @{ 31 31 */ 32 32 33 #ifndef LIBNET_IL_ LOCAL_H_34 #define LIBNET_IL_ LOCAL_H_33 #ifndef LIBNET_IL_SKEL_H_ 34 #define LIBNET_IL_SKEL_H_ 35 35 36 /** @file 37 * Internetwork layer module skeleton. 38 * The skeleton has to be part of each internetwork layer module. 39 */ 40 41 #include <async.h> 42 #include <fibril_synch.h> 36 43 #include <ipc/ipc.h> 37 #include < async.h>44 #include <ipc/services.h> 38 45 39 /** Processes the Internet layer module message. 46 #include <adt/measured_strings.h> 47 #include <net/device.h> 48 #include <net/packet.h> 49 50 /** Module initialization. 40 51 * 41 * @param[in] callid The message identifier. 42 * @param[in] call The message parameters. 43 * @param[out] answer The message answer parameters. 44 * @param[out] answer_count The last parameter for the actual answer in 45 * the answer parameter. 46 * @return EOK on success. 47 * @return Other error codes as defined for the arp_message() 48 * function. 52 * This has to be implemented in user code. 53 * 54 * @param[in] net_phone Networking module phone. 55 * 56 * @return EOK on success. 57 * @return Other error codes as defined for each specific module 58 * initialize function. 59 * 60 */ 61 extern int il_initialize(int net_phone); 62 63 /** Process the Internet layer module message. 64 * 65 * This has to be implemented in user code. 66 * 67 * @param[in] callid Message identifier. 68 * @param[in] call Message parameters. 69 * @param[out] answer Answer. 70 * @param[out] count Number of arguments of the answer. 71 * 72 * @return EOK on success. 73 * @return Other error codes as defined for the arp_message() 74 * function. 75 * 49 76 */ 50 77 extern int il_module_message(ipc_callid_t callid, ipc_call_t *call, 51 78 ipc_call_t *answer, size_t *answer_count); 52 79 53 /** Starts the Internet layer module. 54 * 55 * Initializes the client connection servicing function, initializes the module, 56 * registers the module service and starts the async manager, processing IPC 57 * messages in an infinite loop. 58 * 59 * @param[in] client_connection The client connection processing function. The 60 * module skeleton propagates its own one. 61 * @return EOK on successful module termination. 62 * @return Other error codes as defined for the arp_initialize() 63 * function. 64 * @return Other error codes as defined for the REGISTER_ME() macro 65 * function. 66 */ 67 extern int il_module_start(async_client_conn_t client_connection); 80 extern int il_module_start(int); 68 81 69 82 #endif -
uspace/lib/net/include/nil_skel.h
r73ac2e9 r797b704 50 50 /** Module initialization. 51 51 * 52 * Is called by the module_start() function.52 * This has to be implemented in user code. 53 53 * 54 54 * @param[in] net_phone Networking module phone. … … 59 59 * 60 60 */ 61 extern int nil_initialize(int );61 extern int nil_initialize(int net_phone); 62 62 63 63 /** Notify the network interface layer about the device state change. 64 * 65 * This has to be implemented in user code. 64 66 * 65 67 * @param[in] nil_phone Network interface layer phone. … … 79 81 * upper layers. 80 82 * 83 * This has to be implemented in user code. 84 * 81 85 * @param[in] nil_phone Network interface layer phone. 82 86 * @param[in] device_id Source device identifier. … … 92 96 93 97 /** Message processing function. 98 * 99 * This has to be implemented in user code. 94 100 * 95 101 * @param[in] name Module name. -
uspace/lib/net/nil/nil_skel.c
r73ac2e9 r797b704 1 1 /* 2 * Copyright (c) 20 09 Lukas Mejdrech2 * Copyright (c) 2011 Martin Decky 3 3 * All rights reserved. 4 4 * … … 32 32 33 33 /** @file 34 * Network network interface layer moduleimplementation.34 * Network interface layer module skeleton implementation. 35 35 * @see nil_skel.h 36 36 */
Note:
See TracChangeset
for help on using the changeset viewer.