26
26
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
/** @addtogroup il_local
33
#ifndef __IL_LOCAL_H__
34
#define __IL_LOCAL_H__
29
/** @addtogroup libnet
33
#ifndef LIBNET_IL_SKEL_H_
34
#define LIBNET_IL_SKEL_H_
37
* Internetwork layer module skeleton.
38
* The skeleton has to be part of each internetwork layer module.
39
extern int il_module_message_standalone(ipc_callid_t callid, ipc_call_t *call,
40
ipc_call_t *answer, int *answer_count);
41
extern int il_module_start_standalone(async_client_conn_t client_connection);
42
#include <fibril_synch.h>
43
#include <ipc/services.h>
45
#include <adt/measured_strings.h>
46
#include <net/device.h>
47
#include <net/packet.h>
49
/** Module initialization.
51
* This has to be implemented in user code.
53
* @param[in] net_phone Networking module phone.
55
* @return EOK on success.
56
* @return Other error codes as defined for each specific module
57
* initialize function.
60
extern int il_initialize(int net_phone);
62
/** Process the internetwork layer module message.
64
* This has to be implemented in user code.
66
* @param[in] callid Message identifier.
67
* @param[in] call Message parameters.
68
* @param[out] answer Answer.
69
* @param[out] count Number of arguments of the answer.
71
* @return EOK on success.
72
* @return Other error codes as defined for each specific module.
75
extern int il_module_message(ipc_callid_t callid, ipc_call_t *call,
76
ipc_call_t *answer, size_t *answer_count);
78
extern int il_module_start(int);