Subversion Repositories HelenOS

Rev

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

Rev 4351 Rev 4505
Line 46... Line 46...
46
 
46
 
47
#include "../include/device.h"
47
#include "../include/device.h"
48
 
48
 
49
#include "../structures/packet/packet.h"
49
#include "../structures/packet/packet.h"
50
 
50
 
-
 
51
#include "sockaddr.h"
-
 
52
 
-
 
53
/** The transport layer notification function type definition.
-
 
54
 *  Notifies the transport layer modules about the received packet/s.
-
 
55
 *  @param device_id The device identifier. Input parameter.
-
 
56
 *  @param packet The received packet or the received packet queue. Input parameter.
-
 
57
 *  @param receiver The receiving module service. Input parameter.
-
 
58
 *  @returns EOK on success.
-
 
59
 */
-
 
60
typedef int ( * tl_received_msg_t )( device_id_t device_id, packet_t packet, services_t receiver );
-
 
61
 
51
/** \todo
62
/** \todo
52
 */
63
 */
53
int ip_bind_service( services_t service, services_t me, async_client_conn_t receiver );
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 );
54
 
65
 
55
/** Registers the new device.
66
/** Registers the new device.
56
 *  Registers itself as the ip packet receiver.
67
 *  Registers itself as the ip packet receiver.
57
 *  If the device uses ARP registers also the new ARP device.
68
 *  If the device uses ARP registers also the new ARP device.
58
 *  @param ip_phone The IP module phone used for (semi)remote calls. Input parameter.
69
 *  @param ip_phone The IP module phone used for (semi)remote calls. Input parameter.
Line 83... Line 94...
83
 *  @returns The IP module phone on success.
94
 *  @returns The IP module phone on success.
84
 *  @returns 0 if called by the bundle module.
95
 *  @returns 0 if called by the bundle module.
85
 */
96
 */
86
int ip_connect_module( services_t service );
97
int ip_connect_module( services_t service );
87
 
98
 
-
 
99
/** \todo
-
 
100
 */
-
 
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 );
-
 
102
 
-
 
103
/** \todo
-
 
104
 */
-
 
105
int ip_set_gateway_req( int ip_phone, device_id_t device_id, in_addr_t gateway );
-
 
106
 
-
 
107
/** \todo
-
 
108
 */
-
 
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 );
-
 
110
 
88
#endif
111
#endif
89
 
112
 
90
/** @}
113
/** @}
91
 */
114
 */