Changeset b4edc96 in mainline for uspace/lib/inet/src/iplink.c
- Timestamp:
- 2021-08-08T09:20:20Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e6bca8
- Parents:
- d5ed54b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/inet/src/iplink.c
rd5ed54b rb4edc96 38 38 #include <assert.h> 39 39 #include <errno.h> 40 #include <inet/addr.h> 41 #include <inet/eth_addr.h> 40 42 #include <inet/iplink.h> 41 #include <inet/addr.h>42 43 #include <ipc/iplink.h> 43 44 #include <ipc/services.h> … … 115 116 aid_t req = async_send_0(exch, IPLINK_SEND6, &answer); 116 117 117 errno_t rc = async_data_write_start(exch, &sdu->dest, sizeof( addr48_t));118 errno_t rc = async_data_write_start(exch, &sdu->dest, sizeof(eth_addr_t)); 118 119 if (rc != EOK) { 119 120 async_exchange_end(exch); … … 153 154 } 154 155 155 errno_t iplink_get_mac48(iplink_t *iplink, addr48_t *mac)156 errno_t iplink_get_mac48(iplink_t *iplink, eth_addr_t *mac) 156 157 { 157 158 async_exch_t *exch = async_exchange_begin(iplink->sess); … … 160 161 aid_t req = async_send_0(exch, IPLINK_GET_MAC48, &answer); 161 162 162 errno_t rc = async_data_read_start(exch, mac, sizeof( addr48_t));163 errno_t rc = async_data_read_start(exch, mac, sizeof(eth_addr_t)); 163 164 164 165 loc_exchange_end(exch); … … 175 176 } 176 177 177 errno_t iplink_set_mac48(iplink_t *iplink, addr48_t *mac)178 errno_t iplink_set_mac48(iplink_t *iplink, eth_addr_t *mac) 178 179 { 179 180 async_exch_t *exch = async_exchange_begin(iplink->sess); … … 182 183 aid_t req = async_send_0(exch, IPLINK_GET_MAC48, &answer); 183 184 184 errno_t rc = async_data_read_start(exch, mac, sizeof( addr48_t));185 errno_t rc = async_data_read_start(exch, mac, sizeof(eth_addr_t)); 185 186 186 187 loc_exchange_end(exch); … … 264 265 static void iplink_ev_change_addr(iplink_t *iplink, ipc_call_t *icall) 265 266 { 266 addr48_t *addr;267 eth_addr_t *addr; 267 268 size_t size; 268 269 269 270 errno_t rc = async_data_write_accept((void **) &addr, false, 270 sizeof( addr48_t), sizeof(addr48_t), 0, &size);271 sizeof(eth_addr_t), sizeof(eth_addr_t), 0, &size); 271 272 if (rc != EOK) { 272 273 async_answer_0(icall, rc);
Note:
See TracChangeset
for help on using the changeset viewer.