Changeset 00aece0 in mainline for uspace/lib/net/il/il_remote.c
- Timestamp:
- 2012-02-18T16:47:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4449c6c
- Parents:
- bd5f3b7 (diff), f943dd3 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/il_remote.c
rbd5f3b7 r00aece0 55 55 * 56 56 */ 57 int il_device_state_msg(async_sess_t *sess, device_id_t device_id,58 device_state_t state, services_t target)57 int il_device_state_msg(async_sess_t *sess, nic_device_id_t device_id, 58 nic_device_state_t state, services_t target) 59 59 { 60 60 return generic_device_state_msg_remote(sess, NET_IL_DEVICE_STATE, … … 73 73 * 74 74 */ 75 int il_received_msg(async_sess_t *sess, device_id_t device_id, packet_t *packet,76 services_t target)75 int il_received_msg(async_sess_t *sess, nic_device_id_t device_id, 76 packet_t *packet, services_t target) 77 77 { 78 78 return generic_received_msg_remote(sess, NET_IL_RECEIVED, device_id, … … 91 91 * 92 92 */ 93 int il_mtu_changed_msg(async_sess_t *sess, device_id_t device_id, size_t mtu,93 int il_mtu_changed_msg(async_sess_t *sess, nic_device_id_t device_id, size_t mtu, 94 94 services_t target) 95 95 { … … 98 98 } 99 99 100 /** Notify IL layer modules about address change (implemented by ARP) 101 * 102 */ 103 int il_addr_changed_msg(async_sess_t *sess, nic_device_id_t device_id, 104 size_t addr_len, const uint8_t *address) 105 { 106 async_exch_t *exch = async_exchange_begin(sess); 107 108 aid_t message_id = async_send_1(exch, NET_IL_ADDR_CHANGED, 109 (sysarg_t) device_id, NULL); 110 int rc = async_data_write_start(exch, address, addr_len); 111 112 async_exchange_end(exch); 113 114 sysarg_t res; 115 async_wait_for(message_id, &res); 116 if (rc != EOK) 117 return rc; 118 119 return (int) res; 120 } 121 100 122 /** @} 101 123 */
Note:
See TracChangeset
for help on using the changeset viewer.