summaryrefslogtreecommitdiff
path: root/src/tools/irm/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-01 16:02:42 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-01 16:02:42 +0100
commit7360b2c459ab31339aad20dbb438247aff088fd7 (patch)
treec449c27e62bb484e5f87272c37944615616c26b3 /src/tools/irm/main.c
parent687055e46ddff677000d7e4e15c21ef9a1809b4d (diff)
parent52a5113760802e16b07d9d954237871d52cff70a (diff)
downloadouroboros-7360b2c459ab31339aad20dbb438247aff088fd7.tar.gz
ouroboros-7360b2c459ab31339aad20dbb438247aff088fd7.zip
Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into be-common
Diffstat (limited to 'src/tools/irm/main.c')
-rw-r--r--src/tools/irm/main.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/tools/irm/main.c b/src/tools/irm/main.c
index 470a8166..ac09e1e7 100644
--- a/src/tools/irm/main.c
+++ b/src/tools/irm/main.c
@@ -34,12 +34,40 @@ int main () {
name.api_id = 1;
name.ae_name = "";
name.aei_id = 0;
+ struct dif_info info;
+ char * dif_name = "wienerschnitzel";
+ size_t difs_size = 1;
if (irm_create_ipcp(name, ipcp_type)) {
LOG_ERR("Failed to create IPCP");
return -1;
}
+ if (irm_destroy_ipcp(name)) {
+ LOG_ERR("Failed to destroy IPCP");
+ return -1;
+ }
+
+ if (irm_bootstrap_ipcp(name, info)) {
+ LOG_ERR("Failed to bootstrap IPCP");
+ return -1;
+ }
+
+ if (irm_enroll_ipcp(name, dif_name)) {
+ LOG_ERR("Failed to enroll IPCP");
+ return -1;
+ }
+
+ if (irm_reg_ipcp(name, &dif_name, difs_size)) {
+ LOG_ERR("Failed to register IPCP");
+ return -1;
+ }
+
+ if (irm_unreg_ipcp(name, &dif_name, difs_size)) {
+ LOG_ERR("Failed to unregister IPCP");
+ return -1;
+ }
+
return 0;
}