summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2016-02-26 14:50:00 +0100
committerDimitri Staessens <[email protected]>2016-02-26 14:50:00 +0100
commit90740422f230ad064972c0f5b45b6c7f7190efb4 (patch)
treeae91f8cd49c8844e6ee53f7da957e88fd15c4cb7 /src/tools
parent62eba345ce0ab3fb58e6998261da20bbc2f5cc3a (diff)
parent7b6fc640c7d31ff8979194813b0fa0e7b4f24bde (diff)
downloadouroboros-90740422f230ad064972c0f5b45b6c7f7190efb4.tar.gz
ouroboros-90740422f230ad064972c0f5b45b6c7f7190efb4.zip
Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into be-pci
Diffstat (limited to 'src/tools')
-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;
}