Subversion Repositories HelenOS

Rev

Rev 4575 | Rev 4704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4575 Rev 4693
Line 57... Line 57...
57
 *  @param receiver The receiving module service. Input parameter.
57
 *  @param receiver The receiving module service. Input parameter.
58
 *  @returns EOK on success.
58
 *  @returns EOK on success.
59
 */
59
 */
60
typedef int ( * tl_received_msg_t )( device_id_t device_id, packet_t packet, services_t receiver );
60
typedef int ( * tl_received_msg_t )( device_id_t device_id, packet_t packet, services_t receiver );
61
 
61
 
-
 
62
/** Creates bidirectional connection with the ip module service and registers the message receiver.
-
 
63
 *  @param service The ip module service. Input parameter.
-
 
64
 *  @param protocol The transport layer protocol. Input parameter.
-
 
65
 *  @param me The requesting module service. Input parameter.
-
 
66
 *  @param receiver The message receiver. Used for remote connection. Input parameter.
-
 
67
 *  @param tl_received_msg The message processing function. Used if bundled together. Input parameter.
-
 
68
 *  @returns The phone of the needed service.
62
/** \todo
69
 *  @returns EOK on success.
-
 
70
 *  @returns Other error codes as defined for the bind_service() function.
63
 */
71
 */
64
int ip_bind_service( services_t service, int protocol, services_t me, async_client_conn_t receiver, tl_received_msg_t tl_received_msg );
72
int ip_bind_service( services_t service, int protocol, services_t me, async_client_conn_t receiver, tl_received_msg_t tl_received_msg );
65
 
73
 
66
/** Registers the new device.
74
/** Registers the new device.
67
 *  Registers itself as the ip packet receiver.
75
 *  Registers itself as the ip packet receiver.
Line 94... Line 102...
94
 *  @returns The IP module phone on success.
102
 *  @returns The IP module phone on success.
95
 *  @returns 0 if called by the bundle module.
103
 *  @returns 0 if called by the bundle module.
96
 */
104
 */
97
int ip_connect_module( services_t service );
105
int ip_connect_module( services_t service );
98
 
106
 
99
/** \todo
107
/** Adds a route to the device routing table.
-
 
108
 *  The target network is routed using this device.
-
 
109
 *  @param ip_phone The internet protocol phone. Input parameter.
-
 
110
 *  @param device_id The device identifier. Input parameter.
-
 
111
 *  @param address The target network address. Input parameter.
-
 
112
 *  @param netmask The target network mask. Input parameter.
-
 
113
 *  @param gateway The target network gateway. Not used if zero. Input parameter.
100
 */
114
 */
101
int ip_add_route_req( int ip_phone, device_id_t device_id, in_addr_t address, in_addr_t netmask, in_addr_t gateway );
115
int ip_add_route_req( int ip_phone, device_id_t device_id, in_addr_t address, in_addr_t netmask, in_addr_t gateway );
102
 
116
 
103
/** \todo
117
/** Sets the default gateway.
-
 
118
 *  This gateway is used if no other route is found.
-
 
119
 *  @param ip_phone The internet protocol phone. Input parameter.
-
 
120
 *  @param device_id The device identifier. Input parameter.
-
 
121
 *  @param gateway The default gateway. Input parameter.
104
 */
122
 */
105
int ip_set_gateway_req( int ip_phone, device_id_t device_id, in_addr_t gateway );
123
int ip_set_gateway_req( int ip_phone, device_id_t device_id, in_addr_t gateway );
106
 
124
 
-
 
125
/** Returns the device packet dimensions for sending.
-
 
126
 *  @param ip_phone The internet protocol phone. Input parameter.
-
 
127
 *  @param device_id The device identifier. Input parameter.
-
 
128
 *  @param addr_len The minimum reserved address length. Output parameter.
-
 
129
 *  @param prefix The minimum reserved prefix size. Output parameter.
-
 
130
 *  @param content The maximum content size. Output parameter.
-
 
131
 *  @param suffix The minimum reserved suffix size. Output parameter.
107
/** \todo
132
 *  @returns EOK on success.
-
 
133
 *  @returns EBADMEM if either one of the parameters is NULL.
-
 
134
 *  @returns ENOENT if there is no such device.
-
 
135
 *  @returns Other error codes as defined for the generic_packet_size_req() function.
108
 */
136
 */
109
int ip_packet_size_req( int ip_phone, device_id_t device_id, size_t * addr_len, size_t * prefix, size_t * content, size_t * suffix );
137
int ip_packet_size_req( int ip_phone, device_id_t device_id, size_t * addr_len, size_t * prefix, size_t * content, size_t * suffix );
110
 
138
 
111
#endif
139
#endif
112
 
140