Changeset aaa3f33a in mainline for uspace/srv
- Timestamp:
- 2010-11-19T21:26:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a7811f17, cc3c2a1c
- Parents:
- 4eca056
- Location:
- uspace/srv/net
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.c
r4eca056 raaa3f33a 88 88 * 89 89 */ 90 int add_configuration(measured_strings_ refconfiguration, const char *name,90 int add_configuration(measured_strings_t *configuration, const char *name, 91 91 const char *value) 92 92 { … … 117 117 } 118 118 119 static int parse_line(measured_strings_ refconfiguration, char *line)119 static int parse_line(measured_strings_t *configuration, char *line) 120 120 { 121 121 int rc; … … 179 179 180 180 static int read_configuration_file(const char *directory, const char *filename, 181 measured_strings_ refconfiguration)181 measured_strings_t *configuration) 182 182 { 183 183 printf("%s: Reading configuration file %s/%s\n", NAME, directory, filename); … … 356 356 * 357 357 */ 358 static int net_get_conf(measured_strings_ refnetif_conf,358 static int net_get_conf(measured_strings_t *netif_conf, 359 359 measured_string_t *configuration, size_t count, char **data) 360 360 { -
uspace/srv/net/net/net.h
r4eca056 raaa3f33a 133 133 } net_globals_t; 134 134 135 extern int add_configuration(measured_strings_ ref, const char *, const char *);135 extern int add_configuration(measured_strings_t *, const char *, const char *); 136 136 extern int net_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, int *); 137 137 extern int net_initialize_build(async_client_conn_t); -
uspace/srv/net/tl/tcp/tcp.c
r4eca056 raaa3f33a 139 139 140 140 /** Local sockets. */ 141 socket_cores_ reflocal_sockets;141 socket_cores_t *local_sockets; 142 142 143 143 /** Socket identifier. */ … … 172 172 173 173 static int tcp_process_packet(device_id_t, packet_t, services_t); 174 static int tcp_connect_core(socket_core_t *, socket_cores_ ref,174 static int tcp_connect_core(socket_core_t *, socket_cores_t *, 175 175 struct sockaddr *, socklen_t); 176 176 static int tcp_queue_prepare_packet(socket_core_t *, tcp_socket_data_t *, … … 209 209 static int tcp_process_client_messages(ipc_callid_t, ipc_call_t); 210 210 211 static int tcp_listen_message(socket_cores_ ref, int, int);212 static int tcp_connect_message(socket_cores_ ref, int, struct sockaddr *,211 static int tcp_listen_message(socket_cores_t *, int, int); 212 static int tcp_connect_message(socket_cores_t *, int, struct sockaddr *, 213 213 socklen_t); 214 static int tcp_recvfrom_message(socket_cores_ ref, int, int, size_t *);215 static int tcp_send_message(socket_cores_ ref, int, int, size_t *, int);216 static int tcp_accept_message(socket_cores_ ref, int, int, size_t *, size_t *);217 static int tcp_close_message(socket_cores_ ref, int);214 static int tcp_recvfrom_message(socket_cores_t *, int, int, size_t *); 215 static int tcp_send_message(socket_cores_t *, int, int, size_t *, int); 216 static int tcp_accept_message(socket_cores_t *, int, int, size_t *, size_t *); 217 static int tcp_close_message(socket_cores_t *, int); 218 218 219 219 /** TCP global data. */ … … 1678 1678 } 1679 1679 1680 int tcp_listen_message(socket_cores_ reflocal_sockets, int socket_id,1680 int tcp_listen_message(socket_cores_t *local_sockets, int socket_id, 1681 1681 int backlog) 1682 1682 { … … 1704 1704 } 1705 1705 1706 int tcp_connect_message(socket_cores_ reflocal_sockets, int socket_id,1706 int tcp_connect_message(socket_cores_t *local_sockets, int socket_id, 1707 1707 struct sockaddr *addr, socklen_t addrlen) 1708 1708 { … … 1732 1732 } 1733 1733 1734 int tcp_connect_core(socket_core_t *socket, socket_cores_ reflocal_sockets,1734 int tcp_connect_core(socket_core_t *socket, socket_cores_t *local_sockets, 1735 1735 struct sockaddr *addr, socklen_t addrlen) 1736 1736 { … … 2091 2091 } 2092 2092 2093 int tcp_recvfrom_message(socket_cores_ reflocal_sockets, int socket_id,2093 int tcp_recvfrom_message(socket_cores_t *local_sockets, int socket_id, 2094 2094 int flags, size_t *addrlen) 2095 2095 { … … 2149 2149 } 2150 2150 2151 int tcp_send_message(socket_cores_ reflocal_sockets, int socket_id,2151 int tcp_send_message(socket_cores_t *local_sockets, int socket_id, 2152 2152 int fragments, size_t *data_fragment_size, int flags) 2153 2153 { … … 2225 2225 2226 2226 int 2227 tcp_close_message(socket_cores_ reflocal_sockets, int socket_id)2227 tcp_close_message(socket_cores_t *local_sockets, int socket_id) 2228 2228 { 2229 2229 socket_core_t *socket; … … 2327 2327 } 2328 2328 2329 int tcp_accept_message(socket_cores_ reflocal_sockets, int socket_id,2329 int tcp_accept_message(socket_cores_t *local_sockets, int socket_id, 2330 2330 int new_socket_id, size_t *data_fragment_size, size_t *addrlen) 2331 2331 { -
uspace/srv/net/tl/tcp/tcp.h
r4eca056 raaa3f33a 262 262 uint16_t dest_port; 263 263 /** Parent local sockets. */ 264 socket_cores_ reflocal_sockets;264 socket_cores_t *local_sockets; 265 265 266 266 /** Local sockets safety lock. -
uspace/srv/net/tl/udp/udp.c
r4eca056 raaa3f33a 453 453 * function. 454 454 */ 455 static int udp_sendto_message(socket_cores_ reflocal_sockets, int socket_id,455 static int udp_sendto_message(socket_cores_t *local_sockets, int socket_id, 456 456 const struct sockaddr *addr, socklen_t addrlen, int fragments, 457 457 size_t *data_fragment_size, int flags) … … 609 609 * function. 610 610 */ 611 static int udp_recvfrom_message(socket_cores_ reflocal_sockets, int socket_id,611 static int udp_recvfrom_message(socket_cores_t *local_sockets, int socket_id, 612 612 int flags, size_t *addrlen) 613 613 {
Note:
See TracChangeset
for help on using the changeset viewer.