Changeset 854151c in mainline
- Timestamp:
- 2011-01-07T12:32:23Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b404a98
- Parents:
- 3d5e190
- Location:
- uspace
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/generic/generic.c
r3d5e190 r854151c 100 100 int 101 101 generic_get_addr_req(int phone, int message, device_id_t device_id, 102 measured_string_t **address, char **data)102 measured_string_t **address, uint8_t **data) 103 103 { 104 104 aid_t message_id; … … 112 112 message_id = async_send_1(phone, (sysarg_t) message, 113 113 (sysarg_t) device_id, NULL); 114 string = measured_strings_return(phone, address, data, 1);114 string = measured_strings_return(phone, address, (char **) data, 1); 115 115 async_wait_for(message_id, &result); 116 116 -
uspace/lib/net/include/generic.h
r3d5e190 r854151c 50 50 extern int generic_device_req_remote(int, int, device_id_t, int, services_t); 51 51 extern int generic_get_addr_req(int, int, device_id_t, measured_string_t **, 52 char**);52 uint8_t **); 53 53 extern int generic_packet_size_req_remote(int, int, device_id_t, 54 54 packet_dimension_t *); -
uspace/lib/net/include/netif_local.h
r3d5e190 r854151c 196 196 197 197 extern int netif_get_addr_req_local(int, device_id_t, measured_string_t **, 198 char**);198 uint8_t **); 199 199 extern int netif_probe_req_local(int, device_id_t, int, int); 200 200 extern int netif_send_msg_local(int, device_id_t, packet_t *, services_t); -
uspace/lib/net/include/netif_remote.h
r3d5e190 r854151c 42 42 43 43 extern int netif_get_addr_req_remote(int, device_id_t, measured_string_t **, 44 char**);44 uint8_t **); 45 45 extern int netif_probe_req_remote(int, device_id_t, int, int); 46 46 extern int netif_send_msg_remote(int, device_id_t, packet_t *, services_t); -
uspace/lib/net/netif/netif_local.c
r3d5e190 r854151c 203 203 */ 204 204 int netif_get_addr_req_local(int netif_phone, device_id_t device_id, 205 measured_string_t **address, char**data)205 measured_string_t **address, uint8_t **data) 206 206 { 207 207 int rc; … … 221 221 fibril_rwlock_read_unlock(&netif_globals.lock); 222 222 223 *data = ( **address).value;223 *data = (uint8_t *) (**address).value; 224 224 225 225 return rc; -
uspace/lib/net/netif/netif_remote.c
r3d5e190 r854151c 60 60 */ 61 61 int netif_get_addr_req_remote(int netif_phone, device_id_t device_id, 62 measured_string_t **address, char**data)62 measured_string_t **address, uint8_t **data) 63 63 { 64 64 return generic_get_addr_req(netif_phone, NET_NETIF_GET_ADDR, device_id, -
uspace/srv/hw/netif/dp8390/dp8390.c
r3d5e190 r854151c 263 263 printf("Ethernet address "); 264 264 for (i = 0; i < 6; i++) 265 printf("% x%c", dep->de_address.ea_addr[i], i < 5 ? ':' : '\n');265 printf("%02x%c", dep->de_address.ea_addr[i], i < 5 ? ':' : '\n'); 266 266 267 267 /* -
uspace/srv/net/il/arp/arp.c
r3d5e190 r854151c 215 215 (*proto)->service = service; 216 216 (*proto)->addr = address; 217 (*proto)->addr_data = address->value;217 (*proto)->addr_data = (uint8_t *) address->value; 218 218 219 219 rc = arp_addr_initialize(&(*proto)->addresses); … … 267 267 free(proto->addr_data); 268 268 proto->addr = address; 269 proto->addr_data = address->value;269 proto->addr_data = (uint8_t *) address->value; 270 270 } else { 271 271 rc = arp_proto_create(&proto, protocol, address); -
uspace/srv/net/il/arp/arp.h
r3d5e190 r854151c 96 96 measured_string_t *addr; 97 97 /** Actual device hardware address data. */ 98 char*addr_data;98 uint8_t *addr_data; 99 99 /** Broadcast device hardware address. */ 100 100 measured_string_t *broadcast_addr; 101 101 /** Broadcast device hardware address data. */ 102 char*broadcast_data;102 uint8_t *broadcast_data; 103 103 /** Device identifier. */ 104 104 device_id_t device_id; … … 142 142 measured_string_t *addr; 143 143 /** Actual device protocol address data. */ 144 char*addr_data;144 uint8_t *addr_data; 145 145 /** Address map. */ 146 146 arp_addr_t addresses; … … 154 154 * Hardware address for the translation. NULL denotes an incomplete 155 155 * record with possible waiters. 156 */ 156 */ 157 157 measured_string_t *hw_addr; 158 158 /** Condition variable used for waiting for completion of the record. */ -
uspace/srv/net/nil/eth/eth.c
r3d5e190 r854151c 407 407 408 408 printf("%s: Device registered (id: %d, service: %d: mtu: %zu, " 409 "mac: % x:%x:%x:%x:%x:%x, flags: 0x%x)\n",409 "mac: %02x:%02x:%02x:%02x:%02x:%02x, flags: 0x%x)\n", 410 410 NAME, device->device_id, device->service, device->mtu, 411 411 device->addr_data[0], device->addr_data[1], -
uspace/srv/net/nil/eth/eth.h
r3d5e190 r854151c 91 91 /** Actual device hardware address. */ 92 92 measured_string_t *addr; 93 93 94 /** Actual device hardware address data. */ 94 char*addr_data;95 uint8_t *addr_data; 95 96 }; 96 97 -
uspace/srv/net/nil/nildummy/nildummy.h
r3d5e190 r854151c 78 78 measured_string_t *addr; 79 79 /** Actual device hardware address data. */ 80 char*addr_data;80 uint8_t *addr_data; 81 81 }; 82 82
Note:
See TracChangeset
for help on using the changeset viewer.