Changeset 014dd57b in mainline for uspace/lib/net
- Timestamp:
- 2011-01-12T15:59:22Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab6f2507
- Parents:
- 797b704
- Location:
- uspace/lib/net
- Files:
-
- 1 added
- 5 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/Makefile
r797b704 r014dd57b 52 52 tl/icmp_client.c \ 53 53 tl/socket_core.c \ 54 tl/tl_interface.c \ 55 tl/tl_common.c 54 tl/tl_common.c \ 55 tl/tl_remote.c \ 56 tl/tl_skel.c 56 57 57 58 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/net/il/il_skel.c
r797b704 r014dd57b 104 104 async_set_client_connection(il_client_connection); 105 105 int net_phone = net_connect_module(); 106 if (net_phone < 0) 107 return net_phone; 106 108 107 109 int rc = pm_init(); -
uspace/lib/net/include/il_skel.h
r797b704 r014dd57b 61 61 extern int il_initialize(int net_phone); 62 62 63 /** Process the Internetlayer module message.63 /** Process the internetwork layer module message. 64 64 * 65 65 * This has to be implemented in user code. … … 71 71 * 72 72 * @return EOK on success. 73 * @return Other error codes as defined for the arp_message() 74 * function. 73 * @return Other error codes as defined for each specific module. 75 74 * 76 75 */ -
uspace/lib/net/include/tl_remote.h
r797b704 r014dd57b 35 35 */ 36 36 37 #ifndef LIBNET_TL_ INTERFACE_H_38 #define LIBNET_TL_ INTERFACE_H_37 #ifndef LIBNET_TL_REMOTE_H_ 38 #define LIBNET_TL_REMOTE_H_ 39 39 40 40 #include <async.h> … … 52 52 /*@{*/ 53 53 54 extern int tl_received_msg(int, device_id_t, packet_t *, services_t, services_t); 54 extern int tl_received_msg(int, device_id_t, packet_t *, services_t, 55 services_t); 55 56 56 57 /*@}*/ -
uspace/lib/net/include/tl_skel.h
r797b704 r014dd57b 31 31 */ 32 32 33 #ifndef LIBNET_TL_ LOCAL_H_34 #define LIBNET_TL_ LOCAL_H_33 #ifndef LIBNET_TL_SKEL_H_ 34 #define LIBNET_TL_SKEL_H_ 35 35 36 /** @file 37 * Transport layer module skeleton. 38 * The skeleton has to be part of each transport 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 /** Starts the TL module. 46 #include <adt/measured_strings.h> 47 #include <net/device.h> 48 #include <net/packet.h> 49 50 /** Module initialization. 40 51 * 41 * Initializes the client connection serving function, initializes the module, 42 * registers the module service and starts the async manager, processing IPC 43 * messages in an infinite loop. 52 * This has to be implemented in user code. 44 53 * 45 * @param[in] client_connection The client connection processing function. The 46 * module skeleton propagates its own one. 47 * @return EOK on successful module termination. 48 * @return Other error codes as defined for the module initialize 49 * function. 50 * @return Other error codes as defined for the REGISTER_ME() macro 51 * function. 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 * 52 60 */ 53 extern int tl_module_message_standalone(ipc_callid_t, ipc_call_t *, 61 extern int tl_initialize(int net_phone); 62 63 /** Process the transport 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 each specific module. 74 * 75 */ 76 extern int tl_module_message(ipc_callid_t, ipc_call_t *, 54 77 ipc_call_t *, size_t *); 55 78 56 /** Processes the TL module message. 57 * 58 * @param[in] callid The message identifier. 59 * @param[in] call The message parameters. 60 * @param[out] answer The message answer parameters. 61 * @param[out] answer_count The last parameter for the actual answer in the 62 * answer parameter. 63 * @return EOK on success. 64 * @return Other error codes as defined for the module's message 65 * standalone function. 66 */ 67 extern int tl_module_start_standalone(async_client_conn_t); 79 extern int tl_module_start(int); 68 80 69 81 #endif -
uspace/lib/net/nil/nil_skel.c
r797b704 r014dd57b 104 104 async_set_client_connection(nil_client_connection); 105 105 int net_phone = net_connect_module(); 106 if (net_phone < 0) 107 return net_phone; 106 108 107 109 int rc = pm_init(); -
uspace/lib/net/tl/tl_common.c
r797b704 r014dd57b 42 42 #include <ip_remote.h> 43 43 #include <ip_interface.h> 44 #include <tl_ interface.h>44 #include <tl_remote.h> 45 45 46 46 #include <net/socket_codes.h> -
uspace/lib/net/tl/tl_remote.c
r797b704 r014dd57b 31 31 */ 32 32 33 #include <tl_ interface.h>33 #include <tl_remote.h> 34 34 #include <generic.h> 35 35 #include <packet_client.h> … … 57 57 * 58 58 */ 59 int 60 tl_received_msg(int tl_phone, device_id_t device_id, packet_t *packet, 59 int tl_received_msg(int tl_phone, device_id_t device_id, packet_t *packet, 61 60 services_t target, services_t error) 62 61 {
Note:
See TracChangeset
for help on using the changeset viewer.