summaryrefslogtreecommitdiff
path: root/src/lib/irmd_messages.proto
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-20 10:42:36 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-21 18:32:12 +0200
commit0efb1ff527ce3fb50d4c72c02904fa1cdd1e3a66 (patch)
tree9c0adf0b6ef3b9350c13939f6d40c79eca7546fd /src/lib/irmd_messages.proto
parentba27593e3e8406e109393ae383f17c7416675c1e (diff)
downloadouroboros-0efb1ff527ce3fb50d4c72c02904fa1cdd1e3a66.tar.gz
ouroboros-0efb1ff527ce3fb50d4c72c02904fa1cdd1e3a66.zip
irmd, lib: Rebuild the IRMd data model
The complete data model inside the IRMd has been restructured. The bind operation was revised to allow binding of AP and AP instances and register those names with different DIFs (see "irm bind" for details). Server applications require to call ap_init with a server name argument, client application that do not the be reachable over any DIF can call ap_init(NULL). Calling ap_init for a client with a specified name will not have adverse consequences for the application, but will consume unnecessary resources in the IRMd. Application servers can now be started at any point after the IRMd has been started. Starting servers, binding AP names and registering names in DIFs can be performed in any order that does not defy temporal logic. Supports naming instances by their pid. In case of IPCP Instances created with the IRM tool, the name assigned during "irm ipcp create" can be used. All the changes required updates in the tools.
Diffstat (limited to 'src/lib/irmd_messages.proto')
-rw-r--r--src/lib/irmd_messages.proto55
1 files changed, 28 insertions, 27 deletions
diff --git a/src/lib/irmd_messages.proto b/src/lib/irmd_messages.proto
index 5c320a17..7a634201 100644
--- a/src/lib/irmd_messages.proto
+++ b/src/lib/irmd_messages.proto
@@ -29,36 +29,37 @@ enum irm_msg_code {
IRM_LIST_IPCPS = 4;
IRM_BOOTSTRAP_IPCP = 5;
IRM_ENROLL_IPCP = 6;
- IRM_BIND = 7;
- IRM_UNBIND = 8;
- IRM_API_BIND = 9;
- IRM_REG = 10;
- IRM_UNREG = 11;
- IRM_FLOW_ACCEPT = 12;
- IRM_FLOW_ALLOC_RESP = 13;
- IRM_FLOW_ALLOC = 14;
- IRM_FLOW_ALLOC_RES = 15;
- IRM_FLOW_DEALLOC = 16;
- IPCP_FLOW_REQ_ARR = 17;
- IPCP_FLOW_ALLOC_REPLY = 18;
- IPCP_FLOW_DEALLOC = 19;
- IRM_REPLY = 20;
+ IRM_BIND_AP = 7;
+ IRM_UNBIND_AP = 8;
+ IRM_API_ANNOUNCE = 9;
+ IRM_BIND_API = 10;
+ IRM_UNBIND_API = 11;
+ IRM_REG = 12;
+ IRM_UNREG = 13;
+ IRM_FLOW_ACCEPT = 14;
+ IRM_FLOW_ALLOC_RESP = 15;
+ IRM_FLOW_ALLOC = 16;
+ IRM_FLOW_ALLOC_RES = 17;
+ IRM_FLOW_DEALLOC = 18;
+ IPCP_FLOW_REQ_ARR = 19;
+ IPCP_FLOW_ALLOC_REPLY = 20;
+ IPCP_FLOW_DEALLOC = 21;
+ IRM_REPLY = 22;
};
message irm_msg {
required irm_msg_code code = 1;
optional string ap_name = 2;
- optional string ap_subset = 3;
- optional string ae_name = 4;
- optional sint32 api = 5;
- optional uint32 ipcp_type = 6;
- repeated string dif_name = 7;
- repeated string args = 8;
- optional sint32 response = 9;
- optional string dst_name = 10;
- optional sint32 port_id = 11;
- optional dif_config_msg conf = 12;
- optional uint32 opts = 13;
- repeated sint32 apis = 14;
- optional sint32 result = 15;
+ optional string ae_name = 3;
+ optional sint32 api = 4;
+ optional uint32 ipcp_type = 5;
+ repeated string dif_name = 6;
+ repeated string args = 7;
+ optional sint32 response = 8;
+ optional string dst_name = 9;
+ optional sint32 port_id = 10;
+ optional dif_config_msg conf = 11;
+ optional uint32 opts = 12;
+ repeated sint32 apis = 13;
+ optional sint32 result = 14;
};