diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-03-01 15:43:41 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-03-01 15:43:41 +0100 |
commit | 52a5113760802e16b07d9d954237871d52cff70a (patch) | |
tree | 07b806048cc9a792b5127bd5decb81b7ca907197 /src/tools/irm/main.c | |
parent | e5bfc52e93654a8be7893cf5573c9c04e9c96c55 (diff) | |
parent | 45ad14035a06e4947b1cc1d908bb665646c1f2a0 (diff) | |
download | ouroboros-52a5113760802e16b07d9d954237871d52cff70a.tar.gz ouroboros-52a5113760802e16b07d9d954237871d52cff70a.zip |
Merged in sandervrijders/ouroboros/be (pull request #17)
lib, irmd, tools: Provide more IRM messages
Diffstat (limited to 'src/tools/irm/main.c')
-rw-r--r-- | src/tools/irm/main.c | 28 |
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; } |