Changes in uspace/srv/net/il/arp/arp_module.c [a64c64d:14f1db0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/arp/arp_module.c
ra64c64d r14f1db0 44 44 #include <ipc/services.h> 45 45 46 #include "../../err.h" 47 #include "../../modules.h" 48 49 #include "../../include/net_interface.h" 50 51 #include "../../structures/packet/packet.h" 46 #include <net_err.h> 47 #include <net_modules.h> 48 #include <net_interface.h> 49 #include <packet/packet.h> 50 #include <il_local.h> 52 51 53 52 #include "arp.h" 54 53 #include "arp_module.h" 55 56 /** ARP module name.57 */58 #define NAME "ARP protocol"59 54 60 55 /** ARP module global data. … … 70 65 * @returns Other error codes as defined for the arp_message() function. 71 66 */ 72 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 73 74 /** Prints the module name. 75 * @see NAME 76 */ 77 void module_print_name(void); 67 int il_module_message_standalone(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 68 return arp_message_standalone(callid, call, answer, answer_count); 69 } 78 70 79 71 /** Starts the ARP module. … … 84 76 * @returns Other error codes as defined for the REGISTER_ME() macro function. 85 77 */ 86 int module_start(async_client_conn_t client_connection); 87 88 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 89 return arp_message(callid, call, answer, answer_count); 90 } 91 92 void module_print_name(void){ 93 printf("%s", NAME); 94 } 95 96 int module_start(async_client_conn_t client_connection){ 78 int il_module_start_standalone(async_client_conn_t client_connection){ 97 79 ERROR_DECLARE; 98 99 ipcarg_t phonehash; 100 80 101 81 async_set_client_connection(client_connection); 102 82 arp_globals.net_phone = net_connect_module(SERVICE_NETWORKING); 103 83 ERROR_PROPAGATE(pm_init()); 104 if(ERROR_OCCURRED(arp_initialize(client_connection)) 105 || ERROR_OCCURRED(REGISTER_ME(SERVICE_ARP, &phonehash))){ 84 85 ipcarg_t phonehash; 86 if (ERROR_OCCURRED(arp_initialize(client_connection)) 87 || ERROR_OCCURRED(REGISTER_ME(SERVICE_ARP, &phonehash))) { 106 88 pm_destroy(); 107 89 return ERROR_CODE; 108 90 } 109 91 110 92 async_manager(); 111 93 112 94 pm_destroy(); 113 95 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.