Changeset fdbc3ff in mainline for uspace/lib/net/include
- Timestamp:
- 2010-11-19T23:50:06Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46d4d9f
- Parents:
- b4c9c61 (diff), a9c6b966 (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/lib/net/include
- Files:
-
- 16 edited
-
adt/module_map.h (modified) (2 diffs)
-
arp_interface.h (modified) (1 diff)
-
generic.h (modified) (2 diffs)
-
icmp_header.h (modified) (2 diffs)
-
il_local.h (modified) (2 diffs)
-
ip_header.h (modified) (2 diffs)
-
ip_interface.h (modified) (1 diff)
-
ip_remote.h (modified) (1 diff)
-
net_interface.h (modified) (1 diff)
-
netif_local.h (modified) (3 diffs)
-
netif_remote.h (modified) (2 diffs)
-
packet_client.h (modified) (3 diffs)
-
packet_remote.h (modified) (1 diff)
-
socket_core.h (modified) (3 diffs)
-
tl_common.h (modified) (1 diff)
-
tl_local.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/adt/module_map.h
rb4c9c61 rfdbc3ff 48 48 typedef struct module_struct module_t; 49 49 50 /** Type definition of the module structure pointer.51 * @see module_struct52 */53 typedef module_t *module_ref;54 55 50 /** Module map. 56 51 * Sorted by module names. … … 77 72 }; 78 73 79 extern int add_module(module_ ref *, modules_ref, const char *, const char *,74 extern int add_module(module_t **, modules_t *, const char *, const char *, 80 75 services_t, task_id_t, connect_module_t *); 81 extern module_ ref get_running_module(modules_ref, char *);76 extern module_t *get_running_module(modules_t *, char *); 82 77 extern task_id_t spawn(const char *); 83 78 -
uspace/lib/net/include/arp_interface.h
rb4c9c61 rfdbc3ff 48 48 49 49 extern int arp_device_req(int, device_id_t, services_t, services_t, 50 measured_string_ ref);51 extern int arp_translate_req(int, device_id_t, services_t, measured_string_ ref,52 measured_string_ ref*, char **);50 measured_string_t *); 51 extern int arp_translate_req(int, device_id_t, services_t, measured_string_t *, 52 measured_string_t **, char **); 53 53 extern int arp_clear_device_req(int, device_id_t); 54 54 extern int arp_clear_address_req(int, device_id_t, services_t, 55 measured_string_ ref);55 measured_string_t *); 56 56 extern int arp_clean_cache_req(int); 57 57 extern int arp_connect_module(services_t); -
uspace/lib/net/include/generic.h
rb4c9c61 rfdbc3ff 49 49 services_t); 50 50 extern int generic_device_req_remote(int, int, device_id_t, int, services_t); 51 extern int generic_get_addr_req(int, int, device_id_t, measured_string_ ref*,51 extern int generic_get_addr_req(int, int, device_id_t, measured_string_t **, 52 52 char **); 53 53 extern int generic_packet_size_req_remote(int, int, device_id_t, 54 packet_dimension_ ref);54 packet_dimension_t *); 55 55 extern int generic_received_msg_remote(int, int, device_id_t, packet_id_t, 56 56 services_t, services_t); … … 58 58 services_t, services_t); 59 59 extern int generic_translate_req(int, int, device_id_t, services_t, 60 measured_string_ ref, size_t, measured_string_ref*, char **);60 measured_string_t *, size_t, measured_string_t **, char **); 61 61 62 62 #endif -
uspace/lib/net/include/icmp_header.h
rb4c9c61 rfdbc3ff 52 52 typedef struct icmp_echo icmp_echo_t; 53 53 54 /** Type definition of the echo specific data pointer.55 * @see icmp_echo56 */57 typedef icmp_echo_t *icmp_echo_ref;58 59 54 /** Echo specific data. */ 60 55 struct icmp_echo { … … 69 64 */ 70 65 typedef struct icmp_header icmp_header_t; 71 72 /** Type definition of the internet control message header pointer.73 * @see icmp_header74 */75 typedef icmp_header_t *icmp_header_ref;76 66 77 67 /** Internet control message header. */ -
uspace/lib/net/include/il_local.h
rb4c9c61 rfdbc3ff 44 44 * @param[out] answer_count The last parameter for the actual answer in 45 45 * the answer parameter. 46 * @return sEOK on success.47 * @return sOther error codes as defined for the arp_message()46 * @return EOK on success. 47 * @return Other error codes as defined for the arp_message() 48 48 * function. 49 49 */ … … 59 59 * @param[in] client_connection The client connection processing function. The 60 60 * module skeleton propagates its own one. 61 * @return sEOK on successful module termination.62 * @return sOther error codes as defined for the arp_initialize()61 * @return EOK on successful module termination. 62 * @return Other error codes as defined for the arp_initialize() 63 63 * function. 64 * @return sOther error codes as defined for the REGISTER_ME() macro64 * @return Other error codes as defined for the REGISTER_ME() macro 65 65 * function. 66 66 */ -
uspace/lib/net/include/ip_header.h
rb4c9c61 rfdbc3ff 127 127 typedef struct ip_header ip_header_t; 128 128 129 /** Type definition of the internet header pointer.130 * @see ip_header131 */132 typedef ip_header_t *ip_header_ref;133 134 129 /** Type definition of the internet option header. 135 130 * @see ip_header … … 137 132 typedef struct ip_option ip_option_t; 138 133 139 /** Type definition of the internet option header pointer.140 * @see ip_header141 */142 typedef ip_option_t *ip_option_ref;143 144 134 /** Type definition of the internet version 4 pseudo header. 145 135 * @see ipv4_pseudo_header 146 136 */ 147 137 typedef struct ipv4_pseudo_header ipv4_pseudo_header_t; 148 149 /** Type definition of the internet version 4 pseudo header pointer.150 * @see ipv4_pseudo_header151 */152 typedef ipv4_pseudo_header_t *ipv4_pseudo_header_ref;153 138 154 139 /** Internet header. -
uspace/lib/net/include/ip_interface.h
rb4c9c61 rfdbc3ff 68 68 * @param[in] error The packet error reporting service. Prefixes the 69 69 * received packet. 70 * @return sEOK on success.70 * @return EOK on success. 71 71 */ 72 72 typedef int (*tl_received_msg_t)(device_id_t device_id, packet_t packet, -
uspace/lib/net/include/ip_remote.h
rb4c9c61 rfdbc3ff 44 44 45 45 extern int ip_set_gateway_req_remote(int, device_id_t, in_addr_t); 46 extern int ip_packet_size_req_remote(int, device_id_t, packet_dimension_ ref);46 extern int ip_packet_size_req_remote(int, device_id_t, packet_dimension_t *); 47 47 extern int ip_received_error_msg_remote(int, device_id_t, packet_t, services_t, 48 48 services_t); -
uspace/lib/net/include/net_interface.h
rb4c9c61 rfdbc3ff 44 44 /*@{*/ 45 45 46 extern int net_get_device_conf_req(int, device_id_t, measured_string_ ref*,46 extern int net_get_device_conf_req(int, device_id_t, measured_string_t **, 47 47 size_t, char **); 48 extern int net_get_conf_req(int, measured_string_ ref*, size_t, char **);49 extern void net_free_settings(measured_string_ ref, char *);48 extern int net_get_conf_req(int, measured_string_t **, size_t, char **); 49 extern void net_free_settings(measured_string_t *, char *); 50 50 extern int net_connect_module(void); 51 51 -
uspace/lib/net/include/netif_local.h
rb4c9c61 rfdbc3ff 158 158 */ 159 159 extern int netif_get_addr_message(device_id_t device_id, 160 measured_string_ refaddress);160 measured_string_t *address); 161 161 162 162 /** Process the netif driver specific message. … … 193 193 */ 194 194 extern int netif_get_device_stats(device_id_t device_id, 195 device_stats_ refstats);196 197 extern int netif_get_addr_req_local(int, device_id_t, measured_string_ ref*,195 device_stats_t *stats); 196 197 extern int netif_get_addr_req_local(int, device_id_t, measured_string_t **, 198 198 char **); 199 199 extern int netif_probe_req_local(int, device_id_t, int, int); … … 201 201 extern int netif_start_req_local(int, device_id_t); 202 202 extern int netif_stop_req_local(int, device_id_t); 203 extern int netif_stats_req_local(int, device_id_t, device_stats_ ref);203 extern int netif_stats_req_local(int, device_id_t, device_stats_t *); 204 204 extern int netif_bind_service_local(services_t, device_id_t, services_t, 205 205 async_client_conn_t); 206 206 207 207 extern int find_device(device_id_t, netif_device_t **); 208 extern void null_device_stats(device_stats_ ref);208 extern void null_device_stats(device_stats_t *); 209 209 extern void netif_pq_release(packet_id_t); 210 210 extern packet_t netif_packet_get_1(size_t); -
uspace/lib/net/include/netif_remote.h
rb4c9c61 rfdbc3ff 41 41 #include <net/packet.h> 42 42 43 extern int netif_get_addr_req_remote(int, device_id_t, measured_string_ ref*,43 extern int netif_get_addr_req_remote(int, device_id_t, measured_string_t **, 44 44 char **); 45 45 extern int netif_probe_req_remote(int, device_id_t, int, int); … … 47 47 extern int netif_start_req_remote(int, device_id_t); 48 48 extern int netif_stop_req_remote(int, device_id_t); 49 extern int netif_stats_req_remote(int, device_id_t, device_stats_ ref);49 extern int netif_stats_req_remote(int, device_id_t, device_stats_t *); 50 50 extern int netif_bind_service_remote(services_t, device_id_t, services_t, 51 51 async_client_conn_t); -
uspace/lib/net/include/packet_client.h
rb4c9c61 rfdbc3ff 61 61 * @param[in] type The type to be allocated at the beginning of the packet 62 62 * content. 63 * @return sThe typed pointer to the allocated memory.64 * @return sNULL if the packet is not valid.65 * @return sNULL if there is not enough memory left.63 * @return The typed pointer to the allocated memory. 64 * @return NULL if the packet is not valid. 65 * @return NULL if there is not enough memory left. 66 66 */ 67 67 #define PACKET_PREFIX(packet, type) \ … … 76 76 * @param[in] type The type to be allocated at the end of the packet 77 77 * content. 78 * @return sThe typed pointer to the allocated memory.79 * @return sNULL if the packet is not valid.80 * @return sNULL if there is not enough memory left.78 * @return The typed pointer to the allocated memory. 79 * @return NULL if the packet is not valid. 80 * @return NULL if there is not enough memory left. 81 81 */ 82 82 #define PACKET_SUFFIX(packet, type) \ … … 92 92 * @param[in] suffix The type of the suffix to be removed from the end of 93 93 * the packet content. 94 * @return sEOK on success.95 * @return sEINVAL if the packet is not valid.96 * @return sENOMEM if there is not enough memory left.94 * @return EOK on success. 95 * @return EINVAL if the packet is not valid. 96 * @return ENOMEM if there is not enough memory left. 97 97 */ 98 98 #define PACKET_TRIM(packet, prefix, suffix) \ -
uspace/lib/net/include/packet_remote.h
rb4c9c61 rfdbc3ff 37 37 #include <sys/types.h> 38 38 39 extern int packet_translate_remote(int, packet_ ref, packet_id_t);39 extern int packet_translate_remote(int, packet_t *, packet_id_t); 40 40 extern packet_t packet_get_4_remote(int, size_t, size_t, size_t, size_t); 41 41 extern packet_t packet_get_1_remote(int, size_t); -
uspace/lib/net/include/socket_core.h
rb4c9c61 rfdbc3ff 66 66 typedef struct socket_core socket_core_t; 67 67 68 /** Type definition of the socket core pointer.69 * @see socket_core70 */71 typedef socket_core_t *socket_core_ref;72 73 68 /** Type definition of the socket port. 74 69 * @see socket_port 75 70 */ 76 71 typedef struct socket_port socket_port_t; 77 78 /** Type definition of the socket port pointer.79 * @see socket_port80 */81 typedef socket_port_t *socket_port_ref;82 72 83 73 /** Socket core. */ … … 111 101 * the other use the remote addresses. 112 102 */ 113 GENERIC_CHAR_MAP_DECLARE(socket_port_map, socket_core_ ref);103 GENERIC_CHAR_MAP_DECLARE(socket_port_map, socket_core_t *); 114 104 115 105 /** Ports map. … … 118 108 INT_MAP_DECLARE(socket_ports, socket_port_t); 119 109 120 extern void socket_cores_release(int, socket_cores_ ref, socket_ports_ref,121 void (*)(socket_core_ ref));122 extern int socket_bind(socket_cores_ ref, socket_ports_ref, int, void *, size_t,110 extern void socket_cores_release(int, socket_cores_t *, socket_ports_t *, 111 void (*)(socket_core_t *)); 112 extern int socket_bind(socket_cores_t *, socket_ports_t *, int, void *, size_t, 123 113 int, int, int); 124 extern int socket_bind_free_port(socket_ports_ ref, socket_core_ref, int, int,114 extern int socket_bind_free_port(socket_ports_t *, socket_core_t *, int, int, 125 115 int); 126 extern int socket_create(socket_cores_ ref, int, void *, int *);127 extern int socket_destroy(int, int, socket_cores_ ref, socket_ports_ref,128 void (*)(socket_core_ ref));116 extern int socket_create(socket_cores_t *, int, void *, int *); 117 extern int socket_destroy(int, int, socket_cores_t *, socket_ports_t *, 118 void (*)(socket_core_t *)); 129 119 extern int socket_reply_packets(packet_t, size_t *); 130 extern socket_core_ ref socket_port_find(socket_ports_ref, int, const char *,120 extern socket_core_t *socket_port_find(socket_ports_t *, int, const char *, 131 121 size_t); 132 extern void socket_port_release(socket_ports_ ref, socket_core_ref);133 extern int socket_port_add(socket_ports_ ref, int, socket_core_ref,122 extern void socket_port_release(socket_ports_t *, socket_core_t *); 123 extern int socket_port_add(socket_ports_t *, int, socket_core_t *, 134 124 const char *, size_t); 135 125 -
uspace/lib/net/include/tl_common.h
rb4c9c61 rfdbc3ff 51 51 DEVICE_MAP_DECLARE(packet_dimensions, packet_dimension_t); 52 52 53 extern int tl_get_ip_packet_dimension(int, packet_dimensions_ ref,54 device_id_t, packet_dimension_ ref*);53 extern int tl_get_ip_packet_dimension(int, packet_dimensions_t *, 54 device_id_t, packet_dimension_t **); 55 55 extern int tl_get_address_port(const struct sockaddr *, int, uint16_t *); 56 extern int tl_update_ip_packet_dimension(packet_dimensions_ ref, device_id_t,56 extern int tl_update_ip_packet_dimension(packet_dimensions_t *, device_id_t, 57 57 size_t); 58 58 extern int tl_set_address_port(struct sockaddr *, int, uint16_t); 59 59 extern int tl_prepare_icmp_packet(int, int, packet_t, services_t); 60 extern int tl_socket_read_packet_data(int, packet_ ref, size_t,61 const packet_dimension_ ref, const struct sockaddr *, socklen_t);60 extern int tl_socket_read_packet_data(int, packet_t *, size_t, 61 const packet_dimension_t *, const struct sockaddr *, socklen_t); 62 62 63 63 #endif -
uspace/lib/net/include/tl_local.h
rb4c9c61 rfdbc3ff 45 45 * @param[in] client_connection The client connection processing function. The 46 46 * module skeleton propagates its own one. 47 * @return sEOK on successful module termination.48 * @return sOther error codes as defined for the module initialize47 * @return EOK on successful module termination. 48 * @return Other error codes as defined for the module initialize 49 49 * function. 50 * @return sOther error codes as defined for the REGISTER_ME() macro50 * @return Other error codes as defined for the REGISTER_ME() macro 51 51 * function. 52 52 */ … … 62 62 * @param[out] answer_count The last parameter for the actual answer in the 63 63 * answer parameter. 64 * @return sEOK on success.65 * @return sOther error codes as defined for the module's message64 * @return EOK on success. 65 * @return Other error codes as defined for the module's message 66 66 * standalone function. 67 67 */
Note:
See TracChangeset
for help on using the changeset viewer.
