Changeset 87b4baac in mainline for uspace/srv/net/nil/eth
- Timestamp:
- 2010-12-17T20:16:46Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 424558a
- Parents:
- 463e734 (diff), bbc74af7 (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/net/nil/eth
- Files:
-
- 2 edited
-
eth.c (modified) (5 diffs)
-
eth_module.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth.c
r463e734 r87b4baac 201 201 202 202 eth_globals.broadcast_addr = 203 measured_string_create_bulk("\xFF\xFF\xFF\xFF\xFF\xFF", 204 CONVERT_SIZE(uint8_t, char, ETH_ADDR)); 203 measured_string_create_bulk("\xFF\xFF\xFF\xFF\xFF\xFF", ETH_ADDR); 205 204 if (!eth_globals.broadcast_addr) { 206 205 rc = ENOMEM; … … 238 237 239 238 while (true) { 240 switch (IPC_GET_ METHOD(*icall)) {239 switch (IPC_GET_IMETHOD(*icall)) { 241 240 case NET_NIL_DEVICE_STATE: 242 241 nil_device_state_msg_local(0, IPC_GET_DEVICE(icall), … … 251 250 IPC_GET_DEVICE(icall), packet, 0); 252 251 } 253 ipc_answer_0(iid, ( ipcarg_t) rc);252 ipc_answer_0(iid, (sysarg_t) rc); 254 253 break; 255 254 default: 256 ipc_answer_0(iid, ( ipcarg_t) ENOTSUP);255 ipc_answer_0(iid, (sysarg_t) ENOTSUP); 257 256 } 258 257 … … 849 848 850 849 *answer_count = 0; 851 switch (IPC_GET_ METHOD(*call)) {850 switch (IPC_GET_IMETHOD(*call)) { 852 851 case IPC_M_PHONE_HUNGUP: 853 852 return EOK; … … 926 925 * result. 927 926 */ 928 if ((IPC_GET_ METHOD(call) == IPC_M_PHONE_HUNGUP) ||927 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || 929 928 (res == EHANGUP)) 930 929 return; -
uspace/srv/net/nil/eth/eth_module.c
r463e734 r87b4baac 52 52 int nil_module_start_standalone(async_client_conn_t client_connection) 53 53 { 54 ipcarg_t phonehash;54 sysarg_t phonehash; 55 55 int rc; 56 56 … … 66 66 goto out; 67 67 68 rc = REGISTER_ME(SERVICE_ETHERNET, &phonehash);68 rc = ipc_connect_to_me(PHONE_NS, SERVICE_ETHERNET, 0, 0, &phonehash); 69 69 if (rc != EOK) 70 70 goto out;
Note:
See TracChangeset
for help on using the changeset viewer.
