summaryrefslogtreecommitdiff
path: root/src/tools/irm
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-02-26 14:43:50 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-02-26 14:43:50 +0100
commit7b6fc640c7d31ff8979194813b0fa0e7b4f24bde (patch)
treead1d9b481fb64fcab6546de990a32f31462b2499 /src/tools/irm
parent410d00dc06b2b7a89223479adec584dbf011e212 (diff)
parentdff374d5f393a6b4bec4877aa1c35ceb70e82843 (diff)
downloadouroboros-7b6fc640c7d31ff8979194813b0fa0e7b4f24bde.tar.gz
ouroboros-7b6fc640c7d31ff8979194813b0fa0e7b4f24bde.zip
Merged in sandervrijders/ouroboros/be (pull request #10)
Initial support for communicating with the IRM
Diffstat (limited to 'src/tools/irm')
-rw-r--r--src/tools/irm/main.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/tools/irm/main.c b/src/tools/irm/main.c
index bad1000e..470a8166 100644
--- a/src/tools/irm/main.c
+++ b/src/tools/irm/main.c
@@ -23,10 +23,23 @@
#define OUROBOROS_PREFIX "irm"
#include <ouroboros/logs.h>
+#include <ouroboros/common.h>
+#include <ouroboros/irm.h>
int main () {
+ char * ap_name = "test";
+ char * ipcp_type = "normal-ipcp";
+ rina_name_t name;
+ name.ap_name = ap_name;
+ name.api_id = 1;
+ name.ae_name = "";
+ name.aei_id = 0;
+
+ if (irm_create_ipcp(name, ipcp_type)) {
+ LOG_ERR("Failed to create IPCP");
+ return -1;
+ }
- LOG_DBG("Test of the IRM tool");
return 0;
}