Changeset a7811f17 in mainline for uspace/srv/net/nil/nildummy
- Timestamp:
- 2010-11-19T21:28:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a9c6b966
- Parents:
- 45f04f8 (diff), aaa3f33a (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/nildummy
- Files:
-
- 2 edited
-
nildummy.c (modified) (6 diffs)
-
nildummy.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/nildummy/nildummy.c
r45f04f8 ra7811f17 153 153 size_t mtu) 154 154 { 155 nildummy_device_ refdevice;155 nildummy_device_t *device; 156 156 int index; 157 157 int rc; … … 192 192 193 193 /* Create a new device */ 194 device = (nildummy_device_ ref) malloc(sizeof(nildummy_device_t));194 device = (nildummy_device_t *) malloc(sizeof(nildummy_device_t)); 195 195 if (!device) 196 196 return ENOMEM; … … 248 248 */ 249 249 static int nildummy_addr_message(device_id_t device_id, 250 measured_string_ ref*address)251 { 252 nildummy_device_ refdevice;250 measured_string_t **address) 251 { 252 nildummy_device_t *device; 253 253 254 254 if (!address) … … 282 282 size_t *prefix, size_t *content, size_t *suffix) 283 283 { 284 nildummy_device_ refdevice;284 nildummy_device_t *device; 285 285 286 286 if (!addr_len || !prefix || !content || !suffix) … … 357 357 services_t sender) 358 358 { 359 nildummy_device_ refdevice;359 nildummy_device_t *device; 360 360 361 361 fibril_rwlock_read_lock(&nildummy_globals.devices_lock); … … 377 377 ipc_call_t *call, ipc_call_t *answer, int *answer_count) 378 378 { 379 measured_string_ refaddress;379 measured_string_t *address; 380 380 packet_t packet; 381 381 size_t addrlen; -
uspace/srv/net/nil/nildummy/nildummy.h
r45f04f8 ra7811f17 54 54 typedef struct nildummy_device nildummy_device_t; 55 55 56 /** Type definition of the dummy nil device specific data pointer.57 * @see nildummy_device58 */59 typedef nildummy_device_t *nildummy_device_ref;60 61 56 /** Type definition of the dummy nil protocol specific data. 62 57 * @see nildummy_proto 63 58 */ 64 59 typedef struct nildummy_proto nildummy_proto_t; 65 66 /** Type definition of the dummy nil protocol specific data pointer.67 * @see nildummy_proto68 */69 typedef nildummy_proto_t *nildummy_proto_ref;70 60 71 61 /** Dummy nil device map. … … 86 76 size_t mtu; 87 77 /** Actual device hardware address. */ 88 measured_string_ refaddr;78 measured_string_t *addr; 89 79 /** Actual device hardware address data. */ 90 80 char *addr_data;
Note:
See TracChangeset
for help on using the changeset viewer.
