Changes in uspace/srv/net/netif/lo/lo.c [fb04cba8:4eca056] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/netif/lo/lo.c
rfb04cba8 r4eca056 70 70 } 71 71 72 int netif_get_addr_message(device_id_t device_id, measured_string_ refaddress)72 int netif_get_addr_message(device_id_t device_id, measured_string_t *address) 73 73 { 74 74 if (!address) … … 81 81 } 82 82 83 int netif_get_device_stats(device_id_t device_id, device_stats_ refstats)83 int netif_get_device_stats(device_id_t device_id, device_stats_t *stats) 84 84 { 85 85 netif_device_t *device; … … 93 93 return rc; 94 94 95 memcpy(stats, (device_stats_ ref) device->specific,95 memcpy(stats, (device_stats_t *) device->specific, 96 96 sizeof(device_stats_t)); 97 97 … … 145 145 } 146 146 147 null_device_stats((device_stats_ ref) (*device)->specific);147 null_device_stats((device_stats_t *) (*device)->specific); 148 148 (*device)->device_id = device_id; 149 149 (*device)->nil_phone = -1; … … 204 204 next = packet; 205 205 do { 206 ((device_stats_ ref) device->specific)->send_packets++;207 ((device_stats_ ref) device->specific)->receive_packets++;206 ((device_stats_t *) device->specific)->send_packets++; 207 ((device_stats_t *) device->specific)->receive_packets++; 208 208 length = packet_get_data_length(next); 209 ((device_stats_ ref) device->specific)->send_bytes += length;210 ((device_stats_ ref) device->specific)->receive_bytes += length;209 ((device_stats_t *) device->specific)->send_bytes += length; 210 ((device_stats_t *) device->specific)->receive_bytes += length; 211 211 next = pq_next(next); 212 212 } while(next);
Note:
See TracChangeset
for help on using the changeset viewer.