summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-02-23 17:04:49 +0100
committerSander Vrijders <[email protected]>2016-02-23 17:04:49 +0100
commita3eb060b8d4419c1af85d3acf081f45cdc27708d (patch)
treed24203b64c5d229be028b6e04ab1a2958624bf0d /src/tools
parentd773fdaad545c122ff81acb57080c8baf46f3735 (diff)
downloadouroboros-a3eb060b8d4419c1af85d3acf081f45cdc27708d.tar.gz
ouroboros-a3eb060b8d4419c1af85d3acf081f45cdc27708d.zip
lib: Initial messages for the IRM
This provides the initial messages to be passed between the irmd and libouroboros-irm.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/irm/main.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tools/irm/main.c b/src/tools/irm/main.c
index bad1000e..6439243c 100644
--- a/src/tools/irm/main.c
+++ b/src/tools/irm/main.c
@@ -23,10 +23,21 @@
#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;
+
+ if (irm_create_ipcp(name, ipcp_type)) {
+ LOG_ERR("Failed to create IPCP");
+ return -1;
+ }
- LOG_DBG("Test of the IRM tool");
return 0;
}