Changeset f772bc55 in mainline for uspace/srv
- Timestamp:
- 2010-11-18T22:56:01Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88a1bb9
- Parents:
- 4e5c7ba
- Location:
- uspace/srv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390_module.c
r4e5c7ba rf772bc55 157 157 } 158 158 159 int netif_get_device_stats(device_id_t device_id, device_stats_ref stats){ 159 int netif_get_device_stats(device_id_t device_id, device_stats_t *stats) 160 { 160 161 netif_device_t * device; 161 162 eth_stat_t * de_stat; -
uspace/srv/net/netif/lo/lo.c
r4e5c7ba rf772bc55 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); -
uspace/srv/net/tl/tcp/tcp.c
r4e5c7ba rf772bc55 126 126 */ 127 127 typedef struct tcp_timeout tcp_timeout_t; 128 129 /** Type definition of the TCP timeout pointer.130 * @see tcp_timeout131 */132 typedef tcp_timeout_t *tcp_timeout_ref;133 128 134 129 /** TCP reply timeout data. … … 809 804 size_t total_length) 810 805 { 811 packet_dimension_ refpacket_dimension;806 packet_dimension_t *packet_dimension; 812 807 int rc; 813 808 … … 1306 1301 tcp_socket_data_t *socket_data; 1307 1302 socket_core_ref socket; 1308 packet_dimension_ refpacket_dimension;1303 packet_dimension_t *packet_dimension; 1309 1304 1310 1305 /* … … 1540 1535 int tcp_timeout(void *data) 1541 1536 { 1542 tcp_timeout_ reftimeout = data;1537 tcp_timeout_t *timeout = data; 1543 1538 int keep_write_lock = false; 1544 1539 socket_core_ref socket; … … 1617 1612 int tcp_release_after_timeout(void *data) 1618 1613 { 1619 tcp_timeout_ reftimeout = data;1614 tcp_timeout_t *timeout = data; 1620 1615 socket_core_ref socket; 1621 1616 tcp_socket_data_t *socket_data; … … 2054 2049 int globals_read_only) 2055 2050 { 2056 tcp_timeout_ refoperation_timeout;2051 tcp_timeout_t *operation_timeout; 2057 2052 fid_t fibril; 2058 2053 … … 2159 2154 socket_core_ref socket; 2160 2155 tcp_socket_data_t *socket_data; 2161 packet_dimension_ refpacket_dimension;2156 packet_dimension_t *packet_dimension; 2162 2157 packet_t packet; 2163 2158 size_t total_length; … … 2301 2296 tcp_socket_data_t *socket_data, int synchronize, int finalize) 2302 2297 { 2303 packet_dimension_ refpacket_dimension;2298 packet_dimension_t *packet_dimension; 2304 2299 tcp_header_t *header; 2305 2300 int rc; … … 2338 2333 socket_core_ref socket; 2339 2334 tcp_socket_data_t *socket_data; 2340 packet_dimension_ refpacket_dimension;2335 packet_dimension_t *packet_dimension; 2341 2336 int rc; 2342 2337 -
uspace/srv/net/tl/udp/udp.c
r4e5c7ba rf772bc55 235 235 struct sockaddr *src; 236 236 struct sockaddr *dest; 237 packet_dimension_ refpacket_dimension;237 packet_dimension_t *packet_dimension; 238 238 int rc; 239 239 … … 469 469 size_t headerlen; 470 470 device_id_t device_id; 471 packet_dimension_ refpacket_dimension;471 packet_dimension_t *packet_dimension; 472 472 int rc; 473 473 … … 714 714 ipc_call_t answer; 715 715 int answer_count; 716 packet_dimension_ refpacket_dimension;716 packet_dimension_t *packet_dimension; 717 717 718 718 /*
Note:
See TracChangeset
for help on using the changeset viewer.