Changes in uspace/lib/net/il/il_remote.c [609243f4:797b704] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/il_remote.c
r609243f4 r797b704 39 39 #include <generic.h> 40 40 #include <packet_client.h> 41 41 42 #include <ipc/services.h> 42 43 #include <ipc/il.h> 44 43 45 #include <net/device.h> 44 46 #include <net/packet.h> … … 46 48 /** Notify the internetwork layer modules about the device state change. 47 49 * 48 * @param[in] sess Internetwork layer module session. 49 * @param[in] device_id Device identifier. 50 * @param[in] state New device state. 51 * @param[in] target Target internetwork module service to be 50 * @param[in] il_phone The internetwork layer module phone used for 51 * (semi)remote calls. 52 * @param[in] device_id The device identifier. 53 * @param[in] state The new device state. 54 * @param[in] target The target internetwork module service to be 52 55 * delivered to. 53 56 * … … 55 58 * 56 59 */ 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)60 int il_device_state_msg(int il_phone, device_id_t device_id, 61 device_state_t state, services_t target) 59 62 { 60 return generic_device_state_msg_remote( sess, NET_IL_DEVICE_STATE,63 return generic_device_state_msg_remote(il_phone, NET_IL_DEVICE_STATE, 61 64 device_id, state, target); 62 65 } … … 64 67 /** Notify the internetwork layer modules about the received packet/s. 65 68 * 66 * @param[in] sess Internetwork layer module session. 67 * @param[in] device_id Device identifier. 68 * @param[in] packet Received packet or the received packet queue. 69 * @param[in] target Target internetwork module service to be 69 * @param[in] il_phone The internetwork layer module phone used for 70 * (semi)remote calls. 71 * @param[in] device_id The device identifier. 72 * @param[in] packet The received packet or the received packet queue. 73 * @param[in] target The target internetwork module service to be 70 74 * delivered to. 71 75 * … … 73 77 * 74 78 */ 75 int il_received_msg( async_sess_t *sess, nic_device_id_t device_id,76 packet_t *packet,services_t target)79 int il_received_msg(int il_phone, device_id_t device_id, packet_t *packet, 80 services_t target) 77 81 { 78 return generic_received_msg_remote( sess, NET_IL_RECEIVED, device_id,82 return generic_received_msg_remote(il_phone, NET_IL_RECEIVED, device_id, 79 83 packet_get_id(packet), target, 0); 80 84 } … … 82 86 /** Notify the internetwork layer modules about the mtu change. 83 87 * 84 * @param[in] sess Internetwork layer module session. 85 * @param[in] device_id Device identifier. 86 * @param[in] mtu New MTU value. 87 * @param[in] target Target internetwork module service to be 88 * @param[in] il_phone The internetwork layer module phone used for 89 * (semi)remote calls. 90 * @param[in] device_id The device identifier. 91 * @param[in] mtu The new mtu value. 92 * @param[in] target The target internetwork module service to be 88 93 * delivered to. 89 94 * … … 91 96 * 92 97 */ 93 int il_mtu_changed_msg( async_sess_t *sess, nic_device_id_t device_id, size_t mtu,98 int il_mtu_changed_msg(int il_phone, device_id_t device_id, size_t mtu, 94 99 services_t target) 95 100 { 96 return generic_device_state_msg_remote(sess, NET_IL_MTU_CHANGED, 97 device_id, mtu, target); 98 } 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; 101 return generic_device_state_msg_remote(il_phone, NET_IL_MTU_CHANGED, 102 device_id, (int) mtu, target); 120 103 } 121 104
Note:
See TracChangeset
for help on using the changeset viewer.